07-11-2012 12:05 PM
Hi,
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?
Thanks
07-11-2012 08:38 PM
Sorry for the typo, I meant Single Tone Information
07-12-2012 05:55 PM
Hi Siamak,
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:
http://zone.ni.com/devzone/cda/epd/p/id/5792
I hope this helps out! Feel free to post with any other questions.
Thanks,
David B
07-13-2012 10:06 AM
Hi David,
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.
Regards,
Siamak
07-14-2012 05:28 PM
Hi Siamak,
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
BR,
Floyd
07-16-2012 01:52 PM
Hi guys,
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.
Regards,
07-19-2012 05:29 PM
Hi Floyd,
No, I have not yet but I guess I am getting close. I will definitely post it here when I complete it.
Cheers!
Sia
07-20-2012 04:09 PM
Hi,
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
Hi Siamak,
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!
BR
Floyd
07-21-2012 03:24 PM
Hi, Siamak,
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...
BR
Floyd