11-11-2010 02:55 PM
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.
11-11-2010 03:48 PM
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