10-26-2007 06:26 AM
10-26-2007 08:48 AM
10-27-2007 06:04 AM
10-27-2007 08:56 AM
10-29-2007 06:12 PM - edited 10-29-2007 06:12 PM
Hello 9990676224,
The programs that Dennis provided are great starting points for using both analog input and output in the same program.
The error (-200077) that you are receiving when running these programs is due to the fact that a USB 600x device has an analog output range of 0 to 5 V. These values can be found in the specifications sheet for the USB 600x, or from the error that is thrown when the task starts. I have included a screenshot of the error text.
When the analog output task is configured, the default range is used if nothing is wired to the minimum and maximum value inputs. The default values for these inputs are -10 and 10 V respectively. By wiring a constant or control to these inputs, you can change these values.
This forum post shows another way using dataflow programming to update the output value based on the read value.
Getting Started with NI-DAQmx and Learn 10 Functions in NI-DAQmx and Handle 80 Percent of Your Data Acquisition Applications are great starting points for programming with DAQmx.
Message Edited by BrowningG on 10-29-2007 06:13 PM