Examples how to work with Ni DAQmx driver

Eylon D.

Nov 6, 2019
1 Post

0  |  0  

Re: Examples how to work with Ni DAQmx driver

Are there any examples for how to work with Ni DAQmx driver in ATEasy?
(analog input and output)

thanks,
Eylon

Solution Available
DrATEasy (Ron Y.)
Mission Viejo, CA

Nov 6, 2019
368 Posts

1  |  0  

Re: Examples how to work with Ni DAQmx driver

There is a NiDaqMx.prj example in the ATEasy Drivers folders.

Ronnie

Eric J.
De Pere, WI

Oct 9, 2024
1 Post

0  |  0  

Re: Examples how to work with Ni DAQmx driver

Has anyone had success with this project recently?

I am getting an error that its unable to load NiDaq32 DLL.  Tells me there are some certain dependencies.  I have LV2019 and LV2020 installed.

I was able to load the example prg and it reports that it builds successfully.  But I continue to get errors at the first DAQ AnalogIn call, init and reset are not reported errors.

DAQ Initialize()
DAQ Reset Device("cDAQ2Mod1")
! Set the DAQ Analog In channel 0 and set the minimum and maximum voltages.
Error Here >>> DAQ AnalogIn CreateChannels Voltage("cDAQ2Mod1/ai0", "myAI0", DAQmx_Val_Cfg_Default, -10.0, 10.0, DAQmx_Val_Volts, "")

Run-time error #-3480 : 'NI_DACmx Error #-3480:'Task specified is invalid or does not exist. Status Code: -200088' found in 'DAQ.CheckError' in line 5


File Attachment:
ATEasy_NIDAQ_Example.jpg



Please Note
You need to have a M@GIC account to participate in the Forums.
Not yet registered on our website? Click here to register today!

All content, information and opinions presented on the Marvin Test Solutions User Forums are those of the authors of the posts and messages and not Marvin Test Solutions'. All attachments and files are downloaded at your own risk. [Read More]