Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

nidmm.cs and niswitch.cs disposal

Hi,

 

I have encountered a problem using the DMM and Switch .NET classes -- my application crashes on close even though all of my variables seem to be disposed properly (stepping through the classes shows that the Dispose method is getting called).

 

This only happens if we initialize the switch/DMM (e.g. myDMM = new InstrumentDriverInterop.Ivi.niDMM(dmmName, true, true);),

 

Has anyone seen this behavior before and/or have any ideas on how to force a disposal of those objects? Thanks.

0 Kudos
Message 1 of 4
(4,004 Views)

Hi dbro,

 

It's possible that this is an issue with the driver, and not calling niDMM_close().  Which DMM device are you using?  This thread may shed some light.

 

 

David

Applications Engineer

National Instruments

David
Applications Engineer
National Instruments


Digital Multimeters
0 Kudos
Message 2 of 4
(3,979 Views)
What do load cells have to do with this?
0 Kudos
Message 3 of 4
(3,941 Views)
After doing some more digging, I believe the problem is a bug in an earlier version of the DAQmx library...with the application running on a PC with a newer DAQmx, the problem went away.
0 Kudos
Message 4 of 4
(3,940 Views)