From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

How to delete only a portion of the data portal?

This would be similar to DataDelAll() command, but allow only a limited set of data to be removed.

For some background:

- DIAdem 9.1 sp2
- LabVIEW interface calling various DIAdem/VBS scripts

Using DIAdem to format reports based on various scripts and TDM data results, I would like to be able to load and unload various data files (TDM) while maintaining the specific report layout (also TDM) data in the portal.  Two (ugly) options seem to be:

a)  load entire data result set into the portal (including layout instructions) and process, or
b)  keep track of layout state variables and clear portal/reload layout/load next data

This would all be easy if there is a command to enable the right-click delete... behavior of the data portal UI.

Thanks!

James
0 Kudos
Message 1 of 2
(2,977 Views)
Hello James,

there are diufferent commands you can use to delete only a portion of the data in the portal. You can delete single channels, a selection of channels, or entire groups with these three commands:

Call ChnDel(ChnArg) - deletes one channel
Call ChnDelete(ClpSource) - deletes a selection of channels
Call ChnSDel(ChnArg1, ChnNo) - delets a number of channels
Call GroupDel(TargetGroupIndex) - deletes a group including its channels


To create a selection of channels as argument for the second command, have a look at the functions
ChnSelAdd, ChnSelGet, ChnSelCount

Regards
Ingo Schumacher
Systems Engineering Manager CEERNational Instruments Germany
Message 2 of 2
(2,966 Views)