Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

using C language to work with DAQ

Hi All ,

 I am wondering whether can i create a C program that

(1) read the data from DAQ channel  : the output signal from the tachometer

(2) make some calculations

(3) again out put the calculated data  : the  input signal to the motor .

Any example program available out there ?

Thanks in advace


Aung Myo Thant Sin
Candidate - Master of Engineering
Dynamics and Control laboratory
Bandung Institute of Technology
Bandung , Indonesia
Ph : +6285624378664
email : nayaye1@gmail.com
0 Kudos
Message 1 of 2
(3,604 Views)
Hi Aung Myo Thant Sin,

All of my answers assume that your using a DAQ card within its specifications.

(1) read the data from DAQ channel  : the output signal from the tachometer

Yes, you can create an analog input task to read information from one of your analog input channels.

(2) make some calculations

Yes, you can make calculations to the array of data that comes in from the analog input.

(3) again out put the calculated data  : the  input signal to the motor .

Yes, however, you will need to create an additional analog output or counter output task to create the type of signal required by your motor.

There are quite a few examples that are shipped with DAQmx.  Click here for the knowledge base that includes the location of the examples.  I would recommend taking a look at both the analog input examples and the analog output examples that fit your project.  You will need to combine the code into the same C project.  Another good resource for programming NI-DAQ applications in a text-based program can be found here.  Take a look at the links at the bottom for more specific information.


I hope this helps,
Paul C.

Message Edited by Paul C. on 08-20-2007 12:20 PM

0 Kudos
Message 2 of 2
(3,582 Views)