LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Export.vi hangs if orphaned TEDS entries exist in NI MAX

Hello everybody

 

I'm using "Export.vi" from the "Measurement I/O/System Configuration/Utilities"-Palette to programmatically write all DAQmx configuration info stored on the computer to an INI-file.

 

Sometimes, the VI hangs, and what I found out is the following: When I delete some outdated TEDS entries from the NI MAX database, the VI works flawlessly.

 

As the export is part of a compiled program that several users use, I would like to eliminate this problem without user interaction, it should be handled automatically. As the export is not absolutely needed, it would also be acceptable if the program stops the hanging Export.vi and issues a warning message.

 

1. Does anybody know how to programmatically delete TEDS entries in the NI MAX database?

2. Does anybody know how to abort the hanging Export.vi?

 

I did not succeed in aborting the Export.vi by another VI, because it seems when Export.vi hangs, LabVIEW hangs completely.

 

All help and hints are very welcome.

 

Regards, Ulrich

 

Export VI hangs.png

 

0 Kudos
Message 1 of 2
(1,218 Views)

Hello moseulr

 

You could try to delete the TEDS data with the "DAQmx Clear TEDS" VI of the "DAQmx TEDS VIs and Function" Palette.

 

Here's the documentation link:

https://zone.ni.com/reference/en-XX/help/370469AP-01/lvdaqmx/mxclearteds/  

 

Hope this helps.

Cheers

0 Kudos
Message 2 of 2
(983 Views)