Hi,
I'm new user (I used physical oscilloscope..) of this device. I installed PicoScope6 and it works fine.
Now, I need some information because I'm developing a c# application. I read about ps3000.dll, but I think that's old method...
Is it possible to have ps3000 library? or similar?
Thank you Martin for reply.
I read to download SDK in other posts on this forum. I take example and now I'm developing sample application.
I developed some functions, but I have some questions:
1. Is timeBase rappresented only in ns?
2. My target is: read a square wave and get period, duty cycle. Is there an example in c#? Or can you suggest me some informations?
timeBase is an integer where 0 represents the fastest sampling rate for a device. If you use GetTimebase you can read the actual sample interval, and interval units related to a particular timebase.
We don't have any examples for pulse width, and duty cycle, although I would expect this to be relatively straightforward. You will need to be looking through your data for mid point crossings (zero point if you signal goes positive and negative) and just count the samples until it goes back the other way. Remember to add a bit of hysteresis to ensure a true crossing not a one caused by a bit of noise.
Thank you Martin for reply.
I need to read a pwm signal to understand the target of my application and I think that PicoScope is perfect for my needs, because Picoscope is equipped with GEN output.
I read Programmer's guide, but there are many many options.
Have you got a sample example of Generation of PWM in c#?
Can you open the device with our PicoScope 6 software and go to Help->About and post back the details in the box. I need to know exactly which model and driver versions are installed.
Hi Martin,
finally, I develop my application starting from c# console example.
It works, but I have a question/problem.
I must read a square wave with period = 1msec.
My application read period = 500us (I see it in column Time of block.txt file)
You will need to check the sample interval you have chosen (or timebase), and the number of samples you are collecting, as this will define the time span for your data.
Hi Martin,
thanks for reply, but I don't understand your reply. I explain you.
This is my block.txt file:
For each of the 1 Channels, results shown are....
Time interval Maximum Aggregated value ADC Count & mV, Minimum Aggregated value ADC Count & mV
Time Ch Max ADC Max mV Min ADC Min mV
0 ChA 16384 5039 0 0
100000 ChA 16128 4960 0 0
200000 ChA 8064 2480 0 0
300000 ChA -256 -78 0 0
400000 ChA -256 -78 0 0 500000 ChA 16384 5039 0 0
600000 ChA 16384 5039 0 0
700000 ChA 8064 2480 0 0
800000 ChA -256 -78 0 0
900000 ChA -256 -78 0 0 1000000 ChA 16256 5000 0 0
You can see (bold font line) that picoscope read rising peak interval = 500us.
The input square ware has rising peak interval of 1 msec.
I don't understand your reply because I don't think that problem depends on number of sample, timebase and time span.
Picoscope6 Application works fine (read correctly).
I would need to see the values you are passing into the API calls. Maybe if you can post the example code that gives this data we can understand where the error is.