LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Block diagram style is not the style I set for the front panel, LabVIEW 2022 Q3.

I set my default style to be 'NXG', however when I create a control or indicator in the block diagram, on a DAQmx terminal, the corresponding item on the front panel is in the 'modern' style instead of 'NXG'. I have to manually replace it with a NXG style control or indicator in the front panel. Is there a setting to fix this?
I've attached a screenshot.

Thanks

0 Kudos
Message 1 of 7
(112 Views)

When you create these new controls, are you selecting them from the Modern palette?  The default setting for control style only affects the controls that are created by right clicking a subVI input and creating a control/indicator from there. 

aputman_0-1730905467574.png

 

aputman
------------------
Heads up! NI has moved LabVIEW to a mandatory SaaS subscription policy, along with a big price increase. Make your voice heard.
0 Kudos
Message 2 of 7
(99 Views)

There is also this note from the help file.

aputman_0-1730905784738.png

 

aputman
------------------
Heads up! NI has moved LabVIEW to a mandatory SaaS subscription policy, along with a big price increase. Make your voice heard.
0 Kudos
Message 3 of 7
(96 Views)

Some subVIs uses Strick Type Def. , especially drivers like DAQmx.

So LabVIEW has to use the style of the subVI when you create from diagram.

No, you can't fix this by yourself.  Make a suggestion in the idea exchange forum.  Wait NI fixing it for you.

 

 

George Zou
0 Kudos
Message 4 of 7
(95 Views)

I'm really new to LabVIEW so I'm not sure. I right click on the data part of the DAQmx item, then click create control or create indicator, as shown in my diagrams:

It is modern in the front diagram. If I want to change it I then have to click replace and replace it with the NXG version.
I also checked the way you showed in your picture, and when I click create control it uses the modern version not NXG.

l5546_0-1730905922879.pngl5546_1-1730905940478.pngl5546_2-1730906078019.png

 

 

 

0 Kudos
Message 5 of 7
(89 Views)

When creating a new control/indicator from a subVI call, the new control/indicator will be a copy of what is in the subVI.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 6 of 7
(54 Views)

LabVIEW uses the VI property "Editor Options" > "Control Style for Create Control/Indicator" in the following situations:

 - when you right-click a constant and choose "Change to Control" or "Change to Indicator" ;

 - when you right-click a terminal that does not belong to a SubVI (e.g. yellow functions, property nodes, method nodes, conditional terminals, iteration terminals...) and choose "Create Control" or "Create Indicator" ;

 - when you right-click a wire whose source is not a SubVI terminal and choose "Create Control" or "Create Indicator".

 

However when you right-click the terminal of a SubVI ( = node that calls another VI) or a wire whose source is a SubVI terminal, such as the DAQmx subVIs, LabVIEW will always use the style of the object from the SubVI's front panel.

 

This is a bit silly but the workaround could be:

 - create your control/indicator from your SubVI terminal or wire ;

 - change it into a constant

 - change it back into a control or indicator

 

Regards,

Raphaël.

0 Kudos
Message 7 of 7
(45 Views)