11-06-2024 08:15 AM
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
11-06-2024 09:04 AM
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.
11-06-2024 09:10 AM
There is also this note from the help file.
11-06-2024 09:10 AM
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.
11-06-2024 09:17 AM
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.
11-06-2024 10:02 AM
When creating a new control/indicator from a subVI call, the new control/indicator will be a copy of what is in the subVI.
11-06-2024 10:23 AM - edited 11-06-2024 10:29 AM
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.