Hi, I'm new to LabJack and am encountering quite a few problems using the stock .NET Matlab examples. Hope that someone can help me out:
I'm running the u6_simplestream.m script, and these are the problems that I'm encountering:
1. Matlab crash on ljudObj.Close().
2. "Stream scan overlapped" error even if my settings were the same as LJStreamUD. In fact, I found these error would cease in Matlab at sampling rates about 1/2 of that in LJStreamUD.
3. I encounter System.AccessViolationException on the line that attempts to read data from the stream buffer:
UD Driver Version = 3.39
Actual Scan Rate = 100
Actual Sample Rate = 200
.NET Error: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at LabJack.LabJackUD.LJUD.UDeGet(Int32 handle, IO IOType, CHANNEL channel, Double& val, Double x1)
at LabJack.LabJackUD.LJUD.eGet(Int32 handle, IO IOType, CHANNEL channel, Double& val, Double x1)
Error using u6_simplestream (line 125)
Message: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Any help much appreciated. I'm encountering these errors on 2 separate machines running 64bit Win7 with 64bit Matlab (R2012b) with diver version 3.39 and U6 firmware 1.39 (hardware version 2).