04-20-2009 11:36 AM
Hi,
Using a 6259 device, I try to generate two analog outputs in a task. However, one of the analog outputs shall use an external reference (using APFI1 for example).
The problem is that I can't find a way to specify the external reference for only one channel.
Even if the documentation says that the AOChannelCollection has a public 'Item' member, this is not the case.
According to the 6259's user manual, it shall be possible to assign internal/external references per channel: "You can use one of the AO <0..3> signals to be the AO reference for a different AO signal. However, you must externally connect this channel to APFI 0 or APFI 1." - M series user manual, 5-2.
Thanks.
Solved! Go to Solution.
04-21-2009 06:26 AM
May I reformulate my question:
In a task I have two analog output channels. One shall use the internal reference, the other shall use external reference.
How can I do this in C#?
Thanks.
04-22-2009 03:52 AM
Hey,
I tested it with the following code using two channels, each with a different external reference:
myTask.AOChannels[0].DacReferenceSource =
AODacReferenceSource.External;
myTask.AOChannels[0].DacReferenceExternalSource
= "/Dev3/APFI0";
myTask.AOChannels[0].DacReferenceValue =
10.0;
myTask.AOChannels[1].DacReferenceSource =
AODacReferenceSource.External;
myTask.AOChannels[1].DacReferenceExternalSource
= "/Dev3/APFI1";
myTask.AOChannels[1].DacReferenceValue = 5.0;
Hope this helps,
Christian
05-04-2009 01:09 AM
09-18-2009 02:59 PM
Anyone no how to do the same thing in LV on the same hardware?
AO0 is scaleable by APFI0
AO1 sets the reference for AO0
A02 uses full scale range
AO3 uses full scale range
Thanks!
09-30-2009 01:00 PM
This is one of those "couldn't see the forest for the trees" problems...
This is a good example: http://zone.ni.com/devzone/cda/epd/p/id/824