LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing from type def to strict type def. Display formats of each constant not updated.

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

0 Kudos
Message 1 of 8
(2,878 Views)

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?

Kelly Bersch
Certified LabVIEW Developer
Kudos are always welcome
0 Kudos
Message 2 of 8
(2,873 Views)

Numerics 2 and 4 are U8 in floating point, the type def (when opened) numerics are all Hex. (display format).

0 Kudos
Message 4 of 8
(2,863 Views)

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.

Kelly Bersch
Certified LabVIEW Developer
Kudos are always welcome
0 Kudos
Message 5 of 8
(2,860 Views)

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?

0 Kudos
Message 7 of 8
(2,852 Views)

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.

Kelly Bersch
Certified LabVIEW Developer
Kudos are always welcome
0 Kudos
Message 8 of 8
(2,848 Views)