LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Truncated Data Error when loading saved waveforms

Solved!
Go to solution
After  I save a waveform using the "Write Waveforms to File" VI (e.g. I save it as wave.lvm), I have tried to load it using the "Read Waveform from File" VI. I always get an error about truncated or unflattened data (error 116). Any suggestions?
0 Kudos
Message 1 of 8
(4,572 Views)

Hello boomchild06,

 

What version of LabVIEW do you have? Do you face this issue for every waveform that you have saved or only a few? 

Vivek Nath
National Instruments
Applications Engineer
Machine Vision
0 Kudos
Message 2 of 8
(4,553 Views)
I am using Labview 8.0. I am having  this problem with every waveform I save. I thought I might just be using the wrong extension (.lvm) for Labview to read it, but I've tried other extensions recommended by the website and none of them work either.
0 Kudos
Message 3 of 8
(4,546 Views)
Solution
Accepted by topic author boomchild06

Hello boomchild06,

 

After having a detailed look around the various databases that we use, I've found out that this is a known issue with LabVIEW 8.0.

A workaround has been proposed as the following:

1. Place the Read Waveform from File.vi on the block diagram and double-click it to open it.
2. Go to the block diagram and double-click on the Open Create Replace WDT DLog File.vi and view the block diagram.
3. Navigate through the case structures until you see the Deny Access function. I would suggest saving this VI as something different from this point on, so that you do not change the VIs in the vi.lib folder.
4. Once you have resaved it with a different name, and I would suggest in a different location, follow the output of the error cluster to the case structure that it is wired to. I would navigate to the False case, and then right-click on the border to remove this case.
5. Once that is done, you can remove the entire case structure. I might recommend doing it this way to avoid a lot of painful rewiring.
6. Once you have this removed you can remove any additional broken wires, the unbundle function and the Equals Zero function. You can either chose to remove the Deny Access function, to prevent error pop-ups.

Alternatively, the fix has been implemented in the LabVIEW 8.0.1 update which is a free patch that can be installed. If you want to go ahead and install this, it can be downloaded from:

http://digital.ni.com/Softlib.nsf/webPreview/4C1209D42320BCFD8625711C005FB25B?OpenDocument

 

I hope this helps. 

Vivek Nath
National Instruments
Applications Engineer
Machine Vision
Message 4 of 8
(4,522 Views)

I've installed the patch as suggested, and it worked great on reading lvm files. However,  ever since I installed the patch my version of Labview always is compiling and random components  are not beign recognized. For example, I recently had this error regarding a DAQ Assist:

 

Error -2147220719 occurred at DAQmx Create Channel (AI-Voltage-Basic).vi:1

 

(Hex 0x80040311) The client process has been disconnected from the configuration server. If this problem persists, please note the steps you performed that led to this error and contact technical support.

 

Any idea how to prevent this from happening?

0 Kudos
Message 5 of 8
(4,462 Views)

Hello boomchild06,

 

This does seem strange. Are you running into this problem only with NI-DAQmx functions? If not, where else have you been seeing problems after installing the patch?   

Vivek Nath
National Instruments
Applications Engineer
Machine Vision
0 Kudos
Message 6 of 8
(4,440 Views)
No, I'm having issues with other functions as well: reading from files, derivatives, converting DDT to double (and vice versa), filters and others. Sometimes they load and act normally other times they don't, but I never had any issues like this ebfore installingt he patch.
0 Kudos
Message 7 of 8
(4,431 Views)

Hello boomchild06,

 

It almost looks like the patch corrupted LabVIEW. Try re-installing the patch. If this does not work, I would try repairing LabVIEW. You can follow these steps to do so:

1) Go the Control Panel>> Add or Remove Programs

2) Find 'National Instruments Software' in the list of programs and click on 'Change/Remove'.

3) Select your version of LabVIEW from the list of software and the click on 'Repair'. Have your installation CD handy.

 

I hope this helps. 

Vivek Nath
National Instruments
Applications Engineer
Machine Vision
0 Kudos
Message 8 of 8
(4,421 Views)