Hello all,
I've been developing an application using the NI DAQmx dll and have suddenly had issue with being able to interact with the DAQ (cDAQ-9174). The Examples that come with NI DAQmx .NET also fall over with the same exception.
From Example in \National Instruments\NI-DAQ\Examples\DotNET4.5\Analog In\Measure Voltage\AcqOneVoltageSample\CS
The exception is thrown when I get to:
Exception information:
System.AccessViolationException
HResult=0x80004003
Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Source=<Cannot evaluate the exception source>
StackTrace:
<Cannot evaluate the exception stack trace>
I've been able to interact with the DAQ using NI MAX without any issues. I've tried reinstalling NI DAQmx using the NI Package Manager and this hasn't solved the issue.
Any help would be much appreciated.
Tom