Test and Measurement Forum

the data.txt file created by the ps3206A program example

Post general discussions on using our drivers to write your own software here

the data.txt file created by the ps3206A program example

Postby TMoabalobelo » Sun Dec 04, 2011 5:44 pm

Hi,

Would you please explain what data is contained in the data.txt file that is created by the sample program that is provided with the scope.

thanks.
TMoabalobelo
Newbie
 
Posts: 0
Joined: Tue Nov 22, 2011 8:02 am

Re: the data.txt file created by the ps3206A program example

Postby Martyn » Mon Dec 05, 2011 8:27 am

If you look at the BlockDataHandler or StreamDataHandler functions in PS3000Acon.c file you will find the exact information in the fprintf statements.

StreamDataHandler
Code: Select all
fprintf(   fp,
      "%d, %d, %d, %d,",
      buffers[j * 2][i],
      adc_to_mv(buffers[j * 2][i], unit->channelSettings[PS3000A_CHANNEL_A + j].range, unit),
      buffers[j * 2 + 1][i],
      adc_to_mv(buffers[j * 2 + 1][i], unit->channelSettings[PS3000A_CHANNEL_A + j].range, unit));
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2347
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots


Return to General Software Discussions

Who is online

Users browsing this forum: No registered users and 0 guests