LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Typecast complex to DBL and CDBL

Hello everybody,

 

I'm trying to figure out how to perform a typcast data formating from complex array data to DBL and DBL to CBDL. This seems quite simple but I couldn't figure it out.

I've attached an example vi.  I don't understand how the dummy variable on the typecast function was created both for the DBL and CBDL constants. When I right click and create constant, I end up with something different. Can somebody explain how to do it.  See attachement.

 

Thanks

0 Kudos
Message 1 of 5
(2,435 Views)

Right click the constant you created and pick Representation.

 

I'm not sure what you are trying to do exactly, but you probably don't want typecast.  Typecast is a function to take a value in memory and interpret it as a different type of data.  So typecast a string of two characters to have it become a 16-bit integer.

 

I'm thinking you might want to use the conversion bullets in the Numeric >> Conversion palette which will actually convert a number to a different datatype without necessarily changing its underlying value.

0 Kudos
Message 2 of 5
(2,430 Views)

Coerce to Type.png

0 Kudos
Message 3 of 5
(2,427 Views)

JonN,

 

What is the name of the function in the middle and where on the functions pallete can I find it?.

 

Thanks

0 Kudos
Message 4 of 5
(2,412 Views)

As far as I know, it's not on a pallete...see background here

0 Kudos
Message 5 of 5
(2,404 Views)