Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

where is the function AI_VRead() defined, which is used in AIonePoint.c file.?

Solved!
Go to solution

Hi,

    I installed Ni DAQ software for 6024E card. While i was going through the Visual C code examples, i came across AIonePoint.c file where AI_VRead() function was used. But i could not find the function definition. I would like to know where is the AI_VRead() function body is present.

 

Regards,

Rakesh

0 Kudos
Message 1 of 8
(4,340 Views)
Solution
Accepted by topic author rakeshc4

Hi Rakesh,

 

AI_VRead() is exported from %SystemRoot%\system32\nidaq32.dll. The corresponding import library is %ProgramFiles%\National Instruments\NI-DAQ\Lib\nidaq32.lib. The source code to this function is not available.

 

nidaq32.dll is part of Traditional NI-DAQ. If you're developing a new application, using the newer NI-DAQmx API instead is recommended. Transitioning from Traditional NI-DAQ (Legacy) to NI-DAQmx Using ANSI C and NI LabWindows/CVI has more information about this.

 

Brad

Message Edited by Brad K on 07-10-2009 12:22 PM
---
Brad Keryan
NI R&D
0 Kudos
Message 2 of 8
(4,332 Views)

Thank you so much Brad. Actually, i am new to Visual C environment.

 

0 Kudos
Message 3 of 8
(4,311 Views)

Hi Brad,

            While executing a visual C application stored under "C:\Program Files\National Instruments\NI-DAQ\Examples\VisualC\Ai" i am getting a run time error stating that "The application failed to initialize properly (0xc0150002). Click on OK to terminate the application." The hardware (6024E card) is installed in the PC along with the device driver having version NI-DAQ 6.92.

I even tried running the same application on the other PC having same hardware, but i am still getting the same error. What could be the reason for this type of error. 

Please help me in sorting out this error.

 

Regards,

Rakesh 

0 Kudos
Message 4 of 8
(4,305 Views)
Sorry Brad for the wrong device driver version. It is NI-DAQ 6.9.2
0 Kudos
Message 5 of 8
(4,304 Views)

Hi Rakesh,

 

It sounds like one of the DLLs needed by that example program is missing or will not load. Dependency Walker is a good tool for debugging this kind of issue.

 

What compiler version are you using? If you're using Visual Studio 2005 or later (which is much newer than NI-DAQ 6.9.2), you should check whether the C runtime manifest is getting embedded and the correct CRT version is installed. Note that the NI-DAQmx examples compile with VS2005/2008 out-of-the-box, and will likely be a better starting point.

 

Brad

---
Brad Keryan
NI R&D
0 Kudos
Message 6 of 8
(4,286 Views)

Hi Brad,

            I installed newer version of NI-DAQ device driver (7.4.4) and now i am able to run the application. Thank you very much for the pointing out the possible issues.

We also have procured a interface card for NI-DAQ 6024E. The part number id ASSY180910-01 REV.A. This board has got the IO pins (for Analog Input, Analog IO and Digital IO) which can be further connected to the device being interfaced via a ribbon cable (NI465).

Is the pin-out for this board available? Kindly provide the pin-out details for this card, it would be easy for us to interface the card with external devices.

 

Regards,

Rakesh

0 Kudos
Message 7 of 8
(4,274 Views)

http://www.ni.com/pdf/manuals/370719c.pdf

 

You will find pinout of NI 6024 E on page no 13 of this manual.

 

 

0 Kudos
Message 8 of 8
(4,265 Views)