From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

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
Message 1 of 6
(2,627 Views)

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
Message 2 of 6
(2,617 Views)

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
Message 3 of 6
(2,607 Views)

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
Message 4 of 6
(2,601 Views)

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
Message 5 of 6
(2,599 Views)

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
Message 6 of 6
(2,596 Views)