‎12-14-2016 10:03 PM
How can I generate pulses from myrio
And control the number and frequency of pulses?
‎12-15-2016 02:09 AM - edited ‎12-15-2016 02:10 AM
Hi ammar,
use a DO pin to output pulses.
Simplest is to use a loop set for a certain amount of iterations and toggling the DO in the loop…
This is a very generic answer to your very generic question.
If you need more detailed answers you need to provide more information!
‎12-15-2016 02:50 AM
Hi Ammar,
Here:
Now all you have to do is create a parallel loop to count the number of rising or falling edges, you can do this by comparing the current and previous values with a shift register.
‎12-15-2016 09:41 PM
i want to control 3 drivers and the input of them is pulses
i want to control numper of pulses and the freq.
‎12-15-2016 10:02 PM
i'm already tried something like that but i will try this too especially on the high freq.
‎12-16-2016 02:09 AM
Hi ammar,
i'm already tried something like that
Then why don't you show your VI?
but i will try this too especially on the high freq.
Define "high" frequency! What are we talking about?
- The myRIO surely comes with a lot of example VIs after installing LabVIEW with all modules/drivers. Aren't there any examples on using the DIO pins?
- Are you able to use the FPGA? It will allow "high" frequencies!
‎12-16-2016 02:31 AM
Define "high" frequency! What are we talking about?
if i control the frequency of pulses i will control the speed of the motors
the motor want 27K pulses from the driver for one revolution![]()
‎12-16-2016 02:44 AM
Hi ammar,
why do you use all those (shared) variables (introducing race conditions)?
In the myRIO you should be able to use TimedWhileLoops with higher clock rates then 1kHz.
But in general you should create a PWM signal (or a pulse train) when outputting a number of pulses!
‎12-16-2016 04:27 AM
Thanks i will try it on Sunday in the university
‎12-21-2016 01:51 AM
Hi ammar,
please don't send PMs for stuff related to your threads in the forum!
When you have new information post it here so all can see it and provide answers to you!
What should we do with this image? We don't know your control values nor do we know the settings of the Wait function!
So I conclude: It's nice you can reach 10kHz with this loop…