LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Generating pulses from myrio

How can I generate pulses from myrio

And control the number and frequency of pulses?

0 Kudos
Message 1 of 11
(5,218 Views)

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!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 11
(5,169 Views)

Hi Ammar,

 

Here:

Pulse Train.png

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.

Message 3 of 11
(5,160 Views)

i want to control 3 drivers and the input of them is pulses
i want to control numper of pulses and the freq.

0 Kudos
Message 4 of 11
(5,140 Views)

i'm already tried something like that but i will try this too especially on the high freq.

0 Kudos
Message 5 of 11
(5,138 Views)

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!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 11
(5,134 Views)

 

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 

1.PNG

 

0 Kudos
Message 7 of 11
(5,132 Views)

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!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 8 of 11
(5,128 Views)

Thanks i will try it on Sunday in the university 

0 Kudos
Message 9 of 11
(5,123 Views)

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!

 

original.png

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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 11
(5,088 Views)