I have been scouring the forum and I am very sorry if I accidentally missed the answer already. First of all, I am using FactoryTalk View SE for my HMI. But my question is how to add a Pen to a trend (using a push button or something) during runtime. I figured this probably needs to be done using vba, but other solutions are welcome. I found Trend.Pens.Add() but when I try that I get an error stating that I have an invalid argument option. I figure this is the function that I need to use, but do I need to make a pen type and add that, or make a tag type variable and add that. "Add" wants a string, and I tried just using the string that I would place in the "expression" field when adding a pen in the studio, but I get an error that way as well. Any help would be great! Sorry if I neglected to provide any information, just let me know and I will update. Thank you!
-Dan
-Dan