Exercise 4 - Exercise 4: Digital Input/Output (I/O) In this...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Digital Input/Output (I/O) In this exercise you will learn how to operate the digital output and digital input ports of the NI 6221 DAQ card. We will use the Digital_input.cpp and Digital_output.cpp programs given below. Consult NIDAQ C Reference Help in the A&EP 2640 folder for details on the native C functions used in these programs. /* Digital_input.cpp */ #include <stdio.h> // printf() #include <NIDAQmx.h> // NIDAQ native C functions #include <conio.h> // _kbhit() int main(void) { The code for Digital_input.cpp can be found in the course packet. PLEASE SEE THE COURSE PACKET FOR CODE PLEASE SEE THE COURSE PACKET FOR CODE PLEASE SEE THE COURSE PACKET FOR CODE } /* Digital_output.cpp */ #include <stdio.h> // printf() #include "NIDAQmx.h" // NIDAQ native C functions #include <windows.h> // GetTickCount() // function prototype: void delay(int); int main(void) { The code for Digital_output.cpp can be found in the course packet. PLEASE SEE THE COURSE PACKET FOR CODE
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

Exercise 4 - Exercise 4: Digital Input/Output (I/O) In this...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online