05-26-2012 07:09 AM
Hi guys please help me I need to complete all this by next week:(
How do I write a program's logic that
1) allow user to set the initial value
2)allow user to set the increment value
3) set the maximum value that the initial value can increment to.
The problem is I cannot use shift register please help me I got no ideal how to do this.Thank!!!
05-26-2012 07:26 AM
Why can't you use shift registers? That's an important building block in LabVIEW. Could you use a feedback node instead?
05-26-2012 07:54 AM
Because I am also required to be able to change the "initial value" when the program is pause. Oh I forget to mention this program is actuallly use to control my motor's speed. I have to put the initial value as my motor speed(new target position), next feed the displacement with the value to increment finally stop the motor when it reach the maximum angle.
05-26-2012 08:31 AM
How do I do it any ideal???
05-26-2012 09:02 AM
This should be possible using Shift Regs .
05-26-2012 09:47 AM - edited 05-26-2012 09:54 AM
Hi LabOOP:
Thank very much I think this is the logic I need. How do I get this icon out and what is this I had not use it before?
If it implement it with my motor will it still work? After this I need to add one more motor that can do the same function as the first motor.
However this time, the displacement is the same for both motor but the inital value and max value can be different.
This time it should function like this:
The first motor run increment the displacement value until the max angle and the second motor increment by the displacement value.
The program only stop until both program is at their respective max degree. Can you guide me to do this? Thank!!!
05-26-2012 09:52 AM
I am still not sure exactly what you are trying to do, but have you looked at Action Engines? You can save data from one call of the VI to the next as well as enter new data and do various kinds of calculations on new or existing data. See Ben's excellent Nugget on the subject.
Lynn
05-27-2012 05:29 AM
Hi johnsold,
This is what I am trying to do.
1) allow user to set the initial value
2) allow user to set the increment value
3) set the maximum value that the initial value can increment to.
next add a second motor with similar function:
1) allow user to set the initial value
2) allow user to set the increment value (this increment value is the same as the motor increment value)
3) set the maximum value that the initial value can increment to.
The first motor first increment until the max degree then the second motor increment by the increment value.
The program only stop when 2 motor is at their respective max degree. This program can be pause anytime and the initial value can be change.
Can anyone just provide me some ideal how to do this or just some logic? I need someone to guide me how to get started.