NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Hiding Adaptor Icons in insertion pallete

Solved!
Go to solution

I am creating a TestStand OI in LabVIEW. I was wondering if it is possible to hide the adapter ICONs shown in the insertion pallete?

 

 

0 Kudos
Message 1 of 8
(3,877 Views)

Yes, there is a setting for this in the adapter configuration dialog. Use the Configure->Adapters menu item.

 

Hope this helps,

-Doug

0 Kudos
Message 2 of 8
(3,862 Views)

Thanks Doug. I see that I can hide all but one. Is there a way I can hide the whole row? Since we'll be using custom steps 99.9% of the time which are set to select an adapter (the operator will not have a choice to change the adapter in the custom step) this will be ideal for us that we hide the whole row.

 

Also I am wondering how this can be done problematically.

 

 

0 Kudos
Message 3 of 8
(3,844 Views)

OK. The example code to illustrate how the Adapter ICON can be hidden programmetically is attached . I notice that it is possible to hide all the adapter ICON but when it was done the LabVIEW code gave error in FULL - Configure SequenceFileViewManager.vi in during initialization. ( I am refering to the FULL UI LV example code that is shipped with Testand).

hiding adapter ICONS.png

 

0 Kudos
Message 4 of 8
(3,838 Views)

I also noticed that the when the adapter icon Hide/Visible setting is changed from the Menu bar (Configure> Adapters...) the effect is immediate on the UI. But when teh same is done from the Code (shown in previous post) the effect on UI is visible only when the LabVIEW example is run next time. I hope I am clear in explaining it. I am wondering what needs to be done to trigger the update on UI in the present TS Engine session.

0 Kudos
Message 5 of 8
(3,834 Views)
Solution
Accepted by topic author K_seeker

I think calling RefreshViewMgrs() on the ApplicationMgr should work to refresh things.

 

Also it's better to use the KeyName rather than the display name since the display name can get localized or changed in the future.

 

Hope this helps,

-Doug

Message 6 of 8
(3,818 Views)

Doug, Thanks again.

 

I want to mention one more observation here. When I try to hide all but one Adapter ICON I don't get any error from TS Application Manager interface. But when all Adapter ICONs are hidden the LabVIEW report an error shown in the attached schematic. I can't make sense of that error...! Any hints....?

 

VI.jpg

0 Kudos
Message 7 of 8
(3,805 Views)

Hiding all adapters is probably not something that was envisioned as a possibility since, for the built-in Test step types, you always need to specify an adapter. Thus there is likely code expecting that that will never happen. I have recorded a request for such functionality in our database with tracking id #280913. It might be considered for a future release. For now you will likely have to keep at least one adapter visible (probabably the none adapter would make the most sense).

 

-Doug

0 Kudos
Message 8 of 8
(3,793 Views)