LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

sweep sinus generation fully controlable

Hey every one,

 

I would like set up generation sinus fully controllable its mean with correct frequence, time generation and control a number of samples. My work I've attached in the attachement. In some way I control my sinus generation but it is not whot i wont.  

 

If you can help me achaived my issue or give some idea.

 

Marek

 

sweep sinus generation.JPG

0 Kudos
Message 1 of 5
(3,451 Views)

You are going to have to give us some details.

 

You say your sine wave generation is not what you want.  What do you want?  What is your current VI doing that is not right?

0 Kudos
Message 2 of 5
(3,428 Views)

Hi Marek,

 

As Ravens said, we will need more details...

 

Could you explain what is the aim of the different controls and calculatios involved, and why is there a formula node in parallel?

I'm not sure you realize that your formula node will not be used during the generation loop. What do you want to do with it?

 

Thanks

Olivier L. | Certified LabVIEW Developer


0 Kudos
Message 3 of 5
(3,403 Views)

Hey, 

Thank you for reply and for your interest. 

 

 

Inforamtion I've given are really limited - please forgive me.   

Whot I am going to do is set up a generation set in time by me with control a number of samples. I have to add that generation is point by point and concerne as sweep (these are whot I would like to control: frequency start, requency stop, time of generation, samples number). 

You can see at the top of post my doubled calculation. Enumeration in the field of calcul can helped me make a specification with the blocks. Programe generates a sweep sinus well but without of control time generation and samples number. Time generation  is depends of set frequency and 'qualite de sinus'. Qualite de sinus is a valeur par which are divided frequency and time of entrance of sinus.

 

And I have no idee how can i set up my issue with control time and samples number >?

 

Best regards

Marek 

 


0 Kudos
Message 4 of 5
(3,393 Views)

Hi,

 

First, I still don't know why you used the formula node, but you have to realize that it will execute only once. Then, you probably want to make your calculations with the value from the while loop controls, but there is big chances that it will not use the good values, because of Data flow paradigm in LabVIEW.

 

Then, if I understand, you want to create a sinusoidal signal, but you want to generate the signal point by point, and controlling the period between each point.

In your code, you display the signal in the graph after a FOR loop, so you display several points at a time. You should include your graph in the FOR loop for a point by point display.

And if you want to time your point generation, you need to use a wait function inside the FOR Loop for creating a pace.

 

Try with these modifications, and look if you achieve better behavior.

 

Regards,

Olivier L. | Certified LabVIEW Developer


0 Kudos
Message 5 of 5
(3,372 Views)