Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

USB 6341 used for SPI but reading stops with -200284 error

Hello,

 

I am trying to implement an SPI interface using our USB-DAQ device. 

I fill up a Boolean array with all the output "levels" for 3 CHs (MOSI, CS and CLK) than write it.

This works pretty well, no issue.

But I have a problem while reading back MISO line.

For timing this, I needed to connect CLK out to PFI8 and using this for timing.(don't know if there is better solution, without using physical wiring).

This technique works, but after running it a few times (3 - 4 ) reading block stop working and reporting -200284 error (some or all samples haven't been acquired, or what).

I am not experienced in using DIO, so I probably made a mistake that causing this and also sorry for the ugly code.

I believe something is wrong with the start/stop task, of there is a buffer that is full after a few write/read cycle.... 

 

SPI_with_DAQ_C.jpg

Thank you for any help!

Download All
0 Kudos
Message 1 of 1
(594 Views)