08-14-2018 08:04 PM - edited 08-14-2018 08:28 PM
hi. it seems as if you know about what you're talking. i don't. i am using the basic_serial_write_and_read VI to get information from by CTF with the USB board. if i input 01, i should get back the temperature in hex. i get nothing and zero bytes read. if i try something like 0E as a command (asking the serial number), i get 0002 01F4 29FE which is WAY too long for the S/N. i am sure that i am on the same com port so i really don't understand what i am doing incorrectly. any help?
**hope that this helps someone: my error was that i had the input string in "normal display" instead of "hex display" that fixed it all except i still get an error saying it timed out, even though it didn't.
08-15-2018 03:21 AM
What model/serial number are you using? (CM, CTM, etc.)
When you say you're getting nothing, how have you setup the serial connection? (Baud rate, termination char etc.)
The extra long serial number could be due to LabVIEW sending a termination char after commands which the device is interpreting as an additional command.
Time out may be some factor of setting up the serial connection wrong.
08-15-2018 01:27 PM
i am using a CTF-SF25. i did solve the problem, though, just by switching the display to hex. i had a terribly hard time using that string for actually get a number to manipulate. however, i did figure it out and i've included the snippet here. this works well.
08-15-2018 11:18 PM - edited 08-15-2018 11:20 PM
@prhs wrote:
I'm using a CTF-SF25. I did solve the problem, though, just by switching the display to hex. I had a terribly hard time using that string for actually get a number to manipulate. However, I did figure it out and I've included the snippet here. This works well.
Link to the other thread that has better examples of how to interpret the data and mentions disabling the termination character when working with binary data.
https://forums.ni.com/t5/LabVIEW/converting-hex-string-to-number-not-working/m-p/3829391#M1082901