Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure 6533 both as input as well as output

Hello,
I am using 6533 for acquiring data from the peripheral. I am recieving 16 bit data(so i am using port 0 and 1) . i am using pattern generation mode for acquiring the data.i am writing the application on vc++. Now i am required to use the one line in the remaining 16 bit(first bit of port 3) as output port. Can some one me how to configure the port in vc++. which API to be used DIG_grp_congif,DIG_prt_config??????

waiting for reply
praveen
0 Kudos
Message 1 of 2
(2,992 Views)
Hi Praveen,

You would want a combination of NI-DAQ function calls for input and for output. NI-DAQ ships with example programs for digital input and output for VC++ as long as you installed support for VC++ with your install of NI-DAQ.

You can do a repair on your install by going to Add/Remove Programs and adding the support from there. If you already have the support installed for it, you'll find your examples in the following directory: "C:\Program Files\National Instruments\NI-DAQ\Examples\VisualC".

The two examples you'll want to merge are:
1) DIdoubleBufPatternGen653x
2) DOdoubleBufPatternGen653x

Hope that helps. Have a good day.

Ron
0 Kudos
Message 2 of 2
(2,992 Views)