12-09-2005 02:01 AM
12-09-2005 02:28 AM - edited 12-09-2005 02:28 AM
Hi LabLeo,
I think only "read" termination is configured by your VI (see help for VISA Config Serial Port)
Try using a property node to set ASRL End-Out to "TermChar"...
Cheers
... by the way, that's an odd place to use a Local reference to the VISA reference! Better, I think, to wire through the Write just as has been done with the read(?).
Message Edited by Dynamik on 12-09-2005 02:32 AM
12-09-2005 05:40 AM
12-09-2005 07:56 AM
12-09-2005 10:15 AM - edited 12-09-2005 10:15 AM
Instead of using a property node, it might be easier to just concatenate the End of Line constant to the write buffer as seen in the attached picture. Sometimes controllers are peculiar in what the end of line should be. Sometimes carraige return works, sometimes line feed, sometimes both. Fortunately Labview provides constants for all. try each one to see which works best. The picture is using the carraige return/line feed (0x0A and 0x0D)
Message Edited by tbob on 12-09-2005 09:15 AM
12-10-2005 09:30 PM
Hi LabLeo,
LabLeo wrote:
The PIC programm works like it should if I simulate it on the PC.
For that I first write the string 123,456, and than the Return in HEX 0D;
The programm also stops till it gets the Return value.
You said in your first post that you wanted to send a 0x0A, but here say it supposed to work with 0x0D!
With a little effort, you can figure this out - but BTW, I usually follow tbobs advice and add the term-char explicitly.
cheers!
12-12-2005 01:15 AM
12-12-2005 07:05 AM