05-08-2018 09:12 AM - edited 05-08-2018 09:19 AM
Hello,
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.
05-08-2018 09:25 AM - edited 05-08-2018 09:27 AM
Hi Ravi,
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)!
05-08-2018 09:54 AM
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.
05-09-2018 12:20 AM
Hello GerdW,
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-...
05-09-2018 12:34 AM
Hello crossrulz,
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-...