NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
Siamak Moori
Posts: 6
0 Kudos

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

Member
Siamak Moori
Posts: 6
0 Kudos

Re: Extract Signal Tone Information in Control & Simulation Loop

Sorry for the typo, I meant Single Tone Information

Member
dbell0971
Posts: 65
0 Kudos

Re: Extract Signal Tone Information in Control & Simulation Loop

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

Member
Siamak Moori
Posts: 6
0 Kudos

Re: Extract Signal Tone Information in Control & Simulation Loop

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

Member
Floyd He
Posts: 9
0 Kudos

Re: Extract Signal Tone Information in Control & Simulation Loop

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

 

 

Member
steve.bm
Posts: 165
0 Kudos

Re: Extract Signal Tone Information in Control & Simulation Loop

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
Member
Siamak Moori
Posts: 6
0 Kudos

Re: Extract Signal Tone Information in Control & Simulation Loop

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

Member
Siamak Moori
Posts: 6
0 Kudos

Re: Extract Signal Tone Information in Control & Simulation Loop

Hi,

 

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

I attached a snapshot of the BD.

 

Member
Floyd He
Posts: 9
0 Kudos

Re: Extract Signal Tone Information in Control & Simulation Loop

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

Member
Floyd He
Posts: 9
0 Kudos

Re: Extract Signal Tone Information in Control & Simulation Loop

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

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page