02-07-2008 10:58 AM
02-07-2008 02:32 PM
02-07-2008 02:51 PM
02-07-2008 03:12 PM - edited 02-07-2008 03:12 PM

02-07-2008 05:42 PM
My mistake. In my first post I missed mentioning that the NI_SV_ChannelInfo attribute has a cluster data type. I'm using the standard File I/O TDMS routines. They like the normal attribute types - string, integer, double, etc... but the UNV58 routines appened a cluster attribute which they do not like.
02-08-2008 11:53 AM - edited 02-08-2008 11:55 AM

02-08-2008 12:38 PM
Just an FYI for future reference. Over on the LAVA forums, one of the active members posted some very useful code for writing and reading clusters to/from TDMS files. Here's a link to the specific post, but you should scan through other parts of the thread if interested. The code is a fairly small mod of some OpenG code for writing clusters to ini files.
One other tidbit I picked up somewhere, but don't know where. It may have been version-specific and may no longer be necessary but shouldn't hurt in any case. Here it is: be sure to send your clusters through a "To Variant" primitive before wiring to the top-level "Write Variant to TDMS" (or whatever the exact name) in the code I linked. If you wire your clusters directly, there'll be an automatic coercion to variant which won't necessarily behave as intended.
I learned the tidbit after having wired the clusters directly for a while, and never personally observed any data corruption. But I *did* go back and insert the "To Variant" before all my writes. No corruption since making the switch either.
-Kevin P.
04-03-2008 01:16 PM
04-03-2008 01:18 PM