06-16-2011 02:46 AM
Hello,
I am using Tone Measurement Express to calculate the amplitude and frequency of the simulate signal for basic checking.
Here if i connect the frequency control to the simulate signal, the vi works correctly while when i disconnect the frequency from the simulate signal, the tone measurement Express doesnt give correct reading for Amplitude and frequecny. While the graph shows correctly.
Is it a bug or error at programing.
Pls help it out.
Thanks
Solved! Go to Solution.
06-16-2011 03:21 AM
Strange, this works fine for me (LV 2010 SP1).
When not connecting the frequency I get a 10Hz signal (that's how the express VI is configured) and a 10Hz reading from Tone Measurements. The same as with frequency connected and using 10Hz as value.
I get a wrong amplitude when using a 10Hz signal, but that's probably because 10Hz is at the limit of what can be detected in a time range of 0.1s.
When going to 11Hz the amplitude reading is correct as well.
06-16-2011 03:36 AM
here are the pics. See how the amplitude varies. Also if you keep the freqency of the simulate signal block at 10.1Hz, it will work correctly.
06-16-2011 03:48 AM - edited 06-16-2011 03:49 AM
That's what I meant in my post. When not connecting the frequency it uses the express VI configuration, which is 10Hz. It seems the 10Hz wave can't be estimated correctly in the timebase of 0.1s since you only have 1 sine wave (which is not even "closed" yet, the last point is not 0 like the first) in that time window.
Configure the express VI to 20Hz or 40Hz and you're good.
So the issue is not about wiring the frequency or not, it's about the frequency value.
06-16-2011 11:49 PM
Yes you are correct. It don't completes one cycle for a frequency less than 10Hz, but what the reason. When I simulate a signal whose frequency is less than 10Hz the signal is not shown completely.
06-17-2011 02:18 AM - edited 06-17-2011 02:21 AM
Do you even look at the VIs you're using?
The sampling rate is 1kHz and the Express VI generates 100 samples. Change these settings if required.
06-24-2011 03:02 AM
i changed these settings but no change in the ouptut
06-24-2011 03:04 AM
Then you must be doing something wrong. Works perfectly fine here.
06-24-2011 03:19 AM
at what frequency and sampling rate you run it.
06-24-2011 03:31 AM
All I did was to change the number of samples to 400:
and then I get for the values you used (frq 8 Hz, amp 21) this signal and the correct estimates: