[WSS17] Mathematica connection to NI - Data Acquisition (DAQ) cards
I have controlled hardware devices through serial ports, GPIB ports, USB ports using SerialRead/Write and NI - VISA from Mathematica. Here at WSS17, I wanted to control NI - DAQ cards using Mathematica. Through all these device communication protocols, large number of devices can be controlled which enables me to run my experiments efficiently using Mathematica.
DAQ cards are used for efficient measurements as they are compact and occupy less space than traditional devices. NI-DAQmx is an efficient driver to control NI-DAQ cards. In WSS17, I developed Mathematica-DAQmx Link (“DAQmxLink”), which links NI-DAQ cards with Mathematica through the communication between Mathematica NETLink and NI-DAQmx .
Hi Suman. I’m a physics student and i’m tryng to communicate with a NI-DAQ using Wolfram Mathematica, for a class experiment i’m running. I found you developed a tool called DAQmxLink to do just that…or so I understood. I searched for it all over the web but I couldn’t find it! Here you shared a GitHub link (HW_submit/HW_suman _fin.nb at master · sumanban/HW_submit · GitHub), which I thought would contain the answer for my questions, but it gets me to some other code of yours that has nothing to do with the one I’m looking for…I don’t know why.
In any case, if you could direct me to that code or something similar that helped me do that, I would be very grateful!! Thanks.
Thanks a lot Suman! It took me some time…I had to change your code a little to adapt it to my set up, but now I have it working…almost. I would actually need to read more than one input simultaneously, to be able to correlate measurements. I know the NI-DAQ (cDAQ9184-1A54FE2) can do it. So, if you could point me to the function (or functions) to do it…Thanks
Thank you for the posting.
Which version of NationalInstruments.DAQmx.dll should I use?
I am using old Mathematica version Number : 8.0.1.0
recent version of NationalInstruments.DAQmx.dll generate following error while LoadNETAssembly[].
LoadNETAssembly::noload: The assembly C:\Users\Public\Documents\National Instruments\NI-DAQ\Examples\DotNET4.5.1\Counter\Generate Pulse\GenDigPulseTrain_Continuous\CS\bin\Debug\NationalInstruments.DAQmx.dll either was not found or could not be loaded. >>