Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

GPIB-USB issue

Solved!
Go to solution

Hello,

I am using Labview 2016 and windows 10. I have a problem using a GPIB-USB-2 adapter from ines. I have installed its driver and windows recognises it in the "device administrator".

If I try to connect to the GPIB via labview it does not work, and give an error (see screen shot attached). What should I do to let Labview see my GPIB-USB device?

 

Thanks for the help

Download All
0 Kudos
Message 1 of 11
(6,793 Views)

Does MAX recognize the GPIB ? 

 

In order to get more meaningful information about the error, right click the error out front panel indicator and select Explain Error.

 

Remember that the 488.2 driver has to be installed in order to be able to work with GPIBs. Open MAX and under the Software "pallet" you can check whether or not you have the already mentioned driver.

0 Kudos
Message 2 of 11
(6,714 Views)

Hello,

I partially solved the problem. A driver of the GPIB-USB adapter was missing. Now I have a different problem. When I write to the GPIB, there is no problem. The problem is when performing the read operation. No error is reported, but nothing is read, just spaces. I tried several combinations of functions but all give the same result. Attached you can find the code I am using.

 

Thanks for the help.

 

PS. Max does not see the GPIB, but the NI-VISA interactive control does. It gives the same problem of empty read.

0 Kudos
Message 3 of 11
(6,693 Views)

Is there a reason that it needs to look so complicated to control an instrument?  Do you need to use the base primitives?  If you have NI-VISA loaded, you should be able to use these which are cleaner and a little more simplistic.

Help the Community (and future reviewers) by marking posts as follows:
If it helped - KUDOS
If it answers the issue - SOLUTION
Download All
0 Kudos
Message 4 of 11
(6,677 Views)

Hi,

I was using those vi just because I did not know there were others.. 🙂

Thanks for the test vi using VISA. I tried running them but it still gets only spaces. It gives also an error code: "1073676294". Attached there is a screenshot of the output.

I tried all the VISA resources that are present in the I/O menu. GPIB0::5::INSTR (in the screenshot) is the only one that does not give time-out error.

0 Kudos
Message 5 of 11
(6,673 Views)

The next question is, "Are you sure that the instrument with which you want to communicate can handle the '*IDN?\n" query string?  What is the instrument part number and brief description at GPIB address 5?

Help the Community (and future reviewers) by marking posts as follows:
If it helped - KUDOS
If it answers the issue - SOLUTION
0 Kudos
Message 6 of 11
(6,666 Views)

Hi,

That is a very good question. The instrument is a pic-and-place machine from Naples Coombe. How can I know if the machine can handle the IDN query? I tried also other standard query and also tried to send random strings to maybe generate an error message, but nothing changed.

About your second question:

"What is the instrument part number and brief description at GPIB address 5?"

How can I get that information? I thought the only way to get that was the IDN query.

0 Kudos
Message 7 of 11
(6,640 Views)

@DanMad wrote:

How can I know if the machine can handle the IDN query?


RTFM (Read the manual).


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 8 of 11
(6,637 Views)
Solution
Accepted by topic author DanMad

Dan,

 

Seeing how your device does not respond to "*IDN?\n" try these queries below and see if you get a response from your instrument. NOTE: the \n is the newline character (aka Line feed) and not the two characters "\" and "n".

ID?\n

If that doesn't garner a response from your instrument, then try

U0X\r\n

If neither of those gives you a response (error responses do not count here), then your setup probably needs to be reviewed.

 

Help the Community (and future reviewers) by marking posts as follows:
If it helped - KUDOS
If it answers the issue - SOLUTION
0 Kudos
Message 9 of 11
(6,632 Views)

Hi Minions,

thanks for the fast reply. I Tried the commands you suggested. I used the LabView constants for carriage return and line feed to be sure everything is correct. I am attaching the code for reference. I get no answer from the device and so I will proceed checking the hardware for issues. Thanks again for the help.

 

0 Kudos
Message 10 of 11
(6,624 Views)