Jump to content
  • 0

Continuous background scan status


e_reed

Question

I am using mcculw in python to read analog inputs from a USB-2416-4AO. I call a_in_scan along with initalizing my class variables in function1() and later I want to access the data array in a different function, function2() within the same class. I am not able to call ul.get_status() for the background scan in function2(), and get Error 1026: Board number already in use. Is there a work around to this so I don't have to do everything in the same function?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hello,

It should be possible start an a_in_scan BACKGROUND|CONTINUOUS acquisition in function1 and then call ul.GetStatus(board_number, FunctionType.AIFUNCTION) in function2. Perhaps you could post or attach the class code if it's not too big.

Best regards,
John

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...