4.3.4 - Analog Outputs
The IOType to set the voltage on an analog output is:
LJ_ioPUT_DAC
The following is a special channel, used with the get/put config IOTypes, to configure a parameter that applies to all DACs:
LJ_chDAC_BINARY
Following is example pseudocode to set DAC0 to 2.5 volts:
//Set DAC0 to 2.5 volts.
ePut (lngHandle, LJ_ioPUT_DAC, 0, 2.50, 0);
tags:
Datasheets and User Guides
- UD Series (U3, U6, UE9)
- U3
- U6
- User's Guide
- Preface
- 1 - Installation on Windows
- 2 - Hardware Description
- 3 - Operation
- 4 - LabJackUD High-Level Driver
- 4.1 - Overview
- 4.2 - Function Reference
- 4.3 - Example Pseudocode
- 4.3.1 - Open
- 4.3.2 - Configuration
- 4.3.3 - Analog Inputs
- 4.3.4 - Analog Outputs
- 4.3.5 - Digital I/O
- 4.3.6 - Timers & Counters
- 4.3.7 - Stream Mode
- 4.3.8 - Raw Output/Input
- 4.3.9 - Easy Functions
- 4.3.10 - SPI Serial Communication
- 4.3.11 - I²C Serial Communication
- 4.3.12 - Asynchronous Serial Communication
- 4.3.13 - Watchdog Timer
- 4.3.14 - Miscellaneous
- 4.4 - Errorcodes
- 5 - Low-level Function Reference
- Appendix A - Specifications
- Appendix B - Noise and Resolution Tables
- Appendix C - Enclosure and PCB Drawings
- U6 Firmware Revision History
- User's Guide
- UE9
- U12
- Digit Series
- T Series
Search
Shopping Cart
Testimonials
-
Thank you so much for your quick response. I was struggling with this late last night when I sent the request, and now first thing this morning I have a helpful reply. [...] By the way the upgrading process is so painless, it's fantastic! May I congratulate you on a well developed product with great product support.
—Jason, Compac Sorting Equipment


Comments
#1
When I send 5.0 to my U6 I get 0v out. I have had to cap at 4.9 to ensure an output voltage.
#2
What firmware version are you using?
Which interface method, modbus?
You might try upgrading to the latest firmware: http://labjack.com/support/firmware/u6
#3
Do your DAC troubleshooting with no load on the DAC. Do you see this using the test panel in LJControlPanel? How are you measuring the voltage output?
#4
I have a U3_lv
The LJ_ioPUT_DAC seems to program an 8-bit voltage but the device has a 10-bit dac. Is there a different iotype for 10-bit commands?
#5
You mean that you are seeing 20 mV steps? Make sure you have a current UD driver and U3 firmware. Go to the "config defaults" section of LJControlPanel and make sure 8-bit DAC mode is not selected.
#6
Yes. I see 20mV rather then the 5mV expected. The firmware is 1.32 appears to be up to date. The driver is 3.15, seems to be up to date too. (I was not able to run 3.24 for some reason). The 8-bit mode is not selected.
#7
Also, confirm that LJCP reports hardware version 1.30 for your U3.
#8
What sort of problem do you have with the 3.24 installer? I would tackle that so you are using a current driver before you do much more troubleshooting. Perhaps post a comment on that page with the problem.
After we get your driver updated, can you test the DACs using the test panel in LJControlPanel, if that is not what you are doing already?