01-11-2011 12:01 AM
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?
Solved! Go to Solution.
01-11-2011 09:23 AM
Yes, there is a setting for this in the adapter configuration dialog. Use the Configure->Adapters menu item.
Hope this helps,
-Doug
01-11-2011 11:38 PM - edited 01-11-2011 11:38 PM
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.
01-12-2011 12:56 AM - edited 01-12-2011 12:57 AM
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).
01-12-2011 01:25 AM
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.
01-12-2011 10:49 AM - edited 01-12-2011 10:51 AM
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
01-12-2011 11:45 PM
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....?
01-13-2011 10:28 AM - edited 01-13-2011 10:28 AM
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