annulla
Visualizzazione dei risultati per 
Cerca invece 
Intendevi dire: 

How can I write 1 digital sample to DAQ

I need to write the following bits to DAQ line P0.0 to P0.2 so I need to write 1 sample to each line at 10 MS/s. Could you please help me on this. How can I write just 1 sample at that rate to a digital line. Thanks

 

P0.0  P0.1    P0.2

0        1          0 

0 Kudos
Messaggio 1 di 6
3.352Visualizzazioni

Hi tintin,

 

you can write 1 sample using DAQmxWrite, but not at a rate of 10MS/s.

What is the sense in writing one sample at that rate?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Messaggio 2 di 6
3.342Visualizzazioni

Hi I need to write this to FPGA through DAQ. When I use DAQmx write for finite number of samples it sayas the number of samples should be at least 2. Is it really not possible to write 1 sample ? 

0 Kudos
Messaggio 3 di 6
3.332Visualizzazioni

Hi tintin,

 

it is possible to write just 1 sample per channel - but not at a rate of 10MS/s!

 

Either write 1 sample with a rate of ~100S/s or multiple samples at higher rates...

 

Why do you need DAQmx to write data to the FPGA? Do you use any NI-FPGA?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Messaggio 4 di 6
3.326Visualizzazioni

Yes its possible to write 1 sample on demand. You will have a very hard time clocking sample by sample at 10MHz!  BUT, you have that super sexy FPGA!  Load up the hardware buffer and let the waveform clock out at speed.


"Should be" isn't "Is" -Jay
0 Kudos
Messaggio 5 di 6
3.324Visualizzazioni

How can you have a rate with only 1 sample? It's possible to write a single sample with DAQmx if you just use DAQmx Write set to NChan 1Samp. 

0 Kudos
Messaggio 6 di 6
3.321Visualizzazioni