NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member BSI
Member
BSI
Posts: 187
0 Kudos
Accepted Solution

Veristand TreeBrowserWF Display Filter

There is a TreeBrowserWV object under under the .net object NationalInstruments.Veristand.SystemstorageUI.WinFormWrapper. One property is the Display Filter (see below). Where can I find the doc detailing the filter list ? Thx.

Laurent

 

treebrowser.jpg 

Active Participant
Jarrod_S.
Posts: 1,346
0 Kudos

Re: Veristand TreeBrowserWF Display Filter

This control is used internally in NI VeriStand and is not publically documented. It is not currently intended to be used in custom applications.

 

The display filter property controls what types of channels are shown in the tree browser.

 

R: Readable channels

W: Writable channels

RW: Readable and writable

VOLT: Scalable channels, usually HW I/O

FAULT: Faultable channels

ALL: Any channel

CUSTOM: Used in conjunction with a custom filter, such as a compound filter that mixes readable and faultable.

VIS: Visible. Not hidden by the VeriStand Project

 

Jarrod S.
National Instruments
Member BSI
Member
BSI
Posts: 187
0 Kudos

Re: Veristand TreeBrowserWF Display Filter

thx. Your description will do.

L.

Member
joshe
Posts: 41
0 Kudos

Re: Veristand TreeBrowserWF Display Filter

Is there a way to just show the Visable readable channels and the Alias channels?

Active Participant
Jarrod_S.
Posts: 1,346
0 Kudos

Re: Veristand TreeBrowserWF Display Filter

You can do many powerful things by playing with the Custom filter type. If you select K_CUSTOM as the filter type, then you can supply a custom filter composed of many sub-conditions to help select the type of items you want showed.

 

Attached is an example you can play with that creates a custom filter type similar to the one you described.

Jarrod S.
National Instruments
Member
joshe
Posts: 41
0 Kudos

Re: Veristand TreeBrowserWF Display Filter

Thanks for the information and the quick response.

Member
joshe
Posts: 41
0 Kudos

Re: Veristand TreeBrowserWF Display Filter

I don't think I am using this correctly.  Do you have a suggestions?   This Snip seemed to add some extra stuff, but hopefully this makes since of what I am trying. I just want to show the Alias and the readable visible channels.  I don't see the Alias when I do it this way.  If I put the method before the property, I do see the alias channels, but I also get the Data Sharing Network, System Mappings, and System Initialization. is there another way to use this?

Thanks

-Josh

snip .net.png

Active Participant
Th0r
Posts: 240
0 Kudos

Re: Veristand TreeBrowserWF Display Filter

Hi Josh,


Does this return any values at all when you do it this way, or none at all?  Do you get the Data Sharing Network, System Mappings, and System Initialization channels either way?


The one thing I notice that's different from Jarrod's example is that you're using K_CUSTOM as the DisplayFilter in the TreeBrowserWF property node, and also the method.  Maybe try removing DisplayFilter from the list of properties and see if it works any better.

Member
NestorG
Posts: 118
0 Kudos

Re: Veristand TreeBrowserWF Display Filter

Hi joshe

 

- Do not call the TreeBrowserWF:smileyvery-happy:isplayFilter property if using SetSystemDefinitionDisplayFilter() explicitly. Doing so will simply overwrite the other. Choose one.

- call the TreeBrowserWF:smileyfrustrated:tartNode property after configuring the filters. Essentially, StartNode will apply the filter and populate the tree.

- You mention your need to display Aliases and Readable Visible Channels only. Would you like to filter the Aliases list from the Readable Visible Channels, or are the two independent?

- Jarrod's example will only Display Aliases if the linked/referenced channels are Writable or Readable - based on your selection.

 

You mentioned that Aliases are not showing in the tree; however, are Alias linked channels showing in the tree?

Nestor
Member
joshe
Posts: 41
0 Kudos

Re: Veristand TreeBrowserWF Display Filter

Thanks for all the feed back.  I was able to get this working by using the Method before the Property and deleting the DisplayFilter property.  It seems to give me what I want now.:smileyvery-happy:

 

On another note, I am checking for a User Event on the .Net Tree to detect a "DblClick" so I can add the selected VeriStand Channel.  I am using Convert Callback to DBLClick.vi  from the VI.LIB.  This works, but if a folder is double clicked on it will try to add the folder as a channel, I would like to some how check if the item double clicked on is at the lowest level (root?) of the directory (a real VS channel not a folder containing channels).  Is there a way to do this? 

Thanks!!!

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page