Jump to content
  • 0

Analog Input scan with usb-2416 unknown exception


Alain Compaore

Question

Windows 10

Framework: .Net 4.8

Visual Studio Professional 2022

Using MC Universal Library, I consumed MccDaq api .

Hardware: USB-24164AO and AI-EXP32

As an experimentation I configured  three Analog Input Channel at and A/D rate of 3750S/s and differential, the range is set to 0.078V the type is Voltage and unit is mV.

than I used respectively the following commands. 

ScaledWinBufAllocEx,EnableEvent,"channels configuration",AloadQueue ,AInScan,

the callbackFunction generated  is uploaded below . I implemented a routine to copy the data  from the windows buffer.

This data collection  process is interrupted after few minutes  by and  unhandled exception of type "System.ExecutionEngineException" confer attach.

 

2416AInputScanException.jpg

CallBackFunction.cs

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hello,

Please run the event example ULEV02. The examples are installed to C:\Users\Public\Documents\Measurement Computing\DAQ\C#\. If you are missing them, reinstall InstaCal from the MCC DAQ Software CD download found on the following page: https://www.mccdaq.com/Software-Downloads

The USB-2416 is not the fast device we have, so adjust the DesiredRate parameter appropriately. 

Best regards,
John

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...