Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

serial command syntax

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.
 
0 Kudos
Message 1 of 3
(3,729 Views)
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,
ClémentG
0 Kudos
Message 2 of 3
(3,701 Views)
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
0 Kudos
Message 3 of 3
(3,698 Views)