Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

traditional NI-DAQ functions for NI-DAQmx

Are there suitable NI-DAQmx_Functions instead of the traditional DAQ-Functions:
 
Init_DA_Brds
DIG_Prt_Config
DIG_Out_Port
DIG_In_Port
DIG_Out_Line
DIG_In_Line
 
thank you
0 Kudos
Message 1 of 3
(4,005 Views)
In the new DAQmx API digital inputs and digital outputs are accessed via Tasks in the same way as analog inputs and outputs.
So you would first Create a new task, then configure the task (in your case configuring which lines or ports you want to read from/write to) eventually configure the timing, and afterwards you can read/write the task. You can use the DQmx-Assistant, too.

Because you have not named your Development Environment, I could not include concrete function or VI names.

Check out hte example library of the developer zone, you will find examples for Digitla I/O with DAQmx there.

http://search.ni.com/nisearch/nisearchservlet?nistype=default&ddown=3&filter=%2Btaxonomy%3A%22Example+Code%22&q=Daqmx+Digital
0 Kudos
Message 2 of 3
(3,997 Views)

Hi there

I m writing an program in Visual Basic 6.0 using DAQmx driver 8.3. I would like to convert the traditional DAQ into DAQmx. I have the following functions in traditional DAQ

1) DIG_IN_LINE

2)DIG_OUT_LINE

3)DIG_CONFIG_LINE

Can i get the equivalent function in DAQmx?

 

Thanks

0 Kudos
Message 3 of 3
(3,767 Views)