LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Visa Find resource vi does not find GPIB0 board

The GPIB0 board is appering in MAX device and interface. I can communicate properly with my GPIB0::3::INSTR. While I run Visa Find resource vi it finds all resources like serial and parallel ports, GPIB0::3::INSTR instrument but it does not find GPIB0 board.
I running my application under WIN-98, Labview 6.0 and NI-VISA 2.6 and NI-VISA 2.6 Run Time are installed.
0 Kudos
Message 1 of 15
(4,316 Views)
What expression are you using? Use ?* to return all resources and not just instruments (serial and parallel ports are instrument resources).
Message 2 of 15
(4,316 Views)
Thank you Dennis,

I used ?*INSTR expression and it is a reason that I get the serial and parallel ports only. While I am using ?* expression it return GPIB0::INTFC with the ports.
Please advice how can I set the VISA resource name from element of string array accepted by VISA Find resource?
0 Kudos
Message 3 of 15
(4,316 Views)
You just have to index the element you want and wire it to the VISA Resource Name of the VISA function you want to use. Strings are valid inputs.
0 Kudos
Message 4 of 15
(4,316 Views)
If you want to specifically look for GPIB board resources, remember that the expression is a regular expression, so "?*INTFC" may be what you want.

Also realize that when you want to connect to the GPIB board level functions, you need to set the class of that refnum to "GPIB Board Interface".

Dan Mondrik
Senior Software Engineer, NI-VISA
National Instruments
0 Kudos
Message 5 of 15
(4,316 Views)
Thank yiu again for your help,

Now my application working properly. Please advice how I can set the interface "GPIB0::INTFC" VISA alias to "GPIB0".
I can set instrument VISA alias by MAX but interface VISA alias can not be changed by MAX.
0 Kudos
Message 6 of 15
(4,316 Views)
Yes, you can do this too, although it is slightly less obvious. In MAX, choose Tools>>NI-VISA>>Alias Editor. Click the "Add Alias" button and enter both your alias ("GPIB0") and the full resource name ("GPIB0::INTFC").

Dan Mondrik
0 Kudos
Message 7 of 15
(4,317 Views)
I set the interface alias "GPIB0" and it work properly.
0 Kudos
Message 8 of 15
(4,316 Views)
I also have same quaetion That I have a temperature controller connected using GPIB and I dont know how to define visa alias for it
 
0 Kudos
Message 9 of 15
(3,884 Views)

Not exactly the same question as not being able to find the GPIB0 board.Smiley Wink

In any case, open MAX, expand Devices and Interfaces, expand the listing under your GPIB board, select your instrument. In the window on the right side, you should see a box labeled VISA Alias. Enter your alias and click the save button on top.

0 Kudos
Message 10 of 15
(3,871 Views)