I am trying to output negative voltages using the USB-3114. In DAQami I can output +- 10V when I configure the output channel to +- 10V. In Instacal I have configured each channel to be +-10 V.
Using the example in the GitHub (master/examples/console/v_out.py), the only supported range is UNI10VOLTS. I have then tried to manually change the range using
Question
Judson
I am trying to output negative voltages using the USB-3114. In DAQami I can output +- 10V when I configure the output channel to +- 10V. In Instacal I have configured each channel to be +-10 V.
Using the example in the GitHub (master/examples/console/v_out.py), the only supported range is UNI10VOLTS. I have then tried to manually change the range using
ul.set_config(info_type=InfoType.BOARDINFO, board_num=0, dev_num=0, config_item=BoardInfo.RANGE, config_val=ULRange.BIP10VOLTS)
but it gives an error: Error 105: Invalid configuration item specified.
If I call
v_out(board_num-0, channel=0, range=ULRange.BIP10VOLTS, voltage)
I get that -10V maps to 0V, -5V maps to 2.5V, 0V to 5V, 5V to 7.5V, and 10V to 10V.
Any help would be appreciated to help me output in the full +- 10 Volt range using Python.
v_out.py
Edited by JudsonTagging code
Link to comment
Share on other sites
3 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