LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview increment without shift register help

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!!!

0 Kudos
Message 1 of 8
(3,457 Views)

Why can't you use shift registers?  That's an important building block in LabVIEW.  Could you use a feedback node instead?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 8
(3,453 Views)

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.

original.png

0 Kudos
Message 3 of 8
(3,447 Views)

How do I do it any ideal???

0 Kudos
Message 4 of 8
(3,442 Views)

This should be possible using Shift Regs .

0 Kudos
Message 5 of 8
(3,437 Views)

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?

Untitled11.png

 

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!!!

0 Kudos
Message 6 of 8
(3,427 Views)

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

0 Kudos
Message 7 of 8
(3,424 Views)

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.

0 Kudos
Message 8 of 8
(3,372 Views)