Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA Find Resource can't find USB-GPIB

When I tried to find my USB-GPIB resource through the VISA Find Resource node, I can't find it.  The resource is clearly shown when I drop down a visa resource constant and in MAX.  See attached picture.  I have tried all the options for the VISA Find Resource node already.  The resource is supposed to have an address of 3.  Thanks!

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 1 of 8
(4,642 Views)

below is an inputstring that defines to search only in gpib.

You can see a complete list in the help of the function Find VISA Resource.

Did you try this input string?

And did you get an error and what did it tell you?

 

GPIB?*INSTR

 

Matches GPIB0::2::INSTR, GPIB1::1::1::INSTR, and GPIB-VXI1::8::INSTR.

greetings from the Netherlands
0 Kudos
Message 2 of 8
(4,638 Views)

I tried ?*.  Shouldn't that gives me all resources?  I tried different serach things, and there were not error.  However, the GPIB that I want didn't appear.  

 

I am expecting GPIB0::3::INSTR, but I only got GPIB1::INTFC from the Find VISA Resources noe.  I am able to get the correct GPIB resources string through a regular resource constant and MAX.  See picture from my first post.  Thanks!

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 3 of 8
(4,636 Views)

I'm not having a gpib interface at home and no gpib instr.

So I can't test today but it seems not to go into the gpib interface if you only supply ?*

 

greetings from the Netherlands
0 Kudos
Message 4 of 8
(4,634 Views)

I will try this tomorrow when I have GPIB connection.  I will let you know what happen.  

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 5 of 8
(4,633 Views)

I tired it.  It doesn't work.  It seems like the problem comes from the fine visa resource node.  It fails to find all the resources, even MAX sees the resources.  

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 6 of 8
(4,612 Views)

See attached for the problem.  I can find my resource through a resource name control, but I can't find it through the Find VISA Resource node.  Why is that?  

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 7 of 8
(4,607 Views)

Hello jyang7221,

 

I tried to reproduce the issue that you are experiencing with no success, it works fine for me. I would suggest you to run a repair or reinstall of NI-VISA as it seems to be a problem with the VISA Find Resource VI.

 

Regards,


Jorge
Applications Engineer
National Instruments
________________________________________
Certified LabVIEW Associate Developer (CLAD)
0 Kudos
Message 8 of 8
(4,534 Views)