LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Converting data from u16 to i32

I can't find where in the functions palette these conversion functions are; the one right below the "THIS!" . Can someone direct me to them?

 

                                     THIS!    

 

 

 

0 Kudos
Message 1 of 6
(4,118 Views)

It is in Programming>Numeric>Conversion

 

But the array in the snippet you posted does not need conversion to I32. Just make your constant a U16 type (Right-click > Representation > U16) much more efficeint


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
Message 2 of 6
(4,103 Views)

Found it, thanks!

 

That code I included was shamelessly copy/pasted from the ni website... twas the easiest way for me to describe what I was looking for.

0 Kudos
Message 3 of 6
(4,095 Views)

Dear  Scandia,

 

I am looking for how to convert data from U16 to I32.

How do you process? Could you please say it to me?

Thanks

Dong

0 Kudos
Message 4 of 6
(3,567 Views)

Hi 11811800d,

 

This is a pretty old thread, but in any case, to convert between datatypes you can use the built-in nodes as described above, found under Numeric > Conversion.

The "To Long Integer" (with icon I32) will do what you want.


GCentral
0 Kudos
Message 5 of 6
(3,563 Views)

Dear cbutcher,

 

Thank yours very much for your comments.

Dong

0 Kudos
Message 6 of 6
(3,557 Views)