10-05-2011 12:55 PM
Hello all,
I am having a small issue using the VISA test panel in MAX. I am trying to send a simple command to a device and then retrieve the response data. I am able to do this successfully via Labview, but for whatever reason I can not get a good response in MAX. The command that I am sending is simply a letter (address of the device) followed by an end of line character (\r\n in ascii). In MAX, I simply append the \r\n onto the string sent in the buffer (Send End on Writes == FALSE). All serial settings are the same as what I have in LV (19.2, 8-n-1). Does anyone have any thoughts? This is kind of frustrating as I just want to do something simple and don't want to have to build a whole routine in LV to do this.
Cheers, Matt
Solved! Go to Solution.
10-05-2011 03:03 PM
I can't get an error unless I read the buffer dry. What error are you getting? Timeout? Clear the buffer and hit the other Clear button, then hit Write then Read. That doesn't work?
10-05-2011 04:18 PM - edited 10-05-2011 04:21 PM
Thanks, Broken. I am getting a time out error. Clearing the buffers doesn't seem to be making a difference. This is baffling to me. I must be missing something fundamental.
Something that I didn't add before is that I seem to be able to send the command via labview without a read, and then read it via MAX. This must have something to do with way it is sending the command. Arrrrgh!
Matt
10-05-2011 06:48 PM
Have you tried using a loopback? That would rule out any idiosyncrasies between your gear and the timing/protocol differences between your LabVIEW ap and MAX.
10-06-2011 10:55 AM
Whoops! User malfunction. I was so positive that I was sending an end of line constant that I didn't look closely at my own code. Turned out, it was a new line! Duh! Thanks for trying to assist with this Arrow. Sorry to waste your time.
Cheers, Matt