06-13-2008 02:23 AM
06-13-2008 02:29 AM
06-15-2008 06:34 PM
That should do it. Thanks!
--Robert
06-15-2008 06:49 PM
06-15-2008 06:54 PM
06-15-2008 07:18 PM
02-09-2010 10:54 AM - edited 02-09-2010 10:56 AM
Hello!
I dont't get the property value NI_ChannelLength and NI_DataType from a tdms file using the 'TDMS Get Properties' vi.
All other properties are returned.
Inputs to TDMS Get Properties: GroupName: RFbeam; ChannelName: Dev1/ai6.
Output: Variant on output 'property value' (wiring I64 to datatype input does not solve the problem.
These properties are displayed in the TDMS File Viewer however. I marked the missing props with NOK:
What am I missing? Thanks for tips!
Klaus
02-09-2010 11:02 AM
This is weird in that the TDMS File Viewer does exactly that ("TDMS Get Properties" wired with group and channel name, but no property name or type). You might want to look at the "File Contents: Value Change" event in "TDMS - File Viewer.vi" and double-check that your code does the same thing.
Herbert
02-09-2010 02:55 PM
Thanks Herbert
For readers having similar problems, here are my experiences:
It works either without wiring a property name and datatype, as you mentionned before.
Resulting is a variant array. Result see attached solutionVariant.jpg
It also works wiring the right datatype as in the TDMS File Viewer and your first explanations:
Resulting is the channel length as Integer I64 or U64. Datatype constant representation and indicator representation must match!
See attached solution.jpg
My error has been wiring a string "I64" as datatype and a string indicator as value indicator. So stupid...
Regards
Klaus
02-09-2010 05:19 PM
You can wire any data type that LabVIEW can automatically coerce the value to. In this case, that would be any numeric data type (obviously, the range of potential values for I8 or U8 might be too small). Coercion between numerics and strings cannot be done.
Herbert