11-05-2014 12:31 AM
Hi,
I am finding difficult to retreive the file names of the different groups loaded in the data portal. For example, say I have loaded two different files of same ext .tdms in to the data portal which automatically assigns as two groups. My objective is to retreive the file name of the two groups loaded using VBS in diadem 11.1.
Can anyone help me in this regard.
Regards,
X. Ignatius
Solved! Go to Solution.
11-05-2014 01:01 AM
The filename and path is attached to the channels
Option Explicit dim grpNr : grpNr = 1 msgBox Data.Root.ChannelGroups(grpNr).Channels(1).Properties("sourcedatafilename").Value msgBox Data.Root.ChannelGroups(grpNr).Channels(1).Properties("sourcedatafilepath").Value
would give you the info you requested for a given group index.
You can determine the names of the properties by just dragging them from DIAdem Data portal to diadem Script.
11-07-2014 01:36 AM
Thanks Andreas,
I have got a plugin which loads the multiple lvm files with their sourcefile name. Earlier it would be like Labview Data, Labview data1, Labview data2.... when multiple files are loaded. Now with this plugin attached in the startup script, all the files are loaded with their original file names.
Attached the plugins, place the Custom LVM Load Event. Vbs in the start up script, the other attachment is the function callled by the main script.
Regards,
X. Ignatius