Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ programming ...

Hi there ...

does anybody know, whether I can program the NI boards using the
DAQ libraries and a compiler different to LabView/CVI (e.g.,
Borland C++ Builder) ?
0 Kudos
Message 1 of 5
(3,031 Views)
Actually, we are trying to program our DIO 96 using Visual C++. Anybody have
any ideas?
0 Kudos
Message 2 of 5
(3,031 Views)
"Dan Yankowsky" wrote:
>Actually, we are trying to program our DIO 96 using Visual C++.
>Anybody have any ideas?

Hi Dan,

Not in C++, in C. Should not be too different:

#include "nidaq.h"
...
i16 status = 0;
i16 deviceNo = 1;
i16 portNo = 1;
i32 pattern = 255;

status = DIG_Out_Prt(deviceNo, portNo, pattern);
if (status < 0) {
printf("Ni-Daq error : %s", status);
}

Then compile. Dont' forget
"-Ic:\ni-daq\include" and "c:\ni-daq\lib\nidaq32.lib"

Similar for each other function (see also
help->index->DIO-24 and DIO-96 Device Function List)

Hope it helps,
Walter van Iterson
0 Kudos
Message 3 of 5
(3,031 Views)
I've used the NIDAQ api in a couple environments with success: Borland
Delphi 3 and VC++ 6. I suspect that Borland C++ Builder will not pose any
limitations. Look in \NI-AQ\Examples for a good starting point.

Chris Lincoln
ULTRAX, Inc.

"Gerwin Schalk" wrote in message
news:39c11f26@newsgroups.ni.com...
>
> Hi there ...
>
> does anybody know, whether I can program the NI boards using the
> DAQ libraries and a compiler different to LabView/CVI (e.g.,
> Borland C++ Builder) ?
>
>
0 Kudos
Message 4 of 5
(3,030 Views)
I've been programming the NI5911 with NI-SCOPE in Borland Builder 4 for
some time now. Get in touch if you need help.

David Bell

Gerwin Schalk wrote:

> Hi there ...
>
> does anybody know, whether I can program the NI boards using the
> DAQ libraries and a compiler different to LabView/CVI (e.g.,
> Borland C++ Builder) ?
0 Kudos
Message 5 of 5
(3,030 Views)