01-17-2011 07:16 PM
I have USB thermometer (Omega TJ-USB). I've communicated with it successfully in Hyperterminal. When i go to try it with MAX, it usually starts working after the second attempt at write/read. But even though i set the termchar to 0xD and termchar_en to True, i still have to type my write as 'C\r' for it to return '20.2 C\r' (20.2 C being the temperature) Any idea as to why this happens?
Also, i go ahead and make my VI, very similar to the one found in this labview tutorial - image shown here: http://zone.ni.com/cms/images/devzone/tut/a/e09bfd41228.gif I set it for baud:38400, 8n1. and i also write 'c\r', but i get the 1073807339 error. I tried changing the buffer with no change in results.
I thought this would be a fairly straight-forward task, but it seems like I am wrong, or overlooking something simple.
Solved! Go to Solution.
01-17-2011 09:11 PM
Setting the term character with the VISA Configure Serial Port has nothing to do with a write. It determines what character will terminate a read.
Post your VI. Are you sure you right clicked on the string control and selected '\' Code Display?
01-18-2011 09:42 AM
Hi Chknrckd,
Also what could be the issue is the way hyperterminal sends out characters (when you type that is). LabVIEW will send out a string at a time, while hyperterminal sends out individual characters at a time.
More information could be found here:
http://digital.ni.com/public.nsf/allkb/171D2D70CFB66E74862571390062D12B
Hope this helps!
01-18-2011 12:17 PM
yep. that was the problem. thanks Chris!