From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Coercion the two different numeric data types(U8 and I8、U16 and I16、U32 and I32 )make sense?

We know:

 

       Coercion dots signify two different numeric data types wired into the same primitive.

—— Coercions in LabVIEW require data copies

—— Coercions involving large arrays are memory intensive

 

However, Coercion the two different numeric data types (U8 and I8, U16 and I16, U32 and I32) make sense?

 


1.png

                                              图1  No Coercion (U8 and U8)


2.png

                                         图2  Coercion Dots (I8 and U8)

 

3.png

                                      图3 Clear Coercion Dots (I8 and U8)

 

 

5.png
                                             图4 Clear Coercion Dots (U8 and I8)

6.png

                                 图5  Figure 1 to Figure 4 is the same amount of memory usage(2M)

 

In other words, even if there is data copying, and no increase in memory usage.

 

In this case, the Coercion Dots does not make sense.

 

U8 and I8, U16 and I16, U32 and I32 is the same.

 

Only for LabVIEW 2010

 

 

I'm sorry, my English sucks. Please Use simple sentence reply.




 

" 一天到晚游泳的鱼"

labview@263.net

我的个人网站:LabVIEW——北方客栈 http://www.labview365.com
欢迎加入《LabVIEW编程思想》组——http://decibel.ni.com/content/groups/thinking-in-labview
0 Kudos
Message 1 of 5
(5,607 Views)

Only for LabVIEW 2010.

" 一天到晚游泳的鱼"

labview@263.net

我的个人网站:LabVIEW——北方客栈 http://www.labview365.com
欢迎加入《LabVIEW编程思想》组——http://decibel.ni.com/content/groups/thinking-in-labview
0 Kudos
Message 2 of 5
(5,602 Views)

Coercion does not mean there has to be a data copy.  Where did you see that?

 

Coercion means the data is being interpreted differently than what is coming in.  And I'd say U8 being coerced to I8, and so on, definitely applies.

0 Kudos
Message 3 of 5
(5,587 Views)

Accessories

 

Page 32

" 一天到晚游泳的鱼"

labview@263.net

我的个人网站:LabVIEW——北方客栈 http://www.labview365.com
欢迎加入《LabVIEW编程思想》组——http://decibel.ni.com/content/groups/thinking-in-labview
0 Kudos
Message 4 of 5
(5,566 Views)