DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Select channels programatically?

Hello,
 
I developed a little script to search through the channel names in the data portal.  Entering the beginning or partial name of a channel gives a list of all channels that match.  After they find the channel(s) they are looking for, I have given them the option to put these channels in a graph or table in REPORT or VIEW.  I thought it would be neat to also give the option to "select" the channels in the data portal, so they could do what they would like with them.  I cannot seem to find if I can do this programatically though. 
 
Thank you! 
 
Julia Moeller
0 Kudos
Message 1 of 5
(3,921 Views)
Hi Julia:

You would have to use the ChnGet function to access Channels in the data portal programatically. The format for this function is
Call ChnGet(ChnSingleNo, ChnMultiNo, ChnGetTitle)

Thank you
Nandini
NI
0 Kudos
Message 2 of 5
(3,895 Views)

I have created a Community Example Program which may be of your interest: it performs a filtered group and channel search using dialog.

 

Filtered Data Portal Search with DIAdem Dialog - Discussion Forums - National Instruments

https://forums.ni.com/t5/Example-Program-Drafts/Filtered-Data-Portal-Search-with-DIAdem-Dialog/ta-p/...

 

Filtered_Search.PNG

Eric H.
Applications Engineering
National Instruments
0 Kudos
Message 3 of 5
(2,985 Views)

Hello Julia,

can you explain why it was necessary to develop a script instead of using the built-in filtering from the Data-Portal ?

Thanks for explaining.

 

Andreas

0 Kudos
Message 4 of 5
(2,979 Views)

Hi Julia,

 

Did you find the programmatic channel selection function for the Data Portal?  All programming in the Data Portal these days starts with the "Portal" object.

 

Brad Turpin

DIAdem Product Support Engineer

National instruments

0 Kudos
Message 5 of 5
(2,974 Views)