PicoScope 7 Software
Available on Windows, Mac and Linux
Code: Select all
int SetChannels()
{
int i, choise=0, yn, more, choiseChannel, choiseRange, existance=0, errorCode;
char line[80];
for(i=0; i<16; i++)
{
s_channelSettings[i].enabled = 0;
s_channelSettings[i].error = 1;
s_channelSettings[i].range = 0;
}
/*---------------------Selecting-Channels-------------------------------------------*/
printf("\nHow many channels do you want to use? (1-16) \n... ");
scanf("%d", &NumberOfChannels);
if(NumberOfChannels == 16)
{
for(i=0; i<16; i++)
s_channelSettings[i].enabled = 1;
printf("\nAll channels are active");
}
if(NumberOfChannels!=16)
{
printf("\nInput the numbers, of the channels you want to use (1-16)\n");
for(i=0; i
Code: Select all
float Rate;
scanf("%f", &Rate);