06-03-2007 02:33 PM
06-04-2007 01:49 AM
06-04-2007 02:40 AM
06-04-2007 04:48 AM
03-25-2008 01:44 PM
03-26-2008 10:50 AM
Hi Jeff,
I agree that the only-one-file-level-property-display limitation in DIAdem is very frustrating, but it's not likely to go away any time soon. Note that LabVIEW does NOT share this problem, since each file opened becomes an opened file reference, and you can read off file properties from any file reference you want at any time. Note that the DataFinder aIso does NOT share this problem. You can query file properties with perfect accuracy in the DataFinder. The only rub is when you load multiple files into DIAdem.
You do have the ability to programmatically retrieve the file properties from loaded channels in the Data Portal, but you will not see those properties in the Data Portal, and you will also not be able to directly reference the properties of the second or third file in REPORT layouts. Let me know if you are interested in looking into how to programmatically dig out the file properties from loaded Data Portal channels.
In practice I usually bite the bullet and duplicate the global information as identical properties in all of the Groups. If my users are timid, I often also duplicate them on the file level as well, since the simple search in the DataFinder only displays properties from the file level, and since the file level is the default level when specifying conditions in the advanced search.
I would NOT recommend creating a group that only contains global properties-- this makes it impossible to use those properties in DataFinder queries.
Ask as you have further questions,
Brad Turpin
DIAdem Product Support Engineer
National Instruments
03-26-2008 11:31 AM
Thanks, Brad. Good to know they're still searched on. Not good, that they can't be referenced in custom reports, though. Have you had success programmatically accessing them, and utilizing them in reports? Duplicating is possible...I'll have to play around with it some before I can fully grasp the report generation issues that result.
Our file sizes are large enough as it is, I'd hate to be duplicating all that meta-data.
Jeff
03-27-2008 08:27 AM
Hi Jeff,
If you have channels (arrays) of acquired data values, then you can pretty much ignore the descriptive properties' contribution to the file size. Some customers have ONLY descriptive properties or predominantly descriptive properties with channel lengths of 10 or so values, but if you're not one of them it's very unlikely that duplicating your file properties at each group is going to significantly increase your file size. Still, that's your call.
For data loaded into the Data Portal the file path information is stored at each channel in the following two properties:
Display name in Data Portal Programming name Example
----------------------------------------- ---------------------------- ------------------------
"Source file" "sourcedatafilename" "EXAMPLE.TDM"
"Source file path" "sourcedatafilepath" "C:\Data\"
In a VBScript, you can retrieve the parent file path of a given channel and then query that file's properties (if it's still in the same location) by creating a DataFileHeader object from that file path:
Set oMyDataFileHeader = DataFileHeaderAccess("C:\Data\EXAMPLE.TDM", "TDM", False)
In order for these properties to show up in a report, you would then need to set report variables in the VBScript, or save the file properties you retrieved from the DataFileHeader object to new file or group or channel properties in the Data Portal, then reference those in the report layout.
Ask if you have further questions,
Brad Turpin
DIAdem Product Support Engineer
National Instruments