Test and Measurement Forum

Realtime data scan ps5204

Post your .Net discussions here

Realtime data scan ps5204

Postby GNSS » Fri May 17, 2013 9:50 am

Hey everybody,
I am new here and also new for me is the PicoScope.
Today I got a PicoScope 5204 to do frequency analyses. I have a radar sensor which has an analog exit port and dependent by measured speed the frequency of the signal changes.
For this I would like to write in the C# SDK an analysis tool which is scanning for the time stamp anytime the voltage signal rises over a defined threshold.
Does anybody know or has a good class etc. how I can scan the actual values from PicoScope (5204) in real time?
And does a search function with good performance exist which I could use to get the time stamp when the voltage signal rises over a defined threshold?
Hope somebody can help me with my basic issues :?
Thanks
GNSS
Newbie
 
Posts: 0
Joined: Fri May 17, 2013 9:30 am

Re: Realtime data scan ps5204

Postby Hitesh » Mon May 20, 2013 4:20 pm

Hi,

When you refer to 'real-time', do you mean processing data as it is received? If so, please take a look at the streaming mode example in the C# code in the SDK.

In terms of timestamp, I think you would need to write your own code. In streaming mode, it is possible to obtain the sample number of when the trigger occurs but it will occur once only unless you stop and restart streaming mode capture (which would result in data loss).

With a rapid block capture, you can capture a number of waveforms using a trigger with smaller re-arm time (600us) but it is not possible to obtain the time of the trigger, rather the time between the trigger and the first sample.

How accurate a timestamp do you require?

Have you considered using the PicoScope 6 software with Mask Testing and Alarms?

Regards,
Hitesh

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

Re: Realtime data scan ps5204

Postby GNSS » Tue May 21, 2013 4:26 pm

Hi Hitesh,
Thanks for your fast answer.

The radar sensor I am using measures up to 200 kph. Per kph the sensor is pulsing with 38 Hz (max. 7600Hz = 38 * 200).

I haven't tried the Mask Testing and Alarms in PicoScope 6 software. Do you think it should work?
If it's working how I can get the Testing and Alarms Mask in PicoScope 6? I haven't found it.

The max pulsing of the radar leads me to a time stamp accuracy of or better 0.00005sec.
I just need the data in pseudo real time. Important for me is that the time stamp has the relative accuracy. Absolute (constant) latencies dependent by system are not so important. I can measure them and put an offset to the time stamp.

Further processing will get done in post processing. But conditioned by the memory space I can not log the whole measurements.

If you have another approach please let me know. Otherwise I will go with the streaming mode example and an own written threshold "trigger".

Regards,
Johannes
GNSS
Newbie
 
Posts: 0
Joined: Fri May 17, 2013 9:30 am

Re: Realtime data scan ps5204

Postby Hitesh » Wed May 22, 2013 4:31 pm

Hi Johannes,

Below are some videos that help to explain about Mask Limit Testing and Alarms in PicoScope 6:-

Mask limit testing:



Alarms:



Unfortunately, the timestamp for the waveform captured will be just the time in hh:mm:ss.

How many samples are you collecting in total and over what time period?

Regards,
Hitesh

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 2058
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