Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Automating Measurement Automation Explorer

I'm trying to automate the installation of NI software and scope card
installation. After the NI scope software and scope card is installed
it seems that a refresh is required in NIMAX. Is there a way to
automatically cause a device refresh from the command line or another
program? I'm using Measurement & Automation Explorer 2.2.0.3010.
0 Kudos
Message 1 of 8
(5,177 Views)
Hello Tom,

Thank you for contacting National Instruments.

I am attaching a folder which includes a VI to programmatically
refresh MAX from LabVIEW.

Keep in mind, if your MAX window is not titled "Measurement &
Automation Explorer" you will have to change a few string constants to
your actual MAX window title.

I hope this helps,

Sean C.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 8
(5,175 Views)
Sean,

Thank you. The zip file was empty. Can you repost it?

Tom
0 Kudos
Message 3 of 8
(5,175 Views)
Tom,

I apologize... Here is the folder with its contents.

Sean C.
Applicaitions Engineer
National Instruments
Message 4 of 8
(5,175 Views)

Is there a way to do this without Labview? I use VB to control my hardware and would like to have it refresh and remove unused hardware automatically

 

Thanks

Chris

 

0 Kudos
Message 5 of 8
(4,983 Views)
Hi Chris,
What exact hardware are you using?
Chris R.
Applications Engineer
National Instruments
0 Kudos
Message 6 of 8
(4,918 Views)
We use mostly PCI 4472's as well as USB9233's for acquistion and various cards for outputs. In particular I need the systems to automatically remove the entries and reset the device numbers when equipment is changed.
 
Thank You
Chris
 
 
 
0 Kudos
Message 7 of 8
(4,916 Views)
Hello Chris,

While there is no similar application that has been written for Visual Basic, I would propose an alternate solution.  Instead of trying to keep the Device names the same regardless of adding/removing hardware, scan for the current names (whatever they are) and use those in your application.  Toward this end, I would suggest that you take a look at the example program linked below.  While this was written in Visual C++, you might be able to use it as a guide for doing the same thing in Visual Basic.

Programatically accessing list of NI-DAQmx devices in a computer using VC++

I hope this helps!

Best regards,
0 Kudos
Message 8 of 8
(4,884 Views)