Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview 13.0f2(64-bit) In VISA example -- Commande = Response

Hello,

 

I'm trying to develop an automated calibration system for the PTB220 digital barometer. Right now I'm trying to test the barometer with the example provided here :  Help ->Find examples ... ->Hardware Input and Output -> Serial -> Continuous serial write and read. I fill in the parameters and when i execute a commande the response is exactly the same as the commande fro example if I ask it to continuously provide me with the pressure using the "r" commande I get as a result the letter "r" continuously printing instead of the pressure.

 

Another thing : the barometer works with the Hyperterminal.

 

PTB220 documentation : https://www.mesonet.org/files/instruments/VAISALA_PTB220_UserGuide.pdf

RS232 to USB converter : Edgeport 4

 

Thanks.

 

0 Kudos
Message 1 of 9
(6,637 Views)
You probably just need to append a termination character. Use \r for a carriage return or \n for a line feed. Your during control/constant needs to be set for '\' Codes Display.

Next time you post a question, please provide the necessary details such as exactly what you are sending.
0 Kudos
Message 2 of 9
(6,587 Views)

I didn't forget the termination character, I tried bothe /n and /r, here is exactly what I'm doing : labview.PNG

 

Thanks.

0 Kudos
Message 3 of 9
(6,560 Views)
What if you set software handshaking on per page 15, set the correct termination character, and send a valid command?
0 Kudos
Message 4 of 9
(6,538 Views)

I have tried it both with and without flow control, same result. I've seen here http://digital.ni.com/public.nsf/allkb/171D2D70CFB66E74862571390062D12B that this problem occurs either because of the termination character as you said or the speed with wich labview communicates with the instrument, I'll try this second option. But what makes me wonder is that it returns the same input if the was a problem with the settings shouldn't it just return some gibberish?

0 Kudos
Message 5 of 9
(6,521 Views)
The instrument is echoing back the command because it could not parse it. This is certainly the case when you send something invalid such as the *IDN? that you show in the image. I don't the result when you send a valid command from the manual.
0 Kudos
Message 6 of 9
(6,519 Views)

Read my first post I tried commands from the manual such as the "R" command. The thing is it echos back anything you try. Also both R and *IDN? work on the hyperterminal.

0 Kudos
Message 7 of 9
(6,461 Views)
I don't see *IDN? listed in the manual so I don't see how that would work. Your image also shows a line feed for a termination character instead of a carriage return. Please don't attach something that you know is not supposed to work. Attach an image with settings according to the manual. Also try sending the R command in MAX. Attach an image of that.
0 Kudos
Message 8 of 9
(6,456 Views)

I'll try your suggestion (MAX) though I won't get access to the equipment until the week after the next, the person in charge of the equipment will be away on business. For the attachment I tried multiple things that day and ended posting the last thing i tried.

 

Hope you still get back at me then and thanks.

0 Kudos
Message 9 of 9
(6,451 Views)