11-26-2013 10:06 AM
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.
11-26-2013 11:02 AM
Clock block?
11-26-2013
11:23 AM
- last edited on
10-07-2024
02:51 PM
by
Content Cleaner
Sorry, got a giggle out of that.
How about this:
11-26-2013 11:31 AM
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.
11-27-2013
10:37 AM
- last edited on
10-07-2024
02:55 PM
by
Content Cleaner
The function you are looking for is available in LabVIEW Control Design and Simulation Module:
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.