NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
Ajayvignesh_MV
Posts: 52
0 Kudos
Accepted Solution

GPIB Not Listing in LabVIEW but Listed in MAX

[ Edited ]

Hi All,

     I have connnected my Yokogawa WT3000 through NI GPIB-USB converter.  Its listed in MAX (GPIB1::1::INSTR).  But its not listing in LabVIEW (VISA Resource Control).  When I tried to "Open VISA Test Panel" in MAX, its throwing an error "VISA_ERROR_RSRC_NFOUND".  At the same time when I try "Communicate with Instrument", the device is responding to the commands.  Thus I came to an understanding that direct GPIB commands is communicated properly with the instrument where as VISA commands is not communicated with the instrument.  When I looked in VISA Interactive Control, the device is listed as unknown.  Can anyone help me to list the instrument in LabVIEW (VISA Resource)?

 

2.png

 

1.png

 

3.png

 

4.png

 

Thanks,

Ajayvignesh.

Active Participant
K C
Posts: 1,172
0 Kudos

Re: GPIB Not Listing in LabVIEW but Listed in MAX

Hi,

 

If you perform a 'Scan for instruments' in MAX you should see the WT3000 as shown in the picture.

 

Next I would try the VI that are available from Yokogawa.

 

Kees

 

 

Member
Ajayvignesh_MV
Posts: 52
0 Kudos

Re: GPIB Not Listing in LabVIEW but Listed in MAX

Hi Kees,

    Thanks for the input.  I can see my device on list as "Instrument0" in MAX.  To try with the example for Yokogawa, I need to select the VISA resource.  But the GPIB resource for this instrument is not listed in LabVIEW VISA resources.

 

-Ajay

Member
Ajayvignesh_MV
Posts: 52
0 Kudos

Re: GPIB Not Listing in LabVIEW but Listed in MAX

The issue is solved.

 

The cause of the issue is because of both GPIB-USB and the instrument used the same address "1".

 

In the address "GPIB1::1::INSTR", firs word is GPIB-USB converter address and the middle number ::1:: is instrument address.

 

In max you can change these addresses by running MAX as administrator.  Some times, even running as administrator won't allow you to edit this address, then you need to restart the PC to enable edit mode.

 

Once you changed this address with different numbers for GPIB-USB and Instrument as "GPIB2::1::INSTR", it works fine and lists in LabVIEW Visa Resources.

 

Thanks,

Ajay.

Knight of NI
Dennis_Knutson
Posts: 29,306
0 Kudos

Re: GPIB Not Listing in LabVIEW but Listed in MAX

Why do you even have two GPIB converters? A second will get an address of 1. Also, in MAX, you cannot change the address of an instrument. That requires a change of the instrument itself.
Member
Ajayvignesh_MV
Posts: 52
0 Kudos

Re: GPIB Not Listing in LabVIEW but Listed in MAX

Dennis,

    Yes, I don't need two GPIB-USB converters.  Since I had two converters, I connected two instruments through each converters.  You are also correct that you can't change the instrument address.  But the GPIB-USB converter address can be changed through its property in MAX.

 

Thanks,

Ajay.

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page