Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to write TDMS channel properties from for loop

I created a simple DAQ & Storage VI to learn about TDMS. One of my priorities was to write custom properties for file, groups, and channels. I was able to get most everything working except the channel properties. The set properties VI is inside a for loop and the channel name and property values are auto-indexed. I kept getting errors (-2500 I think). After many changes, I discovered that the TDMS Set Properties VI does not like 'sub-arrays'. It will work with exactly one channel, only. If you can't use a for loop, then how would you write channel properties for 2 to n.. channels, especially with a high channel count and if the count always varies?
Phillip Neir
GM Engineering
0 Kudos
Message 1 of 3
(3,109 Views)
Phillip,

this is a known issue with 8.20 that will be fixed in the very next LabVIEW release. The good news is that there is a workaround. You can turn any subarray into a regular array by wiring it in and out a for loop, with both input and output being indexing tunnels. You can then wire it to the TDM Streaming functions with no problem.

Hope that helps,
Herbert
0 Kudos
Message 2 of 3
(3,105 Views)
Thanks Herbert. It does indeed help.
Phillip Neir
GM Engineering
0 Kudos
Message 3 of 3
(3,101 Views)