sometime my picoscope lock your connection with the PC and i would like of know if exixsts any sample in C/C++ that cut the this connection of usb port and after reset this connection
thanks




// activate wave generator
ps2000_set_sig_gen_built_in (...)
ps2000_set_channel(m_handle, PS2000_CHANNEL_A, true, false, rangeps)
ps2000_set_trigger(m_handle, PS2000_NONE, 0, 0, 0, 0)
// start streaming
m_samplingInterval = 1;
m_localBufferSize = 250000;
ps2000_run_streaming_ns (m_handle, m_samplingInterval, PS2000_US, m_localBufferSize, 0, 1, 150000)
// read data
while (ps2000_get_streaming_last_values(m_handle, ps2000FastStreamingReady) == 0)
{
// copy data from the buffer and do some stuff
}


Users browsing this forum: No registered users and 0 guests
Pico Technology — for all your oscilloscope and data acquisition needs