When I take Open VI Reference function and create a constant for Option input terminal it show Numeric constant with HEX radix (Default). So to add same functionality in TEST.vi I put numeric control on front panel with Data format set to HEX. But when creating a constant to this input terminal the default data type is DEC and does not show HEX radix likewise in Open VI Reference function. I also tried by making Numeric control strict typedef but didn't work. So how to do this?
Attached are the screenshot.
this is not the "data type", but just the formatting ("display format") of those controls/constants!
AFAIK LabVIEW does not stick to the formatting when you create a new constant from some subVI connector terminals.
You might create an idea in the LabVIEWIdeaExchange (or support existing ideas, when they request such a feature)!
If it makes you feel better, the VISA Configure Serial Port does not do this either. I agree it would be really nice to have. Go put it on the Idea Exchange and I will be more than happy to give it a kudo.
Correct. It is Display Format not Data format. Sorry for typo mistake. Thanks for giving good suggestion to post it on IdeaExchange forum. Here is the link https://forums.ni.com/t5/LabVIEW-Idea-Exchange/Retain-Default-Data-Type-of-Input-Terminal-in-VI/idi-...
Yes. It will be good to have this feature for termination char input terminal of VISA Configure Serial Port function. Similarly, for an input terminal (Control/Constant) in VI or SubVI or any other functions in LabVIEW which requires specific data type. Thanks for giving good suggestion to post it on IdeaExchange. here is the link https://forums.ni.com/t5/LabVIEW-Idea-Exchange/Retain-Default-Data-Type-of-Input-Terminal-in-VI/idi-...