Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

gpib

Solved!
Go to solution

I am trying to communicate to a spectrapro 150 and I can communicate to the machine via the Interactive control

 

but it wont read back to me. I have tried several different byte counts, and looked through the help page and I found nothing there to answer my question. I have also looked up the specific error and it provided no additional information as well. ( http://digital.ni.com/public.nsf/allkb/2FA525A8585A92E9862566EE002A3755#EABO

 

 

-K
0 Kudos
Message 1 of 16
(4,175 Views)

Where did you read that the query is supported? It's not in the manual. You also need to set the correct termination.

0 Kudos
Message 2 of 16
(4,170 Views)

sorry, but I am very new to labview.

 

What do you mean by query

 

and

 

how do you set the correct termination?


 

-K
0 Kudos
Message 3 of 16
(4,162 Views)
Query and termination have nothing to do with LabVIEW. A query is a write command that tells the instrument to return data. It's a write followed by a read - what you showed that you did. The standard way to terminate a GPIB is by asserting EOI. This instrument requires each command be terminated with the carriage return character. This is in the manual which you apparently have not read since you tried writing a command/query that is not supported.
0 Kudos
Message 4 of 16
(4,156 Views)

I have read through the manual, and the commands they give do the same thing. It doesn't change anything.

 

The reason I'm doing this is to understand visa, labview, and gpib better and then write a program for a unique device, which doesn't have a manual with commands just  listed out.

 

Thanks for your time in this

-K
0 Kudos
Message 5 of 16
(4,150 Views)
And how did you append the carriage return? It's easy with the VISA interactive control by simply typing \r. You can also configure the GPIB controller in MAX.
0 Kudos
Message 6 of 16
(4,147 Views)

Where in Visa interactive control do you type that? because when I type it into the write section nothing happens.

 

and what do you mean I can configure the GPIB controller in MAX? I have been looking at MAX for a while now and it doesn't really do much for me. I can write to the instrument but when I try to read it blows up.

 

"iberr = EABO

EABO indicates that an I/O operation has been canceled, usually due to a timeout condition after a GPIB read.  Before reading from the instrument, verify that the GPIB command you are sending is understood by your device and instructs it to place data in its output buffer.  For information on your device's command syntax, consult the instrument manufacturer's user documentation."

-K
0 Kudos
Message 7 of 16
(4,132 Views)

In that window you attached, you type the command followed by \r and click execute.

 

In MAX, right click on the controller to view the properties window. Set the EOS byte to OD (CR) and check the send EOI on EOS (going from memory on the checkbox).

0 Kudos
Message 8 of 16
(4,118 Views)

what do you mean set the EOS byte to OD? it only accepts numbers from 0-255

-K
0 Kudos
Message 9 of 16
(4,113 Views)

Sorry, used to thinking in hex. 0x0D = 0d13.

0 Kudos
Message 10 of 16
(4,107 Views)