LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

initialize visa to use for all tests

Does anyone know how to initialize VISA to use for all tests then close it at the end of the last test?

 

Example:

The test sequence starts with initialize instruments then testing starts until the last test is to close all instrument handles.

 

 

Thanks in advance.

0 Kudos
Message 1 of 7
(3,139 Views)

Is this a LabVIEW question or a TestStand question?  It actually does make a difference in my answer.

 

If you are strictly only in LabVIEW, then you just pass your reference wires around where they are needed.

 

What I like to do for TestStand is make an Action Engine to control my reference to an instrument session.  This method also works well with strictly LabVIEW as well.  But is overkill for somewhat simple applications.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 7
(3,134 Views)

LabVIEW.

I used the project  class structure. The com class has the VISA information; however, I can't pass it or connect the wire to the test class. I tried to add com class into the test class and it still didn't work.

 

I hope this give you more information to assist me.

 

Thanks

Curtis235

0 Kudos
Message 3 of 7
(3,127 Views)

Curtis235,

 

Can you supply an image of what you are trying to code/accomplish?

 

Thanks,

 

Applications/Systems/Test
National Instruments | AWR Group
0 Kudos
Message 4 of 7
(3,063 Views)

Sorry, I don't have an example.

I used LV test sequencer (template) and try to pass in visa(s) and other instrument handles for other tests.

 

The sequence starts with all visa and instruments handles are initialized then pass in handles to testing VIs and the last test close all handles.

 

Thanks

 

 

0 Kudos
Message 5 of 7
(3,051 Views)

Curtis235 wrote:

The sequence starts with all visa and instruments handles are initialized then pass in handles to testing VIs and the last test close all handles.


That sounds perfectly reasonable.  Are you getting errors?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 6 of 7
(3,042 Views)

No, it hangs until you click the red stop icon.

0 Kudos
Message 7 of 7
(3,039 Views)