From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
08-20-2012 06:03 AM
HI boys,
I want to show a variable in TestStand "Online" in a Labview Front Panel, I mean, if the value this variable changed, I don't need call this VI again, the variable should be updated by itself.
Of course I can call the VI again to read the new value of the variable, but I think, there must be a smart wey to do it.
Cabio
08-21-2012 02:14 AM
Cabio,
first of all, not all here are necessarily "boys"... 😉
Second: VIs only update elements if they are RUNNING (with certain exceptions). So just open a front panel with an indicator and *magically* put in updated values is not the way it will work properly.
I also epect this question to refer to your "progress display" question.
Norbert
08-21-2012 10:06 AM
HI Norbert_B
"boys" is only for funny
So you mean, it is impossible the variable in TestStand automatic to update, by only once call the VI?
But I think there must be a way to do it. I have tried with User Interface, but it is really hard to understand.
Maybe I should wait a expert to answer the question.
08-21-2012 10:34 AM
The key for updating values in the UI are "UI Messages". You could use this mechanism also for asynchronuously running dialog VIs, but i wouldn't recommend that. The user interface is the right place for this.
When digging into UI Messages, you have to take care of two points:
a) The sequence has to post them (PostUIMessageEx from the thread class)
b) The UI has to capture them and update the indicator (callback VI, using reference of the indicator to set the value)
hope this helps,
Norbert