10-06-2010 05:17 AM
Hello guys. I am using LabVIEW in Frequency Response Function measurements. My application requires the sampling rate to change as a function of the frequency of the signal during the execution.
I was trying to do this with a "event structure" and it works well when I change the rate manually via front panel control but it dos not work when I configure the sampling rate to vary automatically (just a frequency sweep). Pictures below:
Why does not the event structure feel the change in the value of "rate"?
Thanks in advance for your help.
Lucas
Solved! Go to Solution.
10-06-2010 05:34 AM
Hi,
In the "automatic" mode of changing the sampling rate, the calculated rate is written in the local variable (as shown in the code). Event structure does not recognize change in value in the local variable as a event.
Inorder to make the event structure recognize the change in value of an indicator as event: Write the new value to "Value (Sgnl)" Property node corrosponding to the rate indicator (shown in the figure below). This will make event structure accept value change in indicator as event.
Note: Employ architectures such as producer-consumer for such applications which makes the application legible and expandable.
Post back if any queries.
10-06-2010 06:06 AM - edited 10-06-2010 06:07 AM
Thank you very much JK1, it should definetly work. The problem is that I just can't find this property node shown in the figure. Sorry, I'm pretty new in Labview. Where can I find this node?
Edit: Never mind. Just found it!
10-06-2010 06:09 AM
10-06-2010 07:15 AM
It didn't work. Did I do something wrong? Picture above.
It is strange this spare "rate" control. This very simple program has no control, the frequency varies programmatically.
Regards,
Lucas
10-07-2010 05:08 AM
It worked!