LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to change data type (e.g., I16 -> DBL ) through property value ?

I need to pass 2d array data dunamically through reference and properties (value here). The question is the passed data is in DBL format, but since the receiving array in my file is I16, the data  passed is converted into I16. Is there any way to overcome this question through program, since there are so many arrays in my case needed to be changed.  Thanks.  wj
0 Kudos
Message 1 of 4
(3,485 Views)
What do you mean by the receiving array in your file is I16?  What kind of file are you talking about?  What is a "receiving array"?
 
On the numeric palette and Conversion subpalette, there are numerous functions to convert to various numeric formats such as I16, double, single, complex numbers, ....
0 Kudos
Message 2 of 4
(3,474 Views)
I have go around this question. Thanks.
But the question is still a question, technically:

I try to pass data from a DBL array to a I16 array through the Value item under the property of the I16 array. I have tested directly with two such arrays that the I16 array (recevinf arrary) will convert the DBL data input into I16. And it seems no way   to convert the data type through property.
0 Kudos
Message 3 of 4
(3,447 Views)
If you have an array that is set up as I16, you can't force it to be double.   The memory allocation is set right before run time to be I16 numbers.  If you wire in a Double array (even into the Value property node) it will be coerced to I16.  You can't change the representation of a constant, indicator, or control in the middle of run-time, thus there is no property node for changing it.
 
If you want the array to be double, you will need to change the representation of it during edit time.
 
What does "(recevinf arrary)" mean?

Message Edited by Ravens Fan on 10-03-2007 08:59 PM

0 Kudos
Message 4 of 4
(3,445 Views)