08-02-2007 01:33 PM
Ok you are right the probe does not read correctly, however the output string is still incorrect.
Is it safe to up the data type on the control? It cannot accept the number 120,000?
If you type in 30,000 the output should be 75 30
The output Actually is 0B B8
Why is that?
08-02-2007 01:36 PM
08-02-2007 01:39 PM
08-02-2007 01:42 PM
Yes. but it only works when the control is U64.
Hint: type in 70,000
08-02-2007 01:49 PM
08-02-2007 02:25 PM - edited 08-02-2007 02:25 PM
Message Edited by altenbach on 08-02-2007 12:28 PM
08-02-2007 03:28 PM
08-02-2007 03:48 PM
@C. Minnella wrote:
Really minor, but I think I would replace the Quotient & Remainder with a divide, and you could even use a floating point type for the speed control. The way it is displayed in Altenbach's latest post, you could see slight unexpected behavior. If you entered 199 as the speed, the floor of the quotient would be 19 and the motor would be told to go 190rpm assuming it multiplies by 10. If you use the divide, it would be 19.9 which would be 20 when converted to an I16 and the motor would receive a command to go 200rpm (it's more correct than 190 considering you told it 199).
Is this really the longest thread ever? It's certainly the fastest growing one I've ever watched.
Chris
08-02-2007 04:33 PM
Ok so "the programmer" who DIDN'T write that math btw, does have another question.
I looked at the response from the Controller, because im trying to pick out the measured values i want to read.
So I made the attached VI, but the numbers dont work. The thing that converts them from a string to and array transfer then into ascii?
So when i go to push the two bits of the single number back together, The numbers dont work out right.
What did I do wrong here?
08-02-2007 04:57 PM
Check the representation of your indicators! They are all U8.