11-11-2013 03:02 PM
I have tried repeatedly to change display formats - of constants from within a type def without success. I created the type def from the block diagram and tried changing it to a strict type def with the same result. The display format of constants on my block diagram are floating point, the same constants within the type def opened are in Hex.
Can you help me please? thx. John
11-11-2013 03:16 PM
Are the constants on your block diagram instances of the type def? You should create and save the type def then place instances of it on the block diagram. If you already have constants on your block diagram changing one of them to a type def will not affect the rest of them. The easy way to change all constants on your block diagram to hex is to select all of the constants and change the display property to hex.
I'm not sure I really understand what you're trying to do. could you post a code snippet to give us a better idea of your problem?
11-11-2013 03:33 PM
11-11-2013 03:36 PM
Numerics 2 and 4 are U8 in floating point, the type def (when opened) numerics are all Hex. (display format).
11-11-2013 03:54 PM
So the cluster is a type def and the numerics are not type defs? If you want the display format to change on the numerics you need to make a strict type def of one numeric then use instances of it for all the numerics in your cluster type def and the indicators that display the data from the cluster. That way you only have to change the format of the strict type def numeric to change the4 format of all the numerics.
You say numerics 2 and 4 are U8 in floating point. That's not possible. U8 is not floating point and floating point is not U8. Your picture shows them as U8, not floating point. A single, double, and extended double are all floating point. Signed and unsigned intergers are not floating point.
11-11-2013 04:01 PM
11-11-2013 04:03 PM
Thank you for getting back to me so soon! I will try building a strict type def of one constant/control first then build the cluster as you suggest. thx.
Note the display format is floating point...weird huh?
11-11-2013 04:11 PM
National Instruments has some strange naming formats for some of their stuff that causes confusion. A coiuple of my pet peeves for the way they named things in LabVIEW:
Local Variables. These are NOT variables but this naming convention causes most people who come from text based languages to try to use them as variables.
On the string to numeric conversion pallete, Decimal String to Number and Number to Decimal String. These actualy change to and from an Integer String. Decimal point is not allowed.