|
|
| Author |
Message |
yvo User

Joined: 03 Nov 2006
Posts: 4
|
Posted: Fri Nov 03, 2006 1:54 pm Post subject: using ps3000.vi |
|
|
Hi
I have connected my picoscope 3224 using picoscope and can collect data fine.
However, i want to use labview and I've tried to use the example vi's that came with the scope and I'm having some trouble.
If i run open_unit.vi it returns a handle value of either 0 or 1.
but If i run setup_data_collection.vi it gets stuck in the 3rd frame with aiting for the device to be ready.
What should the handler return be?
How do i establish if the device is communicating with my PC and is this done via the USB port or do i need an extra converter plug??
Cheers
Yvo
|
|
| Back to top |
|
 |
Michael Guru

Joined: 07 Jul 2005
Posts: 93
Location: St Neots, Cambridgeshire
|
Posted: Mon Nov 06, 2006 9:55 am Post subject: |
|
|
Hello,
Thank you for your post.
You follow the order of these events to access the ps3000. The same applies with all programming languages.
Open the unit, this will return 0 if unsuccessful or 1, 2 or 3 etc if successful. This handle can be used to address all the other functions required.
Set channels.
Set trigger.
Get and set timebase.
Run acquisition.
Check for ready.
Stop sampling
Return sample array.
Close unit.
Please give this a try and let me know how you get on.
Best regards,
Michael
|
|
| Back to top |
|
 |
yvo User

Joined: 03 Nov 2006
Posts: 4
|
Posted: Tue Nov 07, 2006 10:27 am Post subject: |
|
|
Thanks for your help.
I'm starting to make some progress.
I have managed to run open_unit.vi and its returns a handle of 1.
then if i run set_channel.vi with that handle i get a numeric of 1.
I'm still confused as to what the settings for channnel A etc should be.
Is is correct that I should set channel A enabled to 0 to enable it and simmilarly for the DC value?
also how does the range settings work?
Regardles of what values I put in it always returns a numeric of 1 if the handle is 1.
And ps3000.vi still does not seem to be working, I've tried playing around with the values but nothing seems to work.
cheers
Yvo
|
|
| Back to top |
|
 |
Michael Guru

Joined: 07 Jul 2005
Posts: 93
Location: St Neots, Cambridgeshire
|
Posted: Tue Nov 07, 2006 11:03 am Post subject: |
|
|
Hello,
Thank you for your post.
Good work so far. Handle=1 and set_channel=1 is success! YOu will need to set the channel with the following parameters:
Channel: A=0 or B=1 etc
Enabled: false=0 True=1
DC Coupled: false=0 True=1
Range: from 1-10 unit dependant. YOu can find this in the manual.
I have attached the PS3000 manual PDF to this post. YOu will need to post a reply and scroll down the window to see the attachment.
If you post a simple list of your requirements, I will assemble a small VI with the fucntions you need to call to get data. This should help you get started.
Best regards,
Michael
| Description: |
|
 Download |
| Filename: |
PS3000044.pdf |
| Filesize: |
432.29 KB |
| Downloaded: |
2052 Time(s) |
|
|
| Back to top |
|
 |
yvo User

Joined: 03 Nov 2006
Posts: 4
|
Posted: Tue Nov 07, 2006 11:55 am Post subject: |
|
|
Michael,
thanks for your reply,
Ideally I would like to be able to run my collection at similar settings to the picolog, where I used to collect a fast stream of data every minute. I used the following settings: collecting 26000 points every 10 us, for channel A +- 5V AC, for channel B +- 500 mv DC, and triggering of channel B at 315 mV Rising.
To test ps3000.vi I have setup a simple 10 Hz, +- 100 mV sine wave going into channel A and have used the following in set_channel handle 1, channel A enabled 1, channel A DC 0, channel A range 3. this returns a numeric of 1.
I had a look at the block diagram of of ps3000.vi and when I step through noticed that it gets stuck at the loop inside 0,Default, there is a case structure that seems to have both cases empty. The pink line going to the case is a string of either 0.0 or last time 2,9,0,0 and the blue line is 1. Is this designed to be like that?
Cheers
Yvo
|
|
| Back to top |
|
 |
yvo User

Joined: 03 Nov 2006
Posts: 4
|
Posted: Thu Nov 09, 2006 2:37 pm Post subject: |
|
|
Well ive managed to make a fair amount of progress.
I can now get the ps3000.vi to work, i had to change a few of the subfunctions which were calling ps2000 vi's.
and i put in a few indicators to help
also i figured out that enab light is a switch (i thought it was an indicator)
also i need to press stop while its running or it cant restart.
However i am still having trouble with the graphs. I have noticed that the x/y going to the graph, the x value is always zero. so its always plotting at the first point in the graph. also the loop to collect data never seems to finish. I'm not sure where the x=0 is supposed to increment, i would have thought with the counter to indicate the loop number, but i cant find any connections.
Yvo
|
|
| Back to top |
|
 |
scottj Advanced User

Joined: 17 Nov 2006
Posts: 13
|
Posted: Fri Nov 24, 2006 9:47 pm Post subject: reply to see attachment |
|
|
| I'd like to see the ps3000 manual as well, so I'm hoping this post will allow me to do that, as mentioned above.
|
|
| Back to top |
|
 |
pt Newbie
Joined: 14 Dec 2006
Posts: 0
|
Posted: Wed Dec 13, 2006 4:39 pm Post subject: Do the PS3000 drivers work for the 3423? |
|
|
Question, do the labview drivers (ps3000) also work for the PicoScope 3423 (automotive type)?
Thanks
|
|
| Back to top |
|
 |
gruntman Guru

Joined: 28 Sep 2006
Posts: 96
Location: Garden City, KS USA
|
Posted: Sat Dec 16, 2006 2:20 am Post subject: |
|
|
pt,
The automotive series of scopes are incompatible with the generic 3000 series labview drivers.
Regards,
Richard Boyd
Crag Technologies, Inc
http://www.pc-oscilloscopes.com
|
|
| Back to top |
|
 |
|