PicoScope 7 Software
Available on Windows, Mac and Linux
Code: Select all
unit.channelSettings[1].enabled = FALSE;
SetDefaults(&unit);
Code: Select all
for (i = 0; i < MAX_CHANNELS; i++)
{
if (unit.channelSettings[i].range!=99) unit.channelSettings[i].enabled = TRUE; else unit.channelSettings[i].enabled = FALSE;
}
Code: Select all
set_voltages(&unit);
timeintv_ns = SetTimebase(unit);
Code: Select all
pretriggersamples = (long)(pretrigger_pct*0.01 * sampleCount); // global variable used in triggered block data collection
SetTrigger(unit.handle, &sourceDetails, 1, &conditions, 1, &directions, &pulseWidth, 0, 0, 0);
Code: Select all
status = ps4000RunBlock(unit->handle, pretriggersamples, sampleCount - pretriggersamples, timebase, oversample, &timeIndisposed, 0, CallBackBlock, NULL);