Test and Measurement Forum

Create a chart in a function of time with Picoscope 2205

Post your .Net discussions here

Create a chart in a function of time with Picoscope 2205

Postby Memphis » Thu May 15, 2014 7:44 am

Hi all, i'm new, this is my first encounter with this product, I am a programmer who has been commissioned to create a software that displays, as in the PicoScope 6 software, the curve as a function of time and frequency. Proceeding step by step I would like to understand how to implement meanwhile the curve as a function of time. Looking into the library I found the function ps2000_get_times_and_values ​​and wondered if it was one I was looking for, I have seen and tried the examples on your website and works fine, but return only the values ​​and not the time. Can you help me?

thanks
Memphis
Newbie
 
Posts: 0
Joined: Fri Jun 28, 2013 3:28 pm

Re: Create a chart in a function of time with Picoscope 2205

Postby Karunen » Mon May 19, 2014 10:36 am

Hi Memphis,

In the SDK(software development kit) the c console and the excel examples have the implementation of ps2000_get_times_and_values,

The examples do not export the values but they stored in an array inside the application.

Have you had a look at the programmers guide

http://www.picotech.com/document/pdf/ps2000pg.en-10.pdf

Because that function will return the time lapsed from the trigger point to when the value is captured.

Thanks,
Karunen

Technical Specialist
Pico Technology
Karunen
Zen Master
Zen Master
 
Posts: 194
Joined: Thu Nov 21, 2013 9:22 am

Re: Create a chart in a function of time with Picoscope 2205

Postby Memphis » Tue Jul 22, 2014 2:21 pm

Thank you for the reply, if I understand you, I don't need the get_values_and_times function. When I drawing the chart, I entered the value of the mV obtained by get_value in the axies Y, but how can I get the time to put in the axies X? In Excel I created a chart (the image I have attached) with only the voltage value and it seems looks like the time-based instrument in the PicoScope 6 software, but I need the time for the X axies. I read the programmers guide but I have not found nothing or I didn't understand! Can you help me?
Attachments
Chart.png
Memphis
Newbie
 
Posts: 0
Joined: Fri Jun 28, 2013 3:28 pm

Re: Create a chart in a function of time with Picoscope 2205

Postby Hitesh » Wed Jul 23, 2014 4:37 pm

Hi Memphis,

As per Karunen's reply, you will need to use the ps2000_get_times_and_values function in order to return times from the driver, assuming that you are using a block mode capture.

I hope this helps.
Hitesh

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 1997
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: Create a chart in a function of time with Picoscope 2205

Postby Memphis » Thu Jul 24, 2014 6:38 am

Thank to all for the reply :D
Memphis
Newbie
 
Posts: 0
Joined: Fri Jun 28, 2013 3:28 pm

Re: Create a chart in a function of time with Picoscope 2205

Postby Hitesh » Thu Jul 24, 2014 7:53 am

Hi Memphis,

No problem :D

Please note that when you call the function, the time_units parameter should be what you obtain from calling the ps2000_get_timebase function.

Regards,
Hitesh

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 1997
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire


Return to .Net Languages (C#, VB.Net, .)

Who is online

Users browsing this forum: No registered users and 0 guests