In LabVIEW, there is a subpallete from NI-DAQmx where you can access TEDS functions. To access it, open the functions pallete and go to Measurement I/O>>NI-DAQmx>>Advanced>>DAQmx TEDS.
Using those functions, you can basically:
- Associate TEDS information with the physical channel you specify using the function DAQmx Configure TEDS.
- Write TEDS data to the TEDS sensor connected to the physical channel you specify using the function DAQmx Write TEDS Data.
- Get the TEDS properties from a specific physical channel using the DAQmx Physical Channel Property Node.
- Remove TEDS information from the physical channel you specify using the function DAQmx Clear TEDS.
In case you have configured this physical channel in MAX previously, the functions listed above will temporarily override that configuration.
In case you are starting working with TEDS in LabVIEW, you can first use the function DAQmx Configure TEDS
and add the physical channels you want to associate TEDS information. You can optionally point to a virtual TEDS file. If you do not point to a Virtual TEDS file, NI-DAQmx will attempt to find a TEDS sensor connected to the physical channel you entered and get the information from it.
After calling the function DAQmx Configure TEDS,
you can create a TEDS virtual channel using the function DAQmx Create Virtual Channel.
If you want to create an accelerometer virtual channel, for example, you will have to click on the drop-down menu below the VI icon and select Analog Input>>TEDS>>Acceleration>>Accelerometer
, as shown in the picture below.
Note: TEDS virtual channels VIs require you to configure the physical channel(s) with TEDS information before calling them.
After configuring the virtual channel, you can move on configuring the NI-DAQmx task as usual.
You can use the TEDS library
to manipulate TEDS data to use it throughout your code.