05-24-2006 09:59 AM
Try
aireader =
New AITaskreader = New NationalInstruments.DAQmx.AnalogMultiChannelReader(aireader.Stream)
reader.SynchronizingObject = Me
callback =
New AsyncCallback(AddressOf analogInCallback)running =
Truereader.BeginReadMultiSample(100, callback,
Nothing) Catch ex As ExceptionMessageBox.Show(ex.Message)
'Show the message in a messageboxrunning =
False 'set the boolean to falseaireader.Dispose()
End TryIf I comment out the line about the Synchronizing object, I do not get the error, but the code does not work properly either. According to Microsoft, this error is not supposed to happen. RIGHT!!!!!
Just for grins, I am using a DAQPad 6016, VB.net 2003 and Measurement studio 8.
Thanks
Joe White
05-24-2006 10:31 AM
That was on the machine I wrote the code on. If I take it to another machine that does not have the IDE on it, I get
Cannot access a disposed object named "NationalInstruments.UI.WindowsForms.NumericEdit". Object Name: "NationalInstruments.UI.WindowsForms.NumericEdit"
Thanks
Joe White
05-24-2006 11:54 AM
Never Mind. I refreshed the license file and it all went away. Go figure.
Joe