LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

The system is slow

Hi all,
 
I am using NI-DAQ6259 card. I have configured analog output, digital input channel. If i configure less number of channels, the system is quite fast. But if i increase the number of channels configured then the system is very slow.
 
Samples/channel --- 1000000
Sampling Rate --- 500000
 
Looking forward for the sollutions,
 
Regards,
Yogesh 
0 Kudos
Message 1 of 7
(3,302 Views)
Yogesh,

this is expected behaviour. The reason is that you have a maximum sample rate for the ADC. The channels on the device are multiplexed in front of the ADC and therefore the maximum samplerate per channel is maximum samplerate/# channels.

hope this helps,
Norbert
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 7
(3,282 Views)
Norbert B,

Thanx for the reply Norbert. The reason why i chose the sampling rate as 1000000 is, so tthe application will work for higher frequency. This sampling rate is calculated for 10kHz.
Please give a sollution to fix the sampling rate and samples per channels.  Is it possible to configure it at the run time. Please reply.


Regards,
Yogesh

   
0 Kudos
Message 3 of 7
(3,252 Views)
Yogesh,

there is no workaround available. The maximum samplerate for the 6259 is 1.0 MS/s in multichannelmode. So choosing to acquire two or more analoge inputs at a time, you have a sampelrate per channel of (1MS/s / # channels). Reading only from one channel at a time can be done with 1.25 MS/s since the multiplexer doesn't need to switch between the inputs and therefore does not create additional settling times.

So you have two possibilities:
a) To determine the frequency from a periodic signal, it is sufficient to succeed the Nyquistfrequency during acquisition. Nyquistfrequency is twice the frequency of the signal to measure. To get knowledge about the shape of a signal, NI suggests to acquire at least 10 samples per period of the signal. So acquisitionrate has to be 10 * Signalfrequency (in your case 100kHz then). Sure, higher samplingfrequencies would reveal even more info about the signal, but 10 is a reasonable tradeoff between amount of data vs. timing-accuracy. So taking this into amount, you should be able to acquire up to 10 channels with the 6259 without too many problems.
b) You have to use other DAQ hardware which does not multiplex the inputs to a single ADC. Those devices
- are more expensive since the amplifier and ADC are the most expensive parts on a DAQ device
- have significantly less number of channels since the amplifier and ADC takes a large space on the device
- sample all channels used simultaniously so the signals have (nearly) no phaseshift. Multiplexing devices like M-Series have a little phaseshift between the channels due to the switching time of the multiplexer
- have the specified samplerate available for each channel since ther is no multiplexer who devides this down.
Those devices are called S-Series and do have the numbers 61xx.

Please note that, regardless of which device you are using, you have to define which channels you are using before starting the acquisition. If you wanted to add a channel, you have to stop the acquisition, add the channel and restart the acquisition. This can be done programmatically.

hope this helps,
Norbert

[EDIT]: reworded some expressions for better understanding.


Message Edited by Norbert B on 02-29-2008 02:10 AM
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 7
(3,236 Views)
Norbert,

Thanx for your reply and thanx for spending time to  address my problem.

Regards,
Yogesh


0 Kudos
Message 5 of 7
(3,224 Views)
One thing to correct:

I misexplained the Nyquistfrequency:
The Nyquistfrequency is defined as 1/2 of your samplinfrequency. If the signal you want to acquire/analyse succeeds the Nyquistfrequency, you will encounter aliasing. Aliasing will not create any visible errors during acquisition, but analysis of the acquired signal will reveal wrong frequencies. The problem is, that you do not know if you have an aliased signal or not........

hope this clears things up,
Norbert
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 6 of 7
(3,220 Views)
Norbert thanx for the corrections, i really had a wrong tought on the Nyquist frequency.

Regards,
Yogesh
0 Kudos
Message 7 of 7
(3,187 Views)