LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Anyone knows how can to execute VI straight without using the MAX function first before executing the VI for instrument control?

Hello,
Anyone out there knows a way to omit the step of using MAX to scan for instrument before executing the VI to control my instrument? I have written the program for instrument program, however, I have to use MAX to scan for instrument everytime when I switch on the instrument 1st time, then after I will be able to use the VI.

Regards,
Daniel
0 Kudos
Message 1 of 7
(3,390 Views)
Daniel,

You shouldn't need to Scan for Instruments in MAX before addressing the instrument in LabVIEW. What type of instrument are you using (i.e. GPIB, serial, etc.)? What kind of API are you using in LabVIEW (i.e. pre-packaged instrument driver, straight VISA calls, etc.)?

Steven H.
0 Kudos
Message 2 of 7
(3,368 Views)
Good Day,
Thank you for your reply. I am using GPIB and VISA direct call.What could be the possible problem to my program that I have to run MAX before executing my program.


Regards,
Daniel
0 Kudos
Message 3 of 7
(3,354 Views)
What instuments are you using? Are you opening the instruments before sending them commands with your VIs?
-Rick
0 Kudos
Message 4 of 7
(3,344 Views)
Daniel,

Have you tried to find an instrument driver for your instrument? You can search the Instrument Driver Network; chances are good there's a driver for your instrument there. These instrument drivers also include examples to help you get started. If you're new to instrument control, you'll probably find this easier than trying to program using direct VISA calls.

Steven H.
Message 5 of 7
(3,335 Views)
(Meant to post this here rather than above)

Daniel,

Have you tried to find an instrument driver for your instrument? You can search the Instrument Driver Network; chances are good there's a driver for your instrument there. These instrument drivers also include examples to help you get started. If you're new to instrument control, you'll probably find this easier than trying to program using direct VISA calls.

Steven H.
0 Kudos
Message 6 of 7
(3,333 Views)
Hello,
Thank you guys for your help, I have found a way to overcome the problem. Previously, I am using a constant VISA I/O icon to be wired to the VISA write command function. Then I used GPIB ENABLE REMOTE icon at the beginning of my program to enable the specified address. And seems to work fine now. If there is a better and proper way pse let me know. Thank you again guys

Regards,
Daniel
0 Kudos
Message 7 of 7
(3,312 Views)