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??
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.
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.
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?
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.
Step through the functions one at a time and see where the program is stopping at.
If you are using custom .vi's it would be beneficial if you upload your .vi's so I can look at them to see the issue, simply zip them and upload to the forum...