LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

using 3 sets of NI9162+NI9263 with CVI

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

0 Kudos
Message 1 of 4
(4,618 Views)

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

Carli S.
Troubleshooting & Maintenance Digital Business Manager - NI
0 Kudos
Message 2 of 4
(4,597 Views)

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.

0 Kudos
Message 3 of 4
(4,588 Views)

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

Carli S.
Troubleshooting & Maintenance Digital Business Manager - NI
0 Kudos
Message 4 of 4
(4,567 Views)