LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Working with Agilent 54XX VIs, want to change control style

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)?

0 Kudos
Message 1 of 5
(2,685 Views)

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.

0 Kudos
Message 2 of 5
(2,683 Views)

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)?

0 Kudos
Message 3 of 5
(2,679 Views)

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.

0 Kudos
Message 4 of 5
(2,676 Views)

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?

0 Kudos
Message 5 of 5
(2,673 Views)