LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA resource name not found in LabVIEW

Solved!
Go to solution

Dear all,

 

I am trying to control an instrument using USB connection and VISA. I used the VISA Driver Wizard to create the driver and the instrument is correctly recognized by NI MAX. I can also send and receive bytes. The instrument does not have any software / driver provided by the vendor so I think the only choice I have is going with the VISA wizard. The developer can send me USB low level details (command number XX, number of bytes to read, etc). 

 

Even if the instrument is correctly read by max and Vendor ID and model ID is correct, when I try to have access in labVIEW , I use the VISA open and the VISA resource name is not found....

 

Can you help please?

 

Thanks.

0 Kudos
Message 1 of 11
(9,351 Views)

Dear all,

 

I am trying to control an instrument using USB connection and VISA. I used the VISA Driver Wizard to create the driver and the instrument is correctly recognized by NI MAX. I can also send and receive bytes. The instrument does not have any software / driver provided by the vendor so I think the only choice I have is going with the VISA wizard. The developer can send me USB low level details (command number XX, number of bytes to read, etc). 

 

Even if the instrument is correctly read by max and Vendor ID and model ID is correct, when I try to have access in labVIEW , I use the VISA open and the VISA resource name is not found....

 

Can you help please?

 

Thanks.

0 Kudos
Message 2 of 11
(9,357 Views)

As a workaround try putting the visa resource name (USB0::blahblah::blah::RAW or whatever it is) from MAX into a string in LV and wiring that into Visa Open.

Ian
LabVIEW since 2012
0 Kudos
Message 3 of 11
(9,315 Views)

Dear Ian,

 

thanks for the help. I did it and I received the following error message:

VISA:  (Hex 0xBFFF0072) The resource is valid, but VISA cannot currently access it.

 

I also used a "Find VISA resource" function, I get an array of visa perpherals found, including the instrument I want to control. I extract the position of the instrument I want to control and send it to the VISA open (I get exactly the same visa name of the NI Max), and also in this case I get the same error message.

The visa resource is found but it is not possible to open it...

0 Kudos
Message 4 of 11
(9,307 Views)
Solution
Accepted by topic author fabbro12

Did you close down your other interface to it (in MAX)? You can only have one open session at a time to a resource

Ian
LabVIEW since 2012
0 Kudos
Message 5 of 11
(9,304 Views)

Thank you very much for the help Ian...The problems was just a trivial mistake from my side, sorry for bothering and thanks for the great support!!

0 Kudos
Message 6 of 11
(9,298 Views)

I am having a problem where I cannot find a GPIB connected device in the VISA resource name list in LabView 2016 (32 bit), but it shows up fine in 64-bit LabView 2016 and 2017.  It also shows up in MAX 17.5.  COM ports and PXI devices show up in both 32 and 64 bit version.  Because of other instrument libraries, I would really like to stick with 32-bit.  Any advice?

 

 

 

 

0 Kudos
Message 7 of 11
(8,873 Views)

Hi Norrgard,

 

is there some filtering applied to the VISA reference control?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 11
(8,871 Views)

These are my current filter settings

Download All
0 Kudos
Message 9 of 11
(8,869 Views)

What happens if, instead of choosing from the drop-down, you just type it in manually?  You should be able to put any string in there you like, the dropdown isn't mandatory to use.

0 Kudos
Message 10 of 11
(8,847 Views)