06-07-2013 11:36 AM
Is there any way to configure the VISA I/O name filter programmatically? Specifically I want to configure the instruments listed on "Limit Instrument Types." After looking around for awhile and not finding anything I kind of Rube Goldberged around it by using show and hide controls.
Is there a better way?
06-07-2013 02:44 PM
I can't find any. I've had trouble with setting the VISA class to something more specific than Instr (right-click, Select VISA Class, ...) - then every constant or terminal needs to be set to the same class, or type-cast/coerced to the more specific class. Perhaps use "VISA Find Resource" and populate combobox strings. Strings coerce nicely enough to VISA Resource Name.
06-07-2013 02:52 PM
Yeah I have had the same annoyances as you have with the VISA class. The filter avoids those problems while still presenting correct behavior for the user interface.
I have tried things like you suggested with the list box before, but I think it looks a little worse on the screen, and you don't have the nifty refresh button(though I guess you could code one).
It just seems bizzare that this should be anything more complicated than setting a property node.