NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
Y.S. Kim
Posts: 1
0 Kudos

DAQmx C API to use digital IO in VB6

[ Edited ]

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.

 

 

 

 

 

Member
이상윤
Posts: 28
0 Kudos

RE: DAQmx C API to use digital IO in VB6

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.

SangYun Lee
NIK AE
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page