NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA Handle best practice

Hi,

 

What is the best practice on using the VISA handle for a device?

 

Now we initialise the device during SequenceFileLoad and store the handle in a stationGlobal.

 

another option I think about is making steptypes and do it during Pre-step and Post-step

 

 

0 Kudos
Message 1 of 2
(576 Views)

My implementation is very simple, creating and initializing them directly in the setup section of the test sequence, and releasing them in the cleanup section. In this way, I have no problem controlling 30-40 various instruments and devices in parallel or batch mode at a testing station (I have actually practiced on multiple projects).

My understanding is that as a VISA handle, whether it is a standard SCPI instrument or a non-standard ordinary instrument, it is an object to me. For the entire testing process, the lifecycle of this object is from the beginning of testing to the end of testing.

If a device experiences an error during testing, the biggest impact is causing the current test to fail. As the current test aborts or ends, this error will also be eliminated within the final section as it is released. Even if I do not close the testing program, it will not affect my ability to switch to manual operation of the instrument or use other tools and software to cooperate with tracking.

0 Kudos
Message 2 of 2
(548 Views)