04-22-2014 12:07 PM
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.
04-22-2014 12:11 PM
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.
04-22-2014 12:18 PM
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
04-30-2014 07:54 AM
Curtis235,
Can you supply an image of what you are trying to code/accomplish?
Thanks,
04-30-2014 09:25 AM
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
04-30-2014 10:15 AM
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?
04-30-2014 10:17 AM
No, it hangs until you click the red stop icon.