Skip to content

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

Notifications You must be signed in to change notification settings

ayyu/eprime-nidaqmx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published