LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to simulate hardware stroke counter? how to generate a signal which trigger's every second

Solved!
Go to solution

Hi All,

 

I am kind of new to Labview, I am trying to simulate a hardware stroke counter. the problem is i can't find a way of making a signal which generate a pulse once every two seconds and then a counter which counts the number of pulses that has been done!

it must be really simple but I don’t seem to get my head around it. can anyone help me please?

 

Thanks a lot for your help.

 

Best regards  

0 Kudos
Message 1 of 6
(2,711 Views)

Hi Fezz,

 

something like this?

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(2,700 Views)

Hi GerdW

thank you very much for your help. 

i am kind of new to Labview and can't find few things in the pallet which is on this code.

can you possibly tell me the names of functions you are using or share the code or an example code with me please?

 

sorry for the hustle and thanks alot for your help.

 

best regards 

0 Kudos
Message 3 of 6
(2,683 Views)

@Fezz wrote:

Hi GerdW

thank you very much for your help. 

i am kind of new to Labview and can't find few things in the pallet which is on this code.

can you possibly tell me the names of functions you are using or share the code or an example code with me please?

 

sorry for the hustle and thanks alot for your help.

 

best regards 


The code is a snippet.  You can drag it (or save it) to a convenient location, then drag it onto a block diagram and it becomes code!  🙂

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 4 of 6
(2,679 Views)
Solution
Accepted by topic author Fezz

Gerd's attached image is actually a VI snippet.  You should be able to save it locally on your desktop and then drag the image into LabVIEW (doesn't usually work dragging the image directly from a web browser unless you make use of a plugin).

 

In case that doesn't work though:

 

Wait Until Next ms Multiple

The metronome icon.

 

Increment PtByPt

The icon that has the increment (+1) icon inside it.

 

While Loop

The gray box around the whole thing.

 

 

Oh and the Green arrows on the edges of the while loop are a shift register, you can create this through the right-click menu when you right-click on the edge of the while loop.

 

 

Best Regards,

John Passiak
0 Kudos
Message 5 of 6
(2,674 Views)

Thank you so much for your help.

the code works perfectly 🙂

 

best regards 

0 Kudos
Message 6 of 6
(2,630 Views)