Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

counters

Good

I'm having difficulty in a simple thing ...
I need to implement separate counters.


The objective is control three step engines. I have to build a string with the commands, for the positions for each movement.
When I want to move all three at the same time everything is right, putting a counter link to a while.
 However, I am having some difficult to construct the string when I want to count different number of cycles for the motor. That is implementing a counter for each engine.  For example, I need 5 cycles for one engine and the for the other two only 2 cycles.  Can anyone help or do some suggestions thanks
0 Kudos
Message 1 of 3
(3,876 Views)

Hello c-m,

 

Thanks for using National Instruments Forum. I would like to be sure that I have correctly understood your problem. You have three stepper motors. You have an array with the different step for each position of the motors. Now you would like to control each motor at different rate.

 

I think that you index the array to send the correct command line in a while loop. A possible solution is to use three while loop in parallel.

 

To give you more information, I need more detail on your material and software version that you use.

 

Best regards

Maxime R.  

  CLA - Certified LabVIEW Architect / Architecte LabVIEW Certifié
  CTA - Certified TestStand Architect / Architecte TestStand Certifié

0 Kudos
Message 2 of 3
(3,790 Views)
I Thanks for the help. The problem was resolved. The commands is sended to the control in a string. That I build. I used parallels loops, and put inside a global variavel that is incremented when a enter inside the loop
0 Kudos
Message 3 of 3
(3,788 Views)