Hi Farshid,
It is the default behavior to pick up the type from the first assignment. However one can explicitly type variables as seen in the BlockScript user guide page 2-7. For instance, one can declare
Inputs: U;
Outputs: Y;
Parameters: (UBrk, YBrk);
Float U, Y(:);
Float UBrk(:), YBrk(Y.size,:);
This forces all the parameters and local variables to Float.
Let me know if this helps, there is not a way to turn off implicit typing, just a way to explicitly type.
Richard
Richard
Field Sales Engineer, New Jersey
National Instruments