08-06-2009 06:13 AM
I need to output two analog waveforms, from my 6259, I have generated the necessary signals but would like some help with inputting 2 signals simultaneously, how could I go about it?
Solved! Go to Solution.
08-06-2009 08:35 AM
Can you please explain it a bit more detailed?
Are you just talking about acquiering two analog signals next to the signal generation you allready have?
Christian
08-06-2009 09:29 AM
Im sorry for being unclear, I have not generated the two analog outputs yet , I have generated a single analog signal using the 6259, but need help with doing so for 2 analog signals simultaneously.
08-06-2009 10:28 AM
Hey,
If you just want to write the same data to two channels then set your physical channel to e.g. Dev1/ao0:1 and build a 2D Array of your data to wire it to the DAQmxWrite.vi which you set to the regarding Datatype (AO>MultipleChannels>...) before.
Hope this helps,
Christian
08-06-2009 10:39 AM
Hi,
Its two different signals i am using, so what steps should I follow?
08-07-2009 02:14 AM
The steps are quite the same, just that your 2D Array consists of the two different 1D Data Arrays.
Christian
08-07-2009 06:42 AM
I am able to generate the required waveforms and now want to be able to synchronise the signals, any suggestions?
I also want to know if it is possible to update the waveform changes (amplitude, frequency,etc) in realtime without having to stop the execution and update the changes.
Thanks for the help Christian!!
08-07-2009 08:01 AM
There is an example how to synchronize AI with AO in sharing the timebase. You will find it using the example finder, browse to HardwareI/O>DAQmx>Synchronization.
To change the sampleclock rate on the fly you will need to use one of the cards counters to create the timebase via pulse train generation for the AI and AO, there should be also an example about that under Synchronization.
Christian