LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programatically Removing TEDS configurations from NiMax

I would like to programatically remove all of the TEDS configurations that are stored on my hardware in NIMax. I have tried to use the DAQmx Clear TEDS Vi for this with no luck. 

0 Kudos
Message 1 of 5
(2,698 Views)

As an aside I'd like to query the measurement direction and record that information. This is in the TEDS properties which can be seen in NiMax but it is not one of the available options for the Teds channel property node. Is there a way to get this information out in Labivew

0 Kudos
Message 2 of 5
(2,688 Views)

I'm not sure about the first question, but regarding the second you could try something like this:

teds.png

Here I've shown the name of the only VI not on the TEDs palette, which I found by placing some of those VIs on my block diagram, then going to the Files view in Project Explorer, then right clicking on the TEDS VIs and choosing Explore..., then opening the TEDS_api.llb and scrolling down the list to find the TEDS_Parse Binary TEDS(u8).vi

 

I'm just getting the value of a default property here - you'd want to instead choose whatever the label of your Sensitivity Direction is, or whichever you needed.

Edit: See below for the correct way to get the property labels. The table instead gets their descriptions, which can't be used to get the values (although you could parse the second column for the values if you are only looking for "x", "y", "z" and don't require numeric precision).


GCentral
0 Kudos
Message 3 of 5
(2,598 Views)

It also turns out that the TEDS library is only installed by default in LabVIEW 2018 or later. If you're using an earlier version of LabVIEW, take a look at these links to help you get it working:

How Do I Install the TEDS Library into LabVIEW?

Reading Smart TEDS Sensors and Virtual TEDS Files in LabVIEW

The second link includes an example that shows a way to get the property labels (the table gives the descriptions it seems).

A modified example might be more like this:

teds2.png


GCentral
Message 4 of 5
(2,593 Views)

@cbutcher wrote:

It also turns out that the TEDS library is only installed by default in LabVIEW 2018 or later. If you're using an earlier version of LabVIEW, take a look at these links to help you get it working:

How Do I Install the TEDS Library into LabVIEW?

Reading Smart TEDS Sensors and Virtual TEDS Files in LabVIEW

The second link includes an example that shows a way to get the property labels (the table gives the descriptions it seems).

A modified example might be more like this:

teds2.png


Adding to the above...

 

As of LV 2017 the "Templates" where not included in RT PXI installs. They have to be copied from the Windows machine to the correct path on the RT system.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 5 of 5
(2,569 Views)