Jump to content
  • 0

Problems with driver development with C# on Windows 10


Zhihua Wang

Question

I'm trying to develop the driver of a MCC DAQ device in C# (Please see the attached McThermalSensors.cs file). However, when the program makes the very first call of "ThermalTypeConfig = ThermalType.TC_TYPE_K;", an exception was thrown, with the following message:

An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)

Can you help to check what is wrong here? And is there any sample driver program using the libraray C:\Program Files (x86)\Measurement Computing\DAQ\cbw64.dll?

Meanwhile, I also tried with the  attached sample program that comes with the driver installation, but I got the error in the attached figure. Please help to take a look at it.

Thanks!

No counters.PNG

McThermalSensors.cs CInScan01.zip

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Dear @Zhihua Wang,

What is the model # of your MCC data acquisition device?

Did you run MCC's InstaCal utility in order to detect your device, prior to testing it with the included examples?

Consider using MCC's Universal Library Help (UL Help) to reference the functions supported by your MCC device.

https://www.mccdaq.com/pdfs/manuals/Mcculw_WebHelp/ULStart.htm

Regards,

Fausto

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...