06-15-2017 08:43 AM
I am using DIAdem 2015. There is a plugin name HST_DataPlugin, type VBCrypt, used for *.hst file. Every time I load *.hst, DIAdem collects a bunch of other files containing data from long time ago to now. I would like to limit the number of files to load so I can save much time. I tried to configure this plugin to add selection for data range to collect but I am not successful. Please check the attached image. There is not option to do that.
Thank you.
Solved! Go to Solution.
06-16-2017 10:25 AM - edited 06-16-2017 10:25 AM
I have looked into the location of the plugin, I notice that this plugin is stored as .vby. I also learnt that this file cannot be modified. I either need to have the source code and the software that were used to generate this plugin or to create a new plugin from scratch.
I will look into some guides to create script for plugin building.
This issue can be closed now.
06-21-2017 06:59 AM
Hi levan8421
can you please describe how you select the file to be loaded ? Typically you select one file and the plugin loads that file. Only if you would SELECT several files, the plugin would be used to load a series of files.
Andreas
06-21-2017 07:43 AM
There is actually no selection. The data set includes one HST file and a bunch of data files as .001, .002, and such. Everyday a new data file is created and HST file is updated accordingly (I dont know the format because I cannot read HST file). Every time I use DIAdem to load the HST file, all the data files from .001 to the latest one are loaded automatically. There is no way (or at least I could not find) to just select a certain amount of data files to load. The issue is I cannot open/read HST file to modify it.
06-21-2017 07:52 AM
OK, now I understand. Meanwhile I checked our repositories and it looks like this plugin was not created by NI.
As a result, you may want to look for the source code within your company.
Andreas
06-21-2017 08:13 AM
Because you are familiar with this HST data set, could you share whether you could open that HST file and modify it? I am thinking about modifying HST file, instead of creating a new plugin to deal with this issue.
06-21-2017 08:33 AM
Sorry, but this is a misunderstanding. I am not familiar with the HST file at all. All I did was checking whether we have any description for it on the NI side and as far as I can tell, we don't.
One thing I was wondering about : When you load data with the plugin, does each sub-file (.000, .001) etc become a separate group ? Or do all signals appear in one group after loading ?
06-22-2017 02:40 PM
Hi levan,
Have you tried right-clicking on the HST data file in the NAVIGATOR and selecting the "Data Reduction" context menu? The "Load data section" option in the resulting dialog is available in DIAdem 2014 and later versions. You could then select the desired first and last index value to load a "row subset" or effectively a "time subset" of the data from all those files. If you pick the correct index range for just the most recent file, you'll get only its data-- without changing the DataPlugin.
Just a thought,
Brad Turpin
DIAdem Product Support Engineer
National Instruments
06-22-2017 04:45 PM
Brad,
Thank you so much. This is so perfect. Exactly what I want. I use Data Reduction --> only check "Load Data Section", not "Data reduction" -> Input Index first/last value. Now I just need to know how to do this in script. Currently I use DataFileLoad and it does not have parameters to do this.
Any suggestion?
06-23-2017 08:54 AM
Hi levan,
You're close, but there's actually a different command that invokes the reduced loading action:
SectionBegin = 1 SectionEnd = 10 Call Data.Root.Clear Call DataFileLoadRed(DataFilePath, "", "", "IntervalWidth", 1, 1, SectionBegin, SectionEnd)
The above code loads the first 10 values of the data file, from 1 to 10.
Brad Turpin
DIAdem Product Support Engineer
National Instruments