LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

division

Can someone tell me what the best way to do division using LabVIEW?  when the angle is below .072 i am getting very bad result. 

 

can someone provide me with the reason or a better way to do this ??? 

 

please answer asap.. thank you!!

0 Kudos
Message 1 of 6
(2,953 Views)

i meant to says .72 not .072 ... sorry about the mistake 

0 Kudos
Message 2 of 6
(2,936 Views)

What do you mean by a very bad result?

 

Please indicate what the program is producing and what you think the result should be.

 

You can use the Negate primitive rather than multiplying by -1.  Do you want Steps to be negative? Should steps be an integer datatype rather than double?

 

Lynn

0 Kudos
Message 3 of 6
(2,920 Views)

Hi sticyfingers,

 

have you tried to change the display format of your result indicator to get "nicer" results?

 

- Asking for ASAP in a forum of volunteers is quite annoying...

- What "better" way do you need? You already use math primitives...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 6
(2,908 Views)

I suspect your formula is wrong. If it wasn't for the round to nearest node, pulse/rev would completely cancel itself out from the influencing the final result. What is this suposed to do?

0 Kudos
Message 5 of 6
(2,871 Views)

Thanks alot for all the help and suggestions. The problem is not with this calculation but with my DAQ card 

0 Kudos
Message 6 of 6
(2,837 Views)