Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Run front panel VI with subVI in Teststand

Solved!
Go to solution

Hi there, I am using this but unable to figure out what is VISA Resource Handle - Numeric data type used to store a handle to the current VISA session (https://forums.ni.com/t5/Example-Code/VISA-Custom-Steps-Types-for-TestStand/tac-p/4103802?profile.la...).

 

I am having a .lvproj file where I have many subVIs and one front panel. I can remote the hardware from the front panel and playing around with different functions of the hardware (it is an electronic load - Array 3720A). However, I would like to have this feature to be run in Teststand, is there any way to run the front panel and it will able to call subVIs? 

 

The reason I am using this VISA step because I am trying to run all subVIs at the setup and then the front panel VI at main in Teststand. However, it shows Run-Time Error with detail "VISA Write in 3721A_On.vi->3721A_On.vi.ProxyCaller
VISA: (Hex 0xBFFF000E) The given session or object reference is invalid." 

So when I add in VISA Open, Configure and Write, I stuck at VISA Open where the Handle was unable to detect, I thought that 0xBFFF000E is the current session, no? Btw, I have also tried many weird numbers or sessions that I got from NI MAX.

 

Just in case if you need to have the .lvproj file, you may download the file from the link below and convert the whole folder to lvproj. 
Array 372x Series LABVIEW GUI

http://www.array.sh/yqxzcnE.htm


Hope to get reply ASAP! 
Thank you!

0 Kudos
Message 1 of 2
(1,244 Views)
Solution
Accepted by topic author wing98

Problem solved, used "Call Executable" to call the LV project file. Previously the function was tried but failed due to the error of the VIs in the project file. 

0 Kudos
Message 2 of 2
(1,194 Views)