Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx C API to use digital IO in VB6

I'm trying to develop a VB6 application using DAQmx C API at Windows 7.

I would like to set a digital port as follows,

 

line0~3 : digital output

line4~7 : digital input

 

You know, this was not a problem on Windows XP.

It's easy to set a digital port to multiple purposes using CWDAQ control.

But now, CWDAQ control at VB6 doesn't work in Windows 7 meaning that It cannot recognize the DAQ board, because NI stopped servicing for VB6.

So I'm trying to use DAQmx C API instead of CWDAQ control.

The C API example codes are treating for the whole line setting like only for output or only for input.

There's no examples about setting a port to multiple purposes.

I hope anyboby can help me to  use a digital port as half for Input and remains for output.

 

 

 

 

 

0 Kudos
Message 1 of 2
(6,038 Views)

Hi, Y.S.

 

The example you want to refer to is on NI website below.

There are two tasks for DI, DO in the code.

 

http://zone.ni.com/devzone/cda/epd/p/id/6186

 

It may need to be changed device name, some configuration, and a small part of code as your systme environments.

Sang-yun Lee 李相允 | Senior Solutions Engineer, CLA, CTA | Integration Engineering Services
National Instruments
Tel: +82.2.3451.2938 | Fax: +82.2.3451.3403 | Mobile: +82.10.4020.1397
0 Kudos
Message 2 of 2
(6,018 Views)