10-11-2007 09:48 AM
10-16-2007 03:49 AM
10-16-2007 08:07 AM
Shank,
This is a typical application where you would like to use Simulation Module. Every element in that diagram have its own version if Simulation, like the Integrator, the lookup table, the transfer functions and all the operators.
You could try to use Control Design, but you would need to do a lot of work to allow feedback node to work properly. Notice that Feedback node in LabVIEW will need to be broken with shift registers. On the other hand, LabVIEW Simulation will generate the code necessary for your simulation to work. Please look at our documentation online.
http://zone.ni.com/reference/en-XX/help/371894B-01/lvsimhowto/sim_h_gs/
Are you planning to do experimentation to obtain the parameters of the transfer functions or delays? In this case, I also advice you to look into the System Identification Toolkit. It allows you to convert signals acquired to parameters in the transfer function. Look at this manual for more information:
http://digital.ni.com/manuals.nsf/websearch/6A0CD9680459E0C4862571A80008D9F3
This should allow you to get up and running very soon. Let me know if you have more questions!
10-16-2007 08:12 AM
One more think, Shank. Notice that we have to Products that deal with Simulation: The Simulation Interface Toolkit and the Simulation Module. They are 2 different products: the first one allows you convert models from other software like Simulink® to LabVIEW. The second allows to directly create the diagram that you send in LabVIEW. So, please verify that you ordered the Simulation Module (or Control Design and Simulation Module for LabVIEW 8.5) instead of the Simulation Interface Toolkit.
10-16-2007 08:26 AM
10-16-2007 08:32 AM
10-17-2007 05:46 AM
10-17-2007 08:54 AM
Shank,
First of all, you SHOULD use the Simulation Module to develop the transfer functions. The VIs that you are using with Control Design are designed to be used offline and you can only use them when you have the complete transfer functions.
So, I am adding a possible translation of your diagram that you sent me before in Simulation Module. I did not change all the values to match your diagram, but I modified some. Notice that you have to use the Simulation Loop to allow dropping the simulation nodes inside. Notice also that Simulation Nodes don't allow you to be dropped outside Simulation Node (at least for now). Please review the diagram in attachment with your diagram and try to match values and see you can make your simulation to work.
Hope this helps!
10-17-2007 09:32 AM
10-17-2007 10:15 AM
Shank,
I am happy that you are making progress with your project. You see how easy and legible it gets with Simulation? It becames much easy to fix problems with this project now.
Now, if you want to change the duty cycle of your signal, you can do with "Pulse Signal" function. And you make it parameter to come from terminal (Open the configuration with double click on the "Pulse Signal" and after selecting the "duty cycle" parameter, select "from terminal". That should allow you to change the value on the fly or, at least, change from the terminal.
That should be enough... Now, if you don't mind ask, are you trying to do biomedical research? Are you planning to run with DAQ? Actually that should be easy to put together once you have the simulation working.