Hello,

I am working on a program that continuously reads pins io_rx[0-15] on the
basic_rx board (I am using USRP N210). I am able to read the pins using the
read_gpio() function, but after a couple seconds I get the following error.

RuntimeError: RuntimeError: fifo ctrl timed out looking for acks

My program looks like this:

#!/usr/bin/env python

from gnuradio import uhd # addded uhd

import struct
import sys

#
/////////////////////////////////////////////////////////////////////////////
#                                   main
#
/////////////////////////////////////////////////////////////////////////////

def main():
    global flag, p, v
    
    flag = True

    v = uhd.usrp_source(' ' , uhd.stream_args('fc32'))

    while flag:
        p = v.get_dboard_iface().read_gpio(114)
        print(p)

if __name__ == '__main__':
    try:
        main()
    except KeyboardInterrupt:
        pass

I would greatly appreciate any advise that anyone can give me. Thank you for
your time and help.

Sam
-- 
View this message in context: 
http://old.nabble.com/read_gpio%28%29-help-tp34348253p34348253.html
Sent from the GnuRadio mailing list archive at Nabble.com.


_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to