NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Duplicate LabVIEW vis are displayed

Solved!
Go to solution

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.

0 Kudos
Message 1 of 6
(3,788 Views)

Attaching some vi's required to compile.

 

Versions:

TestStand: 4.2

LabVIEW: 8.6

 

TestStand Configuration:

Sequential Process Model

Step type: Action

 

 

0 Kudos
Message 2 of 6
(3,784 Views)

Please ignore all those previous attachments.  I have attached a simplified version in a zip file that should be unzipped onto your C:\ drive.

 

 

 

0 Kudos
Message 3 of 6
(3,779 Views)

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

0 Kudos
Message 4 of 6
(3,753 Views)

Thanks Jim.  I have no need to write to this method.

 

 

0 Kudos
Message 5 of 6
(3,721 Views)
Solution
Accepted by topic author mike_22

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.

0 Kudos
Message 6 of 6
(3,719 Views)