Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

No communication with a gpib instrument

Solved!
Go to solution
How can I send CR and LF at the end of write with the instrument control.
0 Kudos
Message 1 of 6
(4,006 Views)
A very generic quesiton gets a generic answer - you append CR and LF to the string. It would help an awful lot if you provided some details. What language are you using? What GPIB function (VISA or low level GPIB)? Why do you even need to send CR/LF? An instrument that is compliant with IEEE-488.2 does not require any termination other than the EOI control line.
0 Kudos
Message 2 of 6
(3,992 Views)
What is the instrument model?  (there are a LOT of non-complient instruments on the market)

"Should be" isn't "Is" -Jay
0 Kudos
Message 3 of 6
(3,988 Views)

Hi Dennis, I have a 20 years old weighing mashine (Mettler PE 3600) which has a current loop interface. I have also a 20 years old converter from gpib to cl (current loop).

Whenever I sent something with the measurement & automation explorer from ni I get a timeout from the converter.

Now I got a documentation of the current loop interface. From there I have the information that the last 2 charakters in the string must be cr and lf.

I tried /r and /n in the measurement & automation explorer. But I think the explorer send it as a string "/r/n" and not the 2 characters.

For that I want to know how I can send cr and lf with this tool.

 

Bestr regards

Martiin

0 Kudos
Message 4 of 6
(3,968 Views)
Solution
Accepted by topic author Henninger

Instead of /r and /n, use \r and \n.

 

You can also configure the GPIB controller to append these characters if I remember correctly (I know you can do it with LabVIEW). I don't have a GPIB interface installed and don't remember the exact procedure but there is an option someplace to modify what is sent with EOI.

0 Kudos
Message 5 of 6
(3,956 Views)

Hi Dennis,

thanks a lot my problem is solved!

Best regards

Martin

0 Kudos
Message 6 of 6
(3,913 Views)