the data.txt file created by the ps3206A program example

Post general discussions on using our drivers to write your own software here
Post Reply
TMoabalobelo
Newbie
Posts: 0
Joined: Tue Nov 22, 2011 8:02 am

the data.txt file created by the ps3206A program example

Post by TMoabalobelo »

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.

Martyn
Site Admin
Site Admin
Posts: 4491
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

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

Post by Martyn »

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 Support Manager

Post Reply