LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Extract Signal Tone Information in Control & Simulation Loop

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

0 Kudos
Message 1 of 12
(3,636 Views)

Sorry for the typo, I meant Single Tone Information

0 Kudos
Message 2 of 12
(3,630 Views)

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

0 Kudos
Message 3 of 12
(3,599 Views)

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

0 Kudos
Message 4 of 12
(3,595 Views)

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

 

 

0 Kudos
Message 5 of 12
(3,586 Views)

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,

steve.bm
AE | NI
0 Kudos
Message 6 of 12
(3,574 Views)

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

0 Kudos
Message 7 of 12
(3,563 Views)

Hi,

 

I think I found a way of doing it, although not as good as I expected.

I attached a snapshot of the BD.

 

0 Kudos
Message 8 of 12
(3,554 Views)

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

0 Kudos
Message 9 of 12
(3,547 Views)

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

0 Kudos
Message 10 of 12
(3,537 Views)