Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

PXI 6541 asynchronous strobe trouble

are you calling initiate and fetch for acquisition or are you using the niHSDIO read function?

 

0 Kudos
Message 11 of 16
(1,529 Views)
initiate and fetch
0 Kudos
Message 12 of 16
(1,526 Views)

The streaming acquisition example uses fetch backlog to continuously stream data to the host.  You can find it installed at:

 

<Start::Programs::National Instruments::NI-HSDIO::examples::c>\Dynamic Acquisition\ContinuousAcquisition-StreamToMemory

 

Keep in mind that if you're paused, the backlog won't increment.

0 Kudos
Message 13 of 16
(1,512 Views)

I can't find the example.

 

Is there a way to override the pause after a given amount of time has passed?

0 Kudos
Message 14 of 16
(1,507 Views)

Steve,

 

If you rerun the installer (from the uninstall programs in windows), you can make sure the examples for C or LabVIEW are installed.  If this does not help, let us know.

 

Regarding the pause, you can get a timeout error but this will shut down the task in an error condition.  If you're using an external pause trigger, it will stay paused until that level deasserts or you timeout.  There is not an ability to say pause for N cycles after an event occurs without external hardware.

 

Message Edited by Ryan M on 09-22-2009 01:08 PM
0 Kudos
Message 15 of 16
(1,482 Views)

I found a machine that does have the example. This does not answer how to read a buffer that has only received some of the requested samples. I need to be able to obtain whatever readings have been collected regardless of whether the requested amount has been received.

 

"you can get a timeout error but this will shut down the task in an error condition"

 

I need a function that will give a warning instead of an error and NOT shut down the task but give me what is available.

Message Edited by Steve Block on 09-22-2009 02:19 PM
0 Kudos
Message 16 of 16
(1,470 Views)