PicoScope 7 Software
Available on Windows, Mac and Linux
Code: Select all
[DllImport("PS2000.dll", EntryPoint = "ps2000_open_unit")]
public static extern int OpenUnit();
//[DllImport("PS2000.dll", EntryPoint = "ps2000_set_unit")]
//public static extern int SetUnit(int handler);
[DllImport("PS2000.dll", EntryPoint = "ps2000_flash_led")]
public static extern short FlashLed(short handler);
[DllImport("PS2000.dll", EntryPoint = "ps2000_close_unit")]
public static extern void CloseUnit(short handler);
//[DllImport("PS2000.dll", EntryPoint = "ps2000_get_unit_info")]
//public static extern short GetUnitInfo(short handler, ref string str, short lth, short line_no);
[DllImport("PS2000.dll", EntryPoint = "ps2000_set_channel")]
public static extern short SetChannel(short handle, short channel, short enabled, short dc, short range);
[DllImport("PS2000.dll", EntryPoint = "ps2000_set_trigger")]
public static extern short SetTrigger(short handle, short source, short threshold, short direction, short delay, short auto_trigger_ms);
[DllImport("PS2000.dll", EntryPoint = "ps2000_get_timebase")]
public static extern short GetTimebase(short handle, short timebase, int no_of_samples, ref int time_interval, ref short time_units, short oversample, ref int max_samples);
[DllImport("PS2000.dll", EntryPoint = "ps2000_run_block")]
public static extern short RunBlock(short handle, int no_of_values, short timebase, short oversample, ref int time_indisposed_ms);
[DllImport("PS2000.dll", EntryPoint = "ps2000_run_streaming")]
public static extern short RunStreaming(short handle, int time_interval, int max_samples, short windowed);
[DllImport("PS2000.dll", EntryPoint = "ps2000_ready")]
public static extern short Ready(short handle);
[DllImport("PS2000.dll", EntryPoint = "ps2000_get_values")]
public static extern int GetValues(short handle, ref short buffer_a, ref short buffer_b, ref short buffer_c, ref short buffer_d, out short overflow, int no_of_values);
[DllImport("PS2000.dll", EntryPoint = "ps2000_get_times_and_values")]
public static extern int GetTimesAndValues(short handle, ref int times, ref short buffer_a, ref short buffer_b, ref short buffer_c, ref short buffer_d, ref short overflow, short time_units, int no_of_samples);
[DllImport("PS2000.dll", EntryPoint = "ps2000_stop")]
public static extern short Stop(short handle);
[DllImport("PS2000.dll", EntryPoint = "ps2000_set_ets")]
public static extern int SetEts(short handle, short mode,short ets_cycles,short ets_interleave);
Code: Select all
[DllImport("PS2000.dll", EntryPoint = "ps2000_get_values")]
public static extern int GetValues(short handle, short [] buffer_a, short [] buffer_b, short [] buffer_c, short [] buffer_d, out short overflow, int no_of_values);
[DllImport("PS2000.dll", EntryPoint = "ps2000_get_times_and_values")]
public static extern int GetTimesAndValues(short handle, int [] times, short [] buffer_a, short [] buffer_b, short [] buffer_c, short [] buffer_d, out short overflow, short time_units, int no_of_samples);