LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI usb 6008 wont read n samples digital

Hi, I had a quick look at other posts but there was just too much information for me to find what I want.

 

I am running labview 2020. I want to send a digital output to a stepper motor controller. I tried sending N samples but it won't allow me. It will only allow 1 sample on demand. (I need a frequency of 2kHz, so if I input 1MHz the error in period will only be 2% which will be ok. I am updating the speed every 50 ms approx). I can generate the acceleration curve giving me a Boolean array, but the DAQ assistant will not take N samples.

 

Any help would be greatly appreciated.

 

Michael 

0 Kudos
Message 1 of 2
(1,076 Views)

It's a limitation in the hardware.  It is a low cost piece of equipment.

 

Your only option is to do it with software timing which means it may not be reliable enough for you.  That means a while loop that runs as close to the rate that you want collecting 1 sample at a time and building that into an array.

 

That, or buy a piece of hardware that does have digital I/O timing.

0 Kudos
Message 2 of 2
(1,068 Views)