PicoScope 7 Software
Available on Windows, Mac and Linux
Code: Select all
#include
#include
#include
int main()
{
PICO_STATUS pstatus;
int16_t handle_1 = 0;
int16_t handle_2 = 0;
// serials for 6404D
// int8_t serial_1[]{'E','Q','2','3','2','/','0','0','4','\0'};
// int8_t serial_1[]{'D','V','0','2','7','/','0','4','3','\0'};
// serials for 6403
int8_t serial_1[]{'A','Y','1','6','6','/','0','4','7','\0'};
int8_t serial_1[]{'A','Y','1','6','6','/','0','3','2','\0'};
// pstatus = ps6000OpenUnit( &handle_1, nullptr );
// std::cout << "status: " << pstatus << "\thandle: " << handle_1 << std::endl;
// pstatus = ps6000OpenUnit( &handle_2, nullptr );
// std::cout << "status: " << pstatus << "\thandle: " << handle_2 << std::endl;
pstatus = ps6000OpenUnit( &handle_1, serial_1 );
std::cout << "status: " << pstatus << "\thandle: " << handle_1 << std::endl;
pstatus = ps6000OpenUnit( &handle_2, serial_2 );
std::cout << "status: " << pstatus << "\thandle: " << handle_2 << std::endl;
ps6000Close( handle_1 );
ps6000Close( handle_2 );
return 0;
}
Code: Select all
Status: 0 Handle: 1
Status: 0 Handle: 2
Code: Select all
ps6000OpenUnit(&handle_X, nullptr)
Code: Select all
ps6000EnumerateUnits(..)