Hi,
Have been trying to use the pl1000.dll library to access the PicoLog device through my own c# software so that i can access it's my measurements. However, when i try to use the pl1000OpenUnit(short handle) method it always returns the error code 12 ("PICO_INVALID_CONDITION_CHANNEL") therefore every device command i try to excute thereafter returns the error code 3 ("PICO_NOT_FOUND").
What do i need to change to initialize the device properly?
Here is a section of my code related to the pico device:
[DllImport("pl1000.dll", ExactSpelling = true, CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
static extern short pl1000MaxValue(short handle,short maxValue);
[DllImport("pl1000.dll", ExactSpelling = true, CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
static extern short pl1000OpenUnit(short handle);
private void accessDatak()
{
short handle = 0;
short max = 0;
short status;
status = pl1000OpenUnit(handle);
status = pl1000MaxValue(handle, max);
}
Cart
