06-09-2008 01:27 PM
06-10-2008 08:39 PM
Hi Imtis,
There is a nice shipping example on generating multiple analog outputs in your LabVIEW Example Finder. The one we're looking for should be under Hardware Input/Output»DAQmx»Analog Generation»Voltage»Cont Gen Voltage Wfm-Int Clk.VI
This code is currently configured to have two identical waveforms sent out to two different analog output channels. In order to output two different waveforms, the Waveform Buffered Generation (Multi).VI must be modified. If you look into this sub VI, you will see that it calls on the Basic Function Generator.VI as often as the number of specified channel in your main VI. You will also see that it is in a For Loop so that the waveforms can be built into an array. This array is then fed into the DAQmx Write of your main VI.
I hope this helps,
S_Hong
06-11-2008 01:46 PM
06-12-2008 02:24 PM
Hi Imtis,
Could you be more specific as to what dll error message you are getting? Is there an error code with the error message? Does the shipping example work without any modifications?
As for synchronizing data acquisition with generation, there is a nice devzone article on our website which might help you get started. Since all you need to synchronize is the start trigger, this can be done internally and there is no need to route any signals back into the board.
M Series Synchronization with LabVIEW and NI-DAQmx
http://zone.ni.com/devzone/cda/tut/p/id/3615
S_Hong
06-12-2008 02:59 PM
06-13-2008 04:34 PM
Hi Imtis,
Thanks for the screenshot. I would like to request that you post a little more information on your issue since this type of error can come from a whole range of reasons.
What hardware are you using?
What version of LabVIEW are you running?
Has the program ever worked before?
Is your problem reproduceable with different set of input parameters?
Do you get the same error when running it on different a computer?
You may try and see if re-installing the DAQmx drivers solves the problem.
S_Hong