Discussion:
serial command syntax
(too old to reply)
jb07
2007-09-13 10:10:09 UTC
Permalink
Dear all,
 
I'm trying to comunicate with a device via a serial port. For this sake, I'm using the "Advanced Serial Write and Read.vi" from the examples library. I put the right prameters but I still can't figure out the right syntax for the srting filed to be written on the serial port. I always get a timeout error message.
Could you please give me an exemple of a command (string) to send to the serial port.
 
Please find in the attachement the protocol data sheet.
 
Thanks for your help.
 


T10_Protocol.pdf:
http://forums.ni.com/attachments/ni/70/7432/1/T10_Protocol.pdf
ClementG
2007-09-17 14:10:13 UTC
Permalink
Hi JB,
 
Unfortunately, I can't give an example command for this device, each device has it's own commands, an example of a common command is *IDN? which used by many instruments, but I don't know if your instruments will recognize it. I think the best is to contact the provider of the instruments.
Regards,
jb07
2007-09-17 14:40:10 UTC
Permalink
Thanks, I've already find a solution. You have to right commands either in hexa or ascii code and not to mix both as indicated in the data sheet.
 
regards

Loading...