Test and Measurement Forum

converting .txt to .psd

Post your C and C++ discussions here

converting .txt to .psd

Postby bikashrdas » Fri Feb 27, 2009 6:24 am

Hi all,

I am using PicoScope 3424. I am collecting the samples and wrting them in voltage (in Volt) format into a text file with timestamp for each of the samples, something like this.

Time Info ChannelA ChannelB ChannelC ChannelD
------------------------------------------------------------------------------------
0.0000000 4.14 0.01 1.45 3.22
0.0002000 4.13 0.00 1.43 3.22
0.0004000 4.14 0.00 1.43 3.21

(and so on)


Is there any way( any API or tool) to convert this text file to PicoScope data file format (.PSD)
I have attached a sample log file in which I am putting the samples with time stamp vlues.
Thanks & Regards,
Bikash
Attachments
data.txt
Sample Log file.
(19.93 KiB) Downloaded 189 times
bikashrdas
Active User
Active User
 
Posts: 9
Joined: Fri Dec 19, 2008 8:26 am

Postby Robin » Fri Feb 27, 2009 9:13 am

Hi Bikash

I'm afraid there is no easy way to do this. Can't you just save your waveforms as .psd in the first place?

Robin
Robin
Zen Master
Zen Master
 
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Postby bikashrdas » Fri Feb 27, 2009 9:29 am

Hi Robin,
Thanks for replying. I have written a C++ program using the ps3000 driver APIs that reads data from the Oscilloscope channels and creates the log file as mentioned above.

Is there any way to create a .psd file as as log file instead of .txt file through ps3000 driver APIs?

Thanks & Regards,
Bikash
bikashrdas
Active User
Active User
 
Posts: 9
Joined: Fri Dec 19, 2008 8:26 am

Postby Robin » Fri Feb 27, 2009 9:36 am

Hi Bikash

I'm afraid not. The only way to get data in to the PicoScope software is to collect it using PicoScope software.

Robin
Robin
Zen Master
Zen Master
 
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Postby bikashrdas » Mon Mar 02, 2009 4:35 am

Hi Robin,
Is there any way to know how to create a .psd file?

I mean to say, there must be some header for the .psd file. Is there any way to know this?

Regards,
Bikash
bikashrdas
Active User
Active User
 
Posts: 9
Joined: Fri Dec 19, 2008 8:26 am

Postby Robin » Wed Mar 04, 2009 10:20 am

All the information I can give you is in section 7.4 of http://www.picotech.com/document/pdf/psw044.pdf.
Robin
Zen Master
Zen Master
 
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Postby bikashrdas » Wed Mar 04, 2009 10:28 am

Hi Robin,
Thanks for your support.

Thanks & Regards,
Bikash
bikashrdas
Active User
Active User
 
Posts: 9
Joined: Fri Dec 19, 2008 8:26 am


Return to C and C++

Who is online

Users browsing this forum: No registered users and 0 guests