Digital Multimeters (DMMs) and Precision DC Sources

cancel
Showing results for 
Search instead for 
Did you mean: 

Query open Automation Refnums?

After using an activex automation open, is it possible to query for all open automation refnums?

I am attempting to create an error handler that will close any forgotten IVI sessions.

Is there perhaps a log file that contains all open references?

 

Thanks,

Chris

0 Kudos
Message 1 of 6
(7,780 Views)
Hello cjsesco:

Is there a reason that you are not closing each session after you are done. If you open and close a session everytime you want to perform a task, the program will be much slower due to the overhead in opening and closing.
Regards,

Roland A.
Applications Engineer
National Instruments

Check out VI Roadshow
0 Kudos
Message 2 of 6
(7,755 Views)

When using numerous power supplies and assorted test equipment, by the end of a program there have been handfuls of sessions opened. Then considering that many of the programs based on user input will periodically close or open subsequent sessions. There is occasionally a forgotten session.  

A session handler would be an easy alternative, as opposed to wasting hours reviewing someone else’s code.

Thank you for any help,

Chris

0 Kudos
Message 3 of 6
(7,744 Views)
Chris,

I am having the same problem.  Did you get an answer to your question?

-Ed
0 Kudos
Message 4 of 6
(7,639 Views)

Hi

I want to use automation open to remotely control the another instrument. I already connected to the refnum object but it's not working. Do i need to declare machine name?

0 Kudos
Message 5 of 6
(7,519 Views)
Hello Pocahontas:

Could you post a screen shot of the part of your code in question. Also, are you getting any LabVIEW errors?
Regards,

Roland A.
Applications Engineer
National Instruments

Check out VI Roadshow
0 Kudos
Message 6 of 6
(7,506 Views)