LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

new & old position reporting



@labview1958 wrote:
Thanks. I understand the "zero" is not necessary. Thus I should connect "i" directly to multiply in place of the "zero". But why the need of the DBL between the "i" and the multiply?

The t
ype conversion from int32 (blue wire) to  DBL (orange wire) is in your code only indicated by a (hardly visible) grey dot at the input of the multiply terminal.  The explicit use of the DBL conversion means clearer code since it makes the type conversion obvious.

Another possible modification of the code is to use of physical units. The multiply by 0.0254 could be replaced by a conversion of the wire to inches and a display of the length in meters. If that kind of code is more 'readable', however, depends on the readers familiarity with the unit feature of Labview.
0 Kudos
Message 11 of 11
(307 Views)