LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem on data reading from thermoMETER infrared temperature sensor

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.  

0 Kudos
Message 11 of 14
(908 Views)

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.


0 Kudos
Message 12 of 14
(896 Views)

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.  snippet2.png

0 Kudos
Message 13 of 14
(885 Views)

@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.

 

snippet2.png


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

0 Kudos
Message 14 of 14
(880 Views)