From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

C programming command

will like to know how to configure the following command for NI_DAQMX. 

DIG_Line_Config DIG_Out_Line AO_Configure AI_Configure are NI_DAQ command

0 Kudos
Message 1 of 4
(3,448 Views)

Hi there.

 

It sounds like you're upgrading from traditional DAQ to DAQmx. The easiest way to make the transition would be to check out the examples that come with DAQmx. If you've installed text-based support, you'll find examples by going to Start» All Programs » National Instruments » NI-DAQ» Text-Based Code Support » ANSI C Examples . Also, here is a link to a dev zone article that should make the process a little easier.

 

Hope this helps!

 

-Sean

Sean Ferguson
Application Engineering Specialist | RF and Reconfigurable Test
Message 2 of 4
(3,433 Views)

thanks for the reply

 

to make my work more simple ,do u have the functions for daqmx related to the traditional command used below

example will be AI_Configure(daq) == DAQmxCreateAIVoltageChan (daqmx)

thanks U

 

 

Init_DA_Brds

NIDAQErrorHandler

AO_VScale

AO_Write

DIG_Out_Line

DAQ_Clear

AO_Configure
DIG_Line_Config

AI_Configure

AI_Read

AI_VRead

AO_VWrite

 

 

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

Hello again,

 

The link I sent you ( http://zone.ni.com/devzone/cda/tut/p/id/5957 ) describes the parallels between traditional daq and daqmx. Also, notice that this is only part 1. At the bottom of the article are links to parts 2,3, and 4 of the tutorial. I'll link them here for you: part2, part3, part4 .  Also, like I mentioned before, I would strongly suggest running some of the daqmx examples. You can get to them by going to Start » All Program » National Instruments » NI-DAQ » Text-Based Code Support » ANSI C Examples.

 

Hope this helps!

 

Sean 

Sean Ferguson
Application Engineering Specialist | RF and Reconfigurable Test
0 Kudos
Message 4 of 4
(3,402 Views)