PicoScope 7 Software
Available on Windows, Mac and Linux
Code: Select all
System.Text.StringBuilder line = new System.Text.StringBuilder(80);
short status;
if (_handle >= 0)
{
for (int i = 0; i < 11; i++)
{
short requiredSize;
status = Imports.GetUnitInfo(_handle, line, 80, out requiredSize, i);
if (i == 3)
{
if (line.ToString().Contains("340")) // PS340XA/B device
_channelCount = QUAD_SCOPE;
else
_channelCount = DUAL_SCOPE;
}
if (i == 3)
{
if (line.ToString().EndsWith("MSO"))
_digitalPorts = 2;
else
_digitalPorts = 0;
}
Console.WriteLine("{0}: {1}", description[i], line);
}
}
}
my requiredLenght is 80 characters so that cant be an issue.* string, on exit, the information string selected specified by the
info argument. If string is NULL, only requiredSize is
returned.
The Driver Version is returning: 1.3.0.136, where when I run Console example it returns: 1.6.0.17. The only difference between example and my coding is that i don't have "Console.WriteLine" command.PICO_INFO_UNAVAILABLE
The handle is invalid so no information is available about the device. Only
PICO_DRIVER_VERSION is available.