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.
06-14-2006 12:02 PM
06-14-2006 01:18 PM
06-14-2006 02:12 PM
06-20-2006 03:17 AM
Hi there,
I think I got a solution for your problem. You can use VI's property nodes to open/close the front panel.
The thing is that you can create a reference of your sub'vi. Then prior or in the first iteration of the loop select Front Panel Open property node and wire a true. That should open the sub'vi front panel and leave it open. Then at the end just set that property node to false and that will close the front panel. See attached jpg as an example.
Hope that solves the problem,
Regards,
Jaime Cabrera
NI Applications Engineering.
06-20-2006 03:35 AM - edited 06-20-2006 03:35 AM
Hi,
You could try this as an example
IF( Step.TS.NumLoop == 0)
FP.Open (True) // to display front panel
END
Then make your measurement.
IF (Step.TS.EndingLoopIndex == Step.TS.NumLoop)
FP.Open (False) // close front panel
END
Regards
Ray Farmer
Message Edited by Ray Farmer on 06-20-2006 09:37 AM
06-20-2006 04:31 AM
IHi,
Ray one's is the version for TS i give in LV.
Thanks Ray
Jaime Cabrera
NI Applications Engineering Spain
07-27-2006 04:14 PM
Thanks in advance and apologies for the delay in the answer.
Gonzalo.
07-28-2006 01:19 AM
Hi,
I think I must have been generalising. While the step is looping the Properties RunState.LoopIndex, RunState.LoopNumPassed and RunState.LoopNumFailed are used to hold the loop count and the number of times the loop has passed and failed.
You have to use RunState.LoopIndex for the Step.TS.NumLoop and for the Total count you can extract from the step property "Step.TS.LoopWhile" string but it probably would be better to use a Local variable to hold the max count.
Hope this helps
Regards
Ray Farmer
08-02-2006 12:20 PM
Hellow Ray, finally it's now working ok.
The difficulty was to get the total number of iterations and it was done through the property LoopWhileExpression, and extract from here the number.
Thank you very much because your help marked me the way.
02-12-2007 10:49 AM
Hello Jaime,
I am trying to use the same idea in my application, where I want to control the opening and closing of the FP. But in LV8.2, the VI class, FP.Open property is now an output and is not an input anymore.
Any help from anyone on how to control the FP opening and closing, would be much appreciated.
Thanks in advance,
Shoab