07-11-2012 12:05 PM
I have a simple Block Diagram to try Control & Simulation Loop. I added a Sine Wave signal and a Waveform Chart connected to it. They work just fine.
I tried to add a Extract Single Tone Information , from Signal Processing, and connect it to the output of the Sine Wave generator but I do not know how to create a proper Time Signal.
I thought of storing the output of the Sine Wave in an array but I was unsuccessful since I could not add any shift register to this type of control loops.
Any help or suggestions?
07-12-2012 05:55 PM
A good starting place for help is the ni.com search. On the search, you can filter by help files or by examples; this example can be found by searching for "Extract Single Tone" and filtering by examples:
I hope this helps out! Feel free to post with any other questions.
07-13-2012 10:06 AM
Thanks a lot for your reply.
I did search that and I found similar examples as your suggestion but none of them uses "Extract Single Tone Information" inside a Control & Simulation loop.
My problem is that I do not know how to create the input "Time Signal In" for it. I can do it in the While Loop using Shift Registers though. I have to do it inside Control & Simulation Loop because I have another module for co-simulation between Multisim and Labview which has to be inside that loop.
I appreciate your help.
07-14-2012 05:28 PM
I had the same problem like yours. I can not convert the data into a time signal and extract single tone information inside a control and simulation loop. Did you find the solution? I am really appreciate if you would like to share with me! many thanks
07-16-2012 01:52 PM
There is another example in the web related to Single Tone. I believe that the first example was ment for the NI Digitizers, try to use the example described in this link.
07-20-2012 04:09 PM
I think I found a way of doing it, although not as good as I expected.
I attached a snapshot of the BD.
07-21-2012 12:04 PM
Thanks for your reply mate.
However, when I built a same BD as you posted on, it somehow didn't work. I also attached a photo of my BD here. I used the gauge to measure when I run the programme. The gauge shows there is no signal output after the "collector"VI (gauge no.13). would you please check it for me? Many thanks!
07-21-2012 03:24 PM
Just a another ask, according to your BD, your programme was half built in control and simulation loop and half in the while loop. I don't know if that is necessary? Cause I found the control and simulation loop is actually enough...