01-17-2011 10:52 AM
Hi,
can I create captions automatically?
Background: I'm trying to switch between "label" and "caption" in a program by using the property node "caption->visible". To be able to do that I have to right-click each label and activate "caption-visible" vor every control/indicator I create. I cannot do that in run-mode if that has not been done in edit-mode once. (Otherwise you get error 1320)
So the best way to solve this would be a program that opens my "HMI-program" in edit mode and sets this property. Is that possible? My HMI-program has more than 200 controls.
Thanks!!
Solved! Go to Solution.
01-17-2011 10:56 AM
@bef wrote:
Hi,
can I create captions automatically?
Background: I'm trying to switch between "label" and "caption" in a program by using the property node "caption->visible". To be able to do that I have to right-click each label and activate "caption-visible" vor every control/indicator I create. I cannot do that in run-mode if that has not been done in edit-mode once. (Otherwise you get error 1320)
So the best way to solve this would be a program that opens my "HMI-program" in edit mode and sets this property. Is that possible? My HMI-program has more than 200 controls.
Thanks!!
Yes just open the VI and get a ref to the FP and traverse the FP looking for all controls and indicators.
Ben
01-17-2011 11:11 AM
Thanks Ben,
wow, that was fast!
Thanks for the hint. That was easy and worked super!