01-16-2013 08:06 PM
I'm writing a master control VI for an Agilent 54624A oscilloscope that uses a USB/GPIB connection, using the VI libraries that LabVIEW has. When I create a control for one of the VIs by right-clicking on an input terminal, the master VI drops down one of the ugly-as-sin Classic controls. I tried setting the default control style in my VI through File>>VI Properties, tried the same thing on the Agilent VIs, and I tried using the Replace option in the right-click menu (but it only replaces it with an empty control. I found this VI that kinda works, but it changes everything in my VI, not just the Classic controls, which leaves me right where I started with the controls I don't want changed. Is there a way to directly edit the style of a control, without losing the properties (for example, change a Classic Enum to a System Enum and keep all of its Items)?
01-16-2013 08:11 PM
Right click Replace shouldn't cause you to lose the elements in your enum.
To solve your problem in the future for new controls created by right click Create on the subVI's, go to the Agilent VI library. Edit each of the VI's there to replace the controls and indicators with the style you want. Controls and indicators are inserted with the style of whatever VI they are being created from no matter what your default settings are for new controls. (It is more like a copy of the subVI's control rather than creating a new control.) Fix the subVI's, and you won't have problems in the future.
01-16-2013 08:24 PM - edited 01-16-2013 08:26 PM
See, that's what I thought. It works when I replace a control I've dropped from the palette, and on controls I've created from LabVIEW functions by right-click(terminal)>>Create, but not with the Agilent VIs. I tried using that Change Style VI on the Agilent VIs, though, and it didn't work. They're pretty old, so could it be a compatibility issue (even though my LabVIEW says that it converted them)?
01-16-2013 08:27 PM
The Agilent VI's are probably really old. VI's written in those days used the Classic style, I don't know when they came about, but the modern style probably didn't exist then.
01-16-2013 08:35 PM
So is my best bet to just finish writing my VI, run the Change Style VI, then go back and change the controls that I don't want in System style?