LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

replace instead of append tdms file

The tdms files can accept only LabVIEW basic data types not clusters or other collective types.  i have developed a vi which will flatten the cluster to a string and manipulate the string to replace certain portions of string so that TDMS files will accept and have a vi that reads the string and converts back into the required format.

Will post the vi after some modifications

With regards,
JK
(Certified LabVIEW Developer)
Give Kudos for Good Answers, and Mark it a solution if your problem is solved.
Message 11 of 16
(1,291 Views)

Flattening the cluster to a string will work only within LabVIEW applications that are aware of the cluster data type. Other LabVIEW applications, for example the TDMS File Viewer, will not be able to extract data from a flattened string. The same goes for any non-LabVIEW application that supports TDMS (Excel, DIAdem, LabWindows/CVI, Measurement Studio, SignalExpress, FlexPro, Origin...). Depending on what your requirements are, this might or might not be important to you.

 

The library available from LAVA (see my earlier post) splits up clusters into a set of properties and therefore avoids this problem.

 

Herbert 

0 Kudos
Message 12 of 16
(1,288 Views)

Yeah Herbert the library you mentioned works great.

thanks alot.

 

but i still wonder why NI hasn't come out with any solution to this problem knowing that it has been there for so long(probably 2 years). 

 

Ritesh 

0 Kudos
Message 13 of 16
(1,272 Views)

Hi Herbert,

i need ur assistance again with the library you mentioned above.

I am saving a lot of properties, wave data and cluster(2 I32 elements) in the TDMS file. I am using the above library the store cluster in the file.

it is saving without any issues, but isn't reading back properly.

I am attaching my Read VI here. The function with reads back the cluster generates an error.

could u pls have a look at my VI and guide me to the solution.

 

 

Thanks,

Ritesh 

 

0 Kudos
Message 14 of 16
(1,117 Views)

Ritesh,

 

could you post this problem back to the original LAVA forum thread, ideally along with a TDMS file that contains data of this type?

 

Thanks, 

Herbert 

0 Kudos
Message 15 of 16
(1,108 Views)

I tried Posting there, but it seems LAVA forum is offline as i received this message on the site "Sorry... 

The LAVA Site is off-line until further notice.
"

 

 

Ritesh 

0 Kudos
Message 16 of 16
(1,101 Views)