LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to get, write the sin wave frequency

hey,

 

How can I get the sin wave frequency from sin wave?- on the diagram. Problem is about saved this parametr to the fille. I have just only last one. I would like to have fequency adequate to the Im and Re  (Im, Re: parametrs witch are saved correctly) 

 

 progr8.JPG

 

 

 

Best regards,

Marek

 

 

0 Kudos
Message 1 of 17
(3,370 Views)

Hi Marek,

 

1. you can measure the frequency of a signal using extract single tone information.vi available under the Programming pallete-->Waveform-->Analog waveform-->Measurement-->Extract single tone information.vi

 

2. To log the data contionously collect the data in shift register & write to file.

 

Attached sample.vi could give you an idea.

 

 

0 Kudos
Message 2 of 17
(3,348 Views)

Thank you Venky

I have found a Extract single tone information like in the diagram which you have send me. I have to add that my frequency is varie because it is kind of sweep analysis. You have told me that I should collect data in shift registre and write to file, where can I find this vi tool or how can I do this?

 

 

Marek

 

 

 

 

0 Kudos
Message 3 of 17
(3,342 Views)

Your program will not work because you because many of the functions you use must have timing information. And that information is not included by you as programmer. You have just included some functionality without reflecting over what these functions do and what they need as input. A programmer must have attention to details. You can not just throw out some VIs in a happy go lucky style. 

Much of your problems is caused by the pesky dynamic data type. This is something that NI have glued ontop of Labview using very cheap glue. The whole concept is just flimflam and you should avoid using it.

I can see you are a beginner. And that is OK we have all been there sometime. A very powerful function in Labview is the online help option. Then you start a new Labview session go to help in the toolbar. Then select "show Context Help" (ctrl+h). Then in doubt use the "detailed help option" in the online help window.

I have included something to push you in the correct direction. As you can see many of red dots at the connector panes is gone. That is a good sign. Post again if you have more problems



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 4 of 17
(3,337 Views)
0 Kudos
Message 5 of 17
(3,324 Views)

Thank you Coq.

That were very valuable comments. I have replaced all the dynamic data type vi and now programe works faster.

Sorry, but I can't see your vi attachement. My Labview version is 8.5. Could you send in another version?

 

Best regards,

Marek

0 Kudos
Message 6 of 17
(3,316 Views)

Remember to always tell the fourm which Labview version you use then posting;)

 



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 7 of 17
(3,312 Views)

Thank you Venky.

 I have read all which you have attached.

Day after day is better.

 

 

Best regards,

Marek

0 Kudos
Message 8 of 17
(3,297 Views)

Could you advise me how to do continuous recording of the frequency? Whole time in the table I have value only in the first position.progr9.JPG

 

 

 

Marek

0 Kudos
Message 9 of 17
(3,290 Views)
Marek can you post your VI. It is hard to debug a picture;)


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 10 of 17
(3,277 Views)