Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

trouble parsing masterflex LS drive response

I am communicating with a Masterflex LS drive via RS232.  The commands sent to the drive end with \r and the drive responds with an <ack> or "06" binary after a successful communication.  The commands are operating the drive properly but labview times out trying to parse the response.  I have tried using "none" for the termination character and hard coding the \r in the write commands with no success.  Also, I can only command the drive using the query and parse in the Instrument IO Asst.  If I try the same command using Write in the Intrument IO Asst. or with a VISA Write I get no response or reaction from the drive.
 
Any Ideas?
0 Kudos
Message 1 of 3
(3,629 Views)
Some more info on this problem.  Using the Instrument IO Asst., if I put a command in a Query and Parse step such as "\02P01S+200\r" and then use the "split this step into write and read and parse" command, the write step alone will work.  If I then edit the write command to "\02P01S+100\r" or try to add a parameter it will no longer control the drive.
0 Kudos
Message 2 of 3
(3,618 Views)

Hi KCC66,

I would suggest trying to use the Basic Serial Write and Read VI located in the LabVIEW example finder. From what I understand, your instrument only responds with a "06", if this is correct, you don't really need to parse the data, as there isn't really any data to parse.  This is why I recommend the example program, this program does a write and read at the serial port.

About trouble shooting the instrument simulator:  I would recommend using NI Spy to see exactly what VISA calls are being made to your device and what if any errors are occuring.  NI_Spy installs with VISA, I would recommend this KB for more information regarding NI-Spy. Post back with any error codes you get or additional questions.  Thanks.

Ted

Ted H
Applications Engineering
National Instruments
0 Kudos
Message 3 of 3
(3,598 Views)