Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-DAQmx references

Hi all,

 

I have a Visual C# application that was built on a computer with NI-DAQmx 8.9.  Installing on a computer with NI-DAQmx 8.7 causes the program to crash.  Is there a way to programmatically check the user's NI-DAQmx version before running, to provide a warning?

 

Thanks,

John 

0 Kudos
Message 1 of 2
(3,453 Views)

Hi jrolston,

 

Yes, you can programmatically call the DAQmx version.  Call the DriverMajorVersion and DriverMinorVersion.

 

NationalInstruments.DAQmx.DaqSystem test = new NationalInstruments.DAQmx.DaqSystem();

double test2 = test.DriverMajorVersion;

David
Applications Engineer
National Instruments


Digital Multimeters
0 Kudos
Message 2 of 2
(3,424 Views)