I tried all the examples available for analog inputs and the results are far from the expected values received from DAQami. It seems that all the examples are set-up for differential measurement and I couldn't find a way to set the configuation to single-ended. Example "usb_2408_2416.py" shows these functions:
Question
Marc-Antoine
Good day,
I tried all the examples available for analog inputs and the results are far from the expected values received from DAQami. It seems that all the examples are set-up for differential measurement and I couldn't find a way to set the configuation to single-ended. Example "usb_2408_2416.py" shows these functions:
# Set channel type to voltage
ul.set_config(InfoType.BOARDINFO, board_num, channel, BoardInfo.ADCHANTYPE, AiChanType.VOLTAGE)
# Set to differential input mode
ul.a_chan_input_mode(board_num, channel, AnalogInputMode.SINGLE_ENDED)
# Set data rate to 1000Hz
ul.set_config(InfoType.BOARDINFO, board_num, channel, BoardInfo.ADDATARATE, 1000)
Unfortunately, all the functions return the following error: "Error 41: This function can not be used with this board"
Thanks for the support,
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now