Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

USB-TC01 Temperature Sensor Control Using NI-VISA APIs in a C Application

I have a USB-TC01 temperature sensor, and i want to integrate it with Vector CANoe using C code.

In CANoe, the code will use the NI-VISA APIs to open/close and read/write data to/from the NI-VISA library.

So, i want to know the set of commands that should be sent to the NI-VISA APIs in order to send commands to the temperature sensor, and to read data form it. 

0 Kudos
Message 1 of 2
(829 Views)

I'm hoping to do a similar thing with Python but I haven't bought the USB-TC01 to test. I've been using SCPI commands for the majority of my program so hopefully this can work for the both of us.

 

Full list of commands:

https://www.mccdaq.de/PDFs/Manuals/MEASURpoint-SCPI-Programming.pdf

 

you can try ":MEASure:TEMPerature:TCouple?" to read the temperature

hers what it says as an example

"The following example configures analog input channels 0, 1, 7 for
the default sensor and transducer type for the instrument and then
reads the temperature from these channels:
> :MEAS:TEMP:TC? DEF,(@0,1,7)
< 23323132c7ad9c0041bd99b647c34f800a
where:
• 23 = ’#’ denotes the start of the block response
• 32 = ’2’ is the length of the decimal number for the block length
• 3132 = ’12’ is the block length (that is 4-bytes per channel times
3)
• c7ad9c00 = –88888° C; this is the measurement value from
channel 0, indicating that the value is too low and out of range
• 41bd99b6 = 27.7° C; this is the measurement value from channel
1
• 47c34f80 = 99999° C; this is the measurement value from channel
7, indicating that an open thermocouple exists on that channel
• 0a = carriage return; this is the standard ASCII terminator"

 

If you could get back to me on if this works or how you managed to do it if you already got it done I would appreciate it.

If nothing else just confirmation before I buy that the USB-TC01 connects to NI-VISA would be nice.

0 Kudos
Message 2 of 2
(757 Views)