LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there any block in the Labview similar to that of clock block available in Matlab ?

Hi guys, i have generated a pulse in the matlab using the embedded block having some code in it and it takes the clock as one of it's input as shown in the figure.

Now i want to do the same in the Labview, but here i need a block which is exactly similar to that of the clock block used in Matlab.Kindly reply at the earliest. Thanks in advance.

 

Download All
0 Kudos
Message 1 of 5
(2,882 Views)

Clock block?

 

Smiley Very Happy

http://www.medicollector.com
0 Kudos
Message 2 of 5
(2,853 Views)

Sorry, got a giggle out of that.

 

How about this:

 

https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/vi-lib/express/express-execution-control/e...

 

http://www.medicollector.com
0 Kudos
Message 3 of 5
(2,837 Views)

What exactly does that "clock block" in Matlab do?  I haven't touched Matlab since grad school (good 2 years at least), and I never used that function.

 

Many of us here don't know Matlab/Simulink very well.  So you should probably explain what that function does or more precisely what you are looking for.


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 4 of 5
(2,833 Views)

The function you are looking for is available in LabVIEW Control Design and Simulation Module:

 

https://www.ni.com/docs/en-US/bundle/labview-control-design-and-simulation-module/page/lvsim/sim_sim...

 

This module is part of the Academic Version for LabVIEW.

 

Also, notice that your code from the competitor software has a 'implicit' loop around the formula node, which you can also do in LabVIEW by using:

1. Control and Simulation Node

2. Place it inside a simulation subsystem

3. Not using the Control Design and Simulation Module and using a For-loop around the node and controlling the time-step using index control (the 'i') and using multiply by a constant to simulate time. All this is abstrated inside the control and simulation loop, though.

 

One more thing... if you have the Module, look at the shipping examples under:

C:\Program Files (x86)\National Instruments\LabVIEW 2013\examples\Control and Simulation\Simulation

 

and look at the folder Utilities and Signal Generation. You should find those example exactly what you are trying to do.

 

Let me know if you have more questions.

Barp - Control, Simulation, RTT and HIL - National Instruments
0 Kudos
Message 5 of 5
(2,776 Views)