02-19-2010 03:18 PM
02-19-2010 03:31 PM
02-19-2010 03:32 PM
02-19-2010 03:52 PM
02-19-2010 03:59 PM
02-19-2010 04:10 PM
What was wrong with the solution Giedrius gave you?
Why not try to work this out yourself and post a VI with any questions you might have if your attempt doesn't work right.
Is this homework?
02-19-2010 04:12 PM
02-19-2010 04:15 PM
02-19-2010 04:15 PM
02-19-2010 04:21 PM - edited 02-19-2010 04:25 PM
The only (possible; it depends on what exactly do you need) problem I see in my previous VI is that it is static. I mean, then you have the < as the outcome of the comparison, it substracts, and if you have > - it sums. This vi checks for the previous operation, maybe it is more correct according to what you need.
P.S. Both previous and this VI are coded using LV 8.6. What version do you need?