LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TDMS Open Causes Error 4 or -2506 on cRIO if Operation = "Open or Create"

On cRIO:

TDMS Open works if operation = Create or Replace OR if operation = Open.  Open/Create/Replace File works if operation = Open or Create.

 

But, the TDMS Open primitive with operation = Open or Create causes Error 4 or Error -2506 when trying to open an existing TDMS file.  If the file does not exist, the TDMS Open function works properly with Open or Create (that is, it creates the file).

 

Workaround:  Use operation = Create OR Create or Replace to create files with the TDMS Open primitive, and use operation = Open to open files.

 

Example attached:  This example can be run on either the PC or cRIO.  All modes work both places (PC and cRIO) except TDMS Open with operation = Open or Create on the cRIO.


Certified LabVIEW Architect
TestScript: Free Python/LabVIEW Connector

One global to rule them all,
One double-click to find them,
One interface to bring them all
and in the panel bind them.
0 Kudos
Message 1 of 2
(3,464 Views)

Hello,

 

It appears that this error has been reported for LabVIEW RT 9.0 on VxWorks targets. This error has been documented by Corrective Action Request #173324, and has a fixed in the 10.0 release (LabVIEW Real-Time 2010). I was able to deploy a system with RT 9.0 that replicates the issue. When the same system was upgraded to 10.0, the Open and Open or Create scenarios behave as expected with regard to existing files. 

 

Cheers, 

 

Patrick Corcoran
Application Engineering Specialist | Control
National Instruments

Message 2 of 2
(3,460 Views)