08-17-2010 05:44 PM
I have a LabVIEW vi whose front panel is duplicated when called from TestStand. I just want one front panel displayed.
What's causing this is related to the vi being:
i) reentrant,
ii) automatically repositions itself to either the right or lefthand of the screen display when called.
As well there's a button on the vi that's suppsed to allow a user to exit by pressing it, but it doesn't work.
How do I fix this?
Thanks in advance.
Solved! Go to Solution.
08-17-2010 06:02 PM
Attaching some vi's required to compile.
Versions:
TestStand: 4.2
LabVIEW: 8.6
TestStand Configuration:
Sequential Process Model
Step type: Action
08-17-2010 06:22 PM
Please ignore all those previous attachments. I have attached a simplified version in a zip file that should be unzipped onto your C:\ drive.
08-18-2010 12:33 PM - edited 08-18-2010 12:37 PM
In your sub-vi, the following is wired to True: Front Panel Window: Open Property (FP.Open).
From the NI help:
Front Panel Window: Open Property
National Instruments recommends you use the Front Panel: Open method instead of this property to open the front panel window.
Reading this property indicates whether the window currently is open.
--------------------------------------------------------------------------------------------------------------------------
I changed it from a write only to read only and the VI behaved as I would expect.
If you have to write to this method, would you explain your use case?
Thanks,
Jim
08-19-2010 05:53 PM
Thanks Jim. I have no need to write to this method.
08-19-2010 06:16 PM
What works is removing the "Open vi Reference" call in the "VI Server - Position Window.vi" and passing a "This vi" reference to it instead.
Thanks Kelly.