Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Using c#/DAQmx 9.x with 8.6.x

Solved!
Go to solution

We have written an application using DAQmx 9.0.35.6, but we are deploying to versions which may be as old as 8.6.x.

 

On our first test install, the software hangs at load.  We have narrowed it down to the Task() constructor, which never finishes.  We get no errors, exceptions, or crashes ... 

 

 

0 Kudos
Message 1 of 3
(3,167 Views)
Solution
Accepted by topic author surfacemachines

The answer is appears to be the .NET framework support between version 9.x and previous versions.

 

In the 8.x series, .NET support only goes up to 2.0.  9.x supports .NET 3.5.  Additionally, when packaging the software, two new dlls will be added:

 

NationalInstruments.DAQmx.CommonObjectModel.dll

NationalInstruments.DAQmx.dll

 

These dlls are not supported on pre-9.x driver installations.

 

The symtom is that calls to the Task() constructor (under c#, at least) fail silently.

 

The solution is to have the customer upgrade their driver version to 9.x, which is an easy 1320 MB (most comprehensive drive EVAR).  From my experience .NET 3.5 support should be selected by default, but it doesn't hurt to have the customer explicitly check for this.

0 Kudos
Message 2 of 3
(3,156 Views)

The other option would be to have your customer just upgrade to the Core Runtime (if they don't need MAX) which is about 140 MB or Config Runtime (if they do need MAX) which is about 563 MB.

 

If they have an 8.x version of NI-DAQmx already installed, they'll need to uninstall it first, then install one of the runtimes above.  After that though, if they need to upgrade driver versions, they can just install the appropriate upgraded version (Full, Core, or Config) and the appropriate components will be upgraded.

 

This might make the process a bit easier.

 

Regards,

Seth B.
Principal Test Engineer | National Instruments
Certified LabVIEW Architect
Certified TestStand Architect
0 Kudos
Message 3 of 3
(3,136 Views)