10-15-2010 04:30 PM
I am using read/write controls and I keep getting -61702.
Solved! Go to Solution.
10-18-2010 09:54 AM
Militem,
I need some more information on the issue. What kind of hardware are you using? Which read/write controls? Which driver version?
Can you attach a screenshot of your code as well as a screenshot of the error?
-Ben James
10-18-2010 11:41 AM
Ben James
I am using a 7830r funning on LV 2009. I'm using both Memory and FIFO. I'm using Memory to store a 2D array of 1 and 0's that act as a sequence to be read out line by line (or memory address by address) and repeat a specific number of times. I have attached 3 screenshots each for the FPGA and Host code, as well as the error.
Thanks,
Matt
10-18-2010 11:42 AM
More screen shots.
10-18-2010 11:42 AM
Error screenshot
10-18-2010 01:14 PM
Unfortunately I cannot view all of your code but this error typically pops up when you are trying to set up a buffer size of 0 with the FIFO. Look in the code for anywhere a "samples to read" or a buffer size it unwired or set to 0.
Did you find any?
10-18-2010 01:42 PM
No. I think the problem is communication between the host and fpga. The host sets the sequence in memory on the fpga. The sequence tells the FPGA to start doing analog input if that is what the sequence calls for at that time. The start of the AI read sends a read/write command to the host, and the host configures a buffer size based on the duration of the analog input, which is dtermined by the sequence. The host then reads out the correct number of samples, but if there is a n error from the FPGA, then its going to configure a buffer of zero possibly.
10-18-2010 01:46 PM
Perhaps put an indicator on the error wire and try to get which error is coming out of the FPGA communication.
10-18-2010 02:46 PM
I mispoke. If the Start FIFO bolean coming out of the FPGA during Read/Write is false, it will not configure and read the FIFO on the host.
10-20-2010 11:20 AM
When this runs the first time it is initialized to zero. This causes the error you mentioned.