ayyu / eprime-nidaqmx

E-Basic code for exposing and using National Instruments NI-DAQmx functions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

E-Prime NI-DAQmx

E-Basic code for exposing and using National Instruments NI-DAQmx functions in an E-Prime script.

Luckily, E-Basic is a stripped down version of Visual Basic 6.0 so it's not hard to declare functions available in the DLL for use in experiments.

Usage

Requires a copy of the nicaiu.dll, from the NI DAQmx driver. Copy and paste the DLL into the same directory as your .es3 file.

See UserScript.vb for an example of what to include in your E-Prime UserScript in order to write to the NI device.

See SampleFunctions.vb for an example of some wrapper functions I've written in the past to make it easier to work with the declared DLL functions. You would include this in your User Script underneath the contents of the UserScript.vb file.

I haven't included any examples of reading from the NI device but it shouldn't be very hard to add them. See the NI docs below.

See also

About

E-Basic code for exposing and using National Instruments NI-DAQmx functions


Languages

Language:Visual Basic .NET 100.0%