I get an accessviolationexception when calling the ps3000_get_unit_info
ps3000-version: 3.6.3.4
Declare Function ps3000_get_unit_info Lib "ps3000.dll" (ByVal handle As Short, ByRef strInfo As String, ByVal lth As Short, ByVal line_no As Short) As Short
Also the declaration of the strInfo as a char-array won't run.
[code]
Dim strInfo As String = Space(254)
Dim lth As Short = strInfo.Length
Dim line_no, strLen As Short
For line_no = 0 To 5
strLen = ps3000_get_unit_info(_handle, strInfo, lth, line_no)
Next
[/code]
The Excel-macro runs without an error.
Any help?
Cart
