02-25-2014 06:33 AM
Hi,
I'm not a computer ingineer, so my knowledge is basic.
I 'm trying to read the value of a counter on Labview (7.1), via a serial port.
Here is the Visa config. of the counter:
- Baud rate: 4800
- Parity : even
- Stop bits: 1
I need to send first a message (Visa Write), then It'll answer me (Visa read). Is it the right procedure?
I receive an error "1073807253", which mean that the "visa serial" isn't well connected But I've checked evrything and it seem rigth.
Please help me out.
02-25-2014 12:10 PM
You may not be giving the counter time enough to respond. Place a 100-200 ms wait function after you write the command to the instrument.
02-25-2014 01:08 PM
Hi Pierre,
you should at first clean up your VI:
- After doing so you should check the display type of all string constants and indicators. As I switched on "display mode" for those string constants I noticed they are not the same…
- Then you have configured SerialPortInit to use LF as TermChar. Does your device support such TermChar? If yes: use it by requesting slightly more bytes for VISARead then the device will likely send in it's answer to your request.
- Please check the device's manual for any required TermChars in the message as you have to append them on your own! In case the device is waiting for some special TermChar you will may not receive any answers…
02-25-2014 02:58 PM
Error -1073807253 is a framing error. I wonder if the problem is the first item in you Concatenate Strings. The first item shows as 02 but you are using Hex Display for that constant so you're seeing the ASCII value in hex, which is an unprintable character. The other 3 items are Normal Display so you are seeing the actual text that will be sent. Perhaps you need to change the first item's display type to Normal and then type in 02. Try that and see if it helps.
02-27-2014 03:03 AM
I'v tried to include a timer 200, 500 & 10000 ms. bt it doesn't change anything
02-27-2014 03:10 AM