Jump to content
  • 0

UL Library: NullReferenceException?


James Bellinger

Question

Hello,

I added DEMO_BOARD using InstaCal, and DAQami can detect it. (I am using DEMO_BOARD to test.)

However, all C# UL samples seem to fail. They throw NullReferenceException on any call seemingly, except for the "new MccBoard(0)" constructor.

What do I need to do to make this library work properly, then, with DEMO_BOARD?

Thanks!

James

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hello,

I ran ULAI01 from our C# example library using the demo board and didn't have this problem. 

Hoping for a clue, I searched "NullReferenceException" in our support database and found that it could be caused by having multiple copy of our DLL's and CFG files. Search your hard drive starting at the root "C:\" for the following:

cbw32.dll, cbw64.dll and cb.cfg. 

The correct locations are as follows:
C:\Program Files (x86)\Measurement Computing\DAQ\ (for the two DLLs)

C:\ProgramData\Measurement Computing\DAQ\ (for the CFG)

delete any copies that are not in our folders.

Thanks

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