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-07-2012 05:09 AM
Hello, I´m just LV beginner, so I´m sorry if my question is stupid.
I´m making VI which controls electron gun. Apart from other things, it should read values of voltage and emission current. My problem is, I read those values in different parts of program, exactly three, and each part is executed in different situation. But I´d like to view value in just one indicator on front panel and see it´s most recent development. Now, when I place indicator in every part of program, where I read values, I have three of them and i have to know where to look to get actual value. It´s not nice and what´s more important, it´s not user friendly.
Thank you for any advice.
08-07-2012 05:31 AM - edited 08-07-2012 05:32 AM
Are you not able to align the Controls & Indicators in Front Panel?
It appears that you are viewing data in Block diagram
08-07-2012 05:32 AM
Hi Tikka,
Can you post your VI?
08-07-2012 06:06 AM
I´m viewing data in front panel and if I understand it correctly, aligning controls/indicators only changes their position, it wouldn´t make one of three.
So I post my VI, I hope it´s not too messy. Unfortunately all notes are czech. Indicators I´m concerned about are HV [kV], HV [kV] 2, HV [kV] 3 and I[mikroA], I[mikroA] 2, I[mikroA] 3. You won´t see it working properly, it needs electron gun connected.
Just FYI I tried to use global variable, but indicator didn´t read it´s value concurrently with execution of the rest of the program, but only once after performing all tasks in main while loop, which is there only for continuos run of the program.
08-07-2012 06:09 AM
And one important information, main VI is called Ovladac Delo.vi
08-07-2012 08:08 AM
You can use Local Variable.Create the Local Variable of the HV KV ctl and use it in other places.Similiarly for the other control.
Thats the best option for your design.Did you ever try that ???
08-07-2012 08:13 AM
This is a good situation for local variables.
08-07-2012 08:15 AM
I used global variable this way. When I used local variable, it acted weird (probably my mistake). Global variable´s behavior was OK, but indicator showed change only once per while loop round, I wanted it to show change, whenever varible chaged, but it didn´t.
08-07-2012 08:57 AM - edited 08-07-2012 09:04 AM
i would use vi references and controls to send "real time" information from your "sub vi's" to your front panel....
08-07-2012 12:19 PM
again, this is a variation of vi references with nested vi's with realtime information sent to the front panel...