Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Complier Error - Using Nidaqmx.lib Ver7.5 in Borland C++ Builder

Hi Daniel,

Would you be willing to post me an example of your
working Borland C++ code for analog input/output and/or
digital input/output? I am getting some weird run-time
error message (see my posting above) and don't know now where to search for the problem.

Any help would be highly appreciated.
Polero
0 Kudos
Message 11 of 15
(2,059 Views)
Hi,

I'm working on my project and I have just the possibility to read and write on Digital Port.

I try today to implemente on my application the sample "OneSample.c" for take only one measurement fron an analog Input Channel. But this code provoke a exception error:"EZeroDivide"!!!

What is that somebody would have already met this problem or can help me??

Thank a lot, and tomorrow normally I try to implemente a voltage level on a analog Output on my USB 6009 module!!!

0 Kudos
Message 12 of 15
(1,809 Views)

Hello Bulot and Polero,

Please see this thread about the divide by zero error at DAQmxStartTask.  I think that it would be best to take John's advice and turn off the divide by zero notification in Borland.  It seems that our supported compilers like Visual Studio by default have this option turned off, but Borland has it turned on.  Let us know if this helps.

Thanks,

Laura

0 Kudos
Message 13 of 15
(1,798 Views)
Hi Laura and Polero,

I've just found the solution of the error on my application.

The solution was to update my computon on the NIDAQmx 8.0 driver, but I met the same problem  when I had insert on my application the NIDAQmx.h and NIDAQmx.lib resulting of this new driver.

But when I compile my application, I have find a old Error.

The Final solution for my application run correctly, was to use de NIDAQmx.h of the NIDAQmx 8.0 and the NIDAQmx.lib of the NIDAQmx 7.5.

Link for the NIDAQmx 8.0 driver:

http://digital.ni.com/softlib.nsf/websearch/4C9E45F6EE5C29F9862570890071

On I join the .lib and .h how works correctly on my application.

Thank a lot of your help

See you

Bulot
0 Kudos
Message 14 of 15
(1,792 Views)

I had this problem and used the borland coff2omf with the defaults and it seems to work for the 6009 code

0 Kudos
Message 15 of 15
(1,052 Views)