NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Why can't pass value to a VI control?

Solved!
Go to solution

it's my first time to call a VI in asynchronously with teststand2016

I build a simple VI to explain this issue:

the numeric control in VI defaulted in 0 and run in a while loop, then I try to use a fileglobals in teststand to pass a 1 to VI and expect to stop the VI.

But the VI still running in new thread, any ideas for that?

 

0 Kudos
Message 1 of 4
(2,612 Views)

This demonstrates how to do it.

 

Hope this helps,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 4
(2,590 Views)

It seems works well, Thanks a lot, Jiggawax.

But still with little issue:

-- I can't see new thread in threads window of editor in run time after VI front panel popped up 

-- The front panel of VI will always pop up no matter I set "show VI front panel is..." ON or OFF

0 Kudos
Message 3 of 4
(2,577 Views)
Solution
Accepted by topic author johnnnywang

-- I can't see new thread in threads window of editor in run time after VI front panel popped up 


Not sure on this.  I've never even looked at the Thread window until today... haha.  Maybe you need to store an object reference to it?  Or do it in a Single Threaded Apartment?  sorry I'm not more helpful on this.

 


johnnnywang wrote:

-- The front panel of VI will always pop up no matter I set "show VI front panel is..." ON or OFF


This is because the VI step in the New Thread sequence has  Show VI Front Panel When Called set.  This will override the settings in you VI.  Just uncheck it if you don't want the FP to show.

 

Regards,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 4 of 4
(2,570 Views)