03-05-2008 06:39 AM
Hi,
I’m new at using Labview and have a quick question. I’m currently running a VI file with a sensor, and when the sensor is moved the reading on the front panel of the VI is slow to change value. Since the sensor will be moving rapidly, I need the reading on the front panel to change rapidly with the sensor.
What can I do to fix this? Is it something to do with the sample rate in the block diagram? It’s currently on 1.23, do I need to raise or lower it?
I’m at a loss here, so any help is appreciated.
Thanks.
03-05-2008 09:01 AM
Hi RoryOBrien85,
how do you connect the sensor with your system? Which functions do you use in LabView? Can you explain it, or show us your vi?
Mike
03-05-2008 09:02 AM
03-05-2008 09:09 AM - edited 03-05-2008 09:10 AM
Hello RoryOBrien85,
In the block Diagram, the sample rate is the frequency that you are aquiring samples with. If you want to have datapoints faster, you must increase the Rate of Sample Clock.
Otherwise, it's important to have a quite high rate of sampling to be over the Nyquist Frequency. If you want, This link and the example may give more precisions about the Nyquist frequency and the advantage to have a quite high rate.
Regards,
http://en.wikipedia.org/wiki/Nyquist%E2%80%93Shannon_sampling_theorem
03-05-2008 09:26 AM
Hi,
The sensor is connected to a DAQCard 6024E and there is a 5 volt analog input going through it. Could it be the specs on my PC? It's running with a 1.7GHz processor with 512mb of RAM. Is there a way I can post the VI file so ye know what I'm talking about?
Thanks
03-05-2008 09:29 AM
03-05-2008 10:21 AM
03-05-2008 10:44 AM
In your original post, you mention a sample rate of 1.23. On the front panel of the VI you posted, you have a sample rate of 3000 and number of samples to be 3. That means that the DAQ card will scan at a rate of 3000 samples per second and if you request 3 samples, you should be getting data every msec. If you change the sample rate to (without changing the number of samples) a smaller number, then it will longer to acquire. For example, if you change the sample rate to 1, it would take three seconds to return 3 samples.
p.s. Your screen might need some work on the colors. I think the blue text on the black bacground is next to impossible to read.
03-06-2008 11:07 AM
Hi guys,
I’ve messed around with the sample rate and sample time and still there is a lag in the change of pitch angle. Would it be the specs on the PC? As I mentioned, it’s running with a Pentium 1.70GHz and 512Mb of RAM. Would increasing the RAM help?
Thanks
03-06-2008 11:28 AM