02-04-2015 12:02 PM
I am looking to use 3 sets of NI9162+NI9263 with CVI, outputing 12 analog lines. The example I find only has 1 line. Please help.
The example I look at is:
.....NI-DAQ\Examples\DAQmx ANSI C\Analog Out\Generate Voltage\Cont Gen Volt Wfm-Int Clk
02-05-2015 09:37 AM
hn_sofec,
You should be able to add a colon and then the additional line you want to output from. For example to output from Dev1/a0 and Dev1/a1, in the user interface you can type Dev1/a0:1. You also can select browse from the drop down arrow, hold Control and select all of the desired outputs.
The link below is a community example which was posted by a customer that seems as though it may be helpful to you.
http://www.ni.com/example/29749/en/
Regards
02-05-2015 04:44 PM
I need help again. In the [ MultFreqContGen-IntClk.c ], this line does the configuration of the task:
DAQmxErrChk (Configure_ContGenPerWfmIntClk (chan, min, max, rate, &numChannels, &taskHandle) );
Inside the Configure_ContGenPerWfmIntClk() function, which is found in [ MultFreqContGen-IntClk_Fn.c ], this line gets the number of channels and writes that to the pointer numChannels:
DAQmxErrChk (DAQmxGetTaskAttribute (*taskHandle,DAQmx_Task_NumChans,numChannels) );
Is the number of channels not supposed to be determined outside and assigned to the child function? The parent function should have this number from all the user-input values. Why am I seeing the child function deciding the number of channels. I do not understand this.
02-06-2015 03:58 PM
hn_sofec,
You don't assign the number of channels. DAQmx reads the channels you select on the user interface in order to determine the number of channels being used. The DAQmxGetTaskAttribute function is just pulling this information from DAQmx based on the channels that you select.
Regards