From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Scripting Silver Controls

Is it possible to create silver controls with sccripting?

0 Kudos
Message 1 of 4
(2,456 Views)

It does not look like it is possible directly.  However, you can create a VI with the silver controls of interest on the front panel, then Move them to your target during scripting.  This trick works for any sort of custom control.  Alternately, you can create custom control VIs (.ctl) which only contain a single silver control and pass the path of the control to your create VI object.

 

I have created CAR #313211 to track this issue.

0 Kudos
Message 2 of 4
(2,442 Views)

I found the answer: The silver controls are not new object styles nor classes; they are custom controls located in  ... \vi.lib\silver_ctls\

0 Kudos
Message 3 of 4
(2,427 Views)

I found the same answer.  The CAR has been closed as irrelevant.  Here is a snippet of code showing how to create a silver knob.

 

CreateSilverKnob.png

Message 4 of 4
(2,412 Views)