07-19-2017 10:19 AM - edited 07-19-2017 10:20 AM
I was wondering if possible to write to a caption while vi running? Asking because thought convenient way to save/change comm commands associated with that object. Thankyou
07-19-2017 10:26 AM
Yes, it is possible. Use a property node set to write the Caption.Text property:
07-19-2017 10:30 AM
@amazed wrote:
I was wondering if possible to write to a caption while vi running? Asking because thought convenient way to save/change comm commands associated with that object. Thankyou
What does writing a caption have to do with save/change and objects? Please clarify your question.
07-19-2017 10:45 AM
Thankyou HopeH I did try that but i could not write directly to the caption - only to a text box that then wrote to the caption. There are workarounds but was just hoping to keep simple.
07-19-2017 11:00 AM
Hi Sir
this vi has controls i want user to be able to define commands to a plc I would typically have an user edit list that i would save to a file with controls associated with new commands. I though this caption method would be a simpler way to go Program would just read the captions and send that command. hope this not confusing.
07-19-2017 11:04 AM
@amazed wrote:
I though this caption method would be a simpler way to go
Seems way more complicated! 😮
07-19-2017 11:28 AM
Just started it - Seemed easy enuf up to this pt. Visually i like it but as you say - may prove more difficult.
07-19-2017 11:46 AM
What do you mean when you say you can't "write directly to the caption"? I don't understand why you would have to write to a text box (by text box, do you mean string control/indicator?) first. Just wire whatever string you want into the property node.
07-19-2017 11:48 AM
Hi HopeH I want to write to it while in run mode(its for the user )
07-19-2017 12:01 PM
Maybe I am misunderstanding what you mean? Just changing the caption while in run mode is very simple. Here is an example. Is this what you mean, or something else?