Search found 8 matches

by dlodini
Mon Jun 28, 2010 2:32 pm
Forum: C and C++
Topic: Pico 4000 series scope hangs using triggers
Replies: 11
Views: 13774

Re: Pico 4000 series scope hangs using triggers

That worked, thanks.
by dlodini
Wed Jun 23, 2010 3:03 pm
Forum: C and C++
Topic: Pico 4000 series scope hangs using triggers
Replies: 11
Views: 13774

Re: Pico 4000 series scope hangs using triggers

I have another question related to this issue. If a trigger is setup with a range that it never hits. Is there a way to abort if we can't call ps4000Stop between the runblock and the callback. In this case we would have started the runblock but the callback would never be called so we can't call ps4...
by dlodini
Wed Jun 09, 2010 8:00 pm
Forum: C and C++
Topic: Pico 4000 series scope hangs using triggers
Replies: 11
Views: 13774

Re: Pico 4000 series scope hangs using triggers

That is for sure. The Scope was locking right up. However, it also looks like we should not set up the channels and triggers twice without sampling between. This appears to be what my trouble was. My Init state was set to init state again before collecting data and which caused the problem. if (nRea...
by dlodini
Wed Jun 09, 2010 1:52 pm
Forum: C and C++
Topic: Pico 4000 series scope hangs using triggers
Replies: 11
Views: 13774

Re: Pico 4000 series scope hangs using triggers

Actually, I think I may have just fixed it. The problem was that when an error occured I durring the Init I reran the Init block again. There was no call to Stop; however, It looks like the scope does not like resetting everything up before taking a sample. I took out the line to reset the state to ...
by dlodini
Tue Jun 08, 2010 9:17 pm
Forum: C and C++
Topic: Pico 4000 series scope hangs using triggers
Replies: 11
Views: 13774

Re: Pico 4000 series scope hangs using triggers

I have been thinking about this some more and I have a couple questions. Between samples we are not suppose to call ps4000stop. How about if we are about to switch triggering or channel properties? Also, if we are not to call stop before doing this, then what will happen if we switch settings while ...
by dlodini
Tue Jun 08, 2010 2:38 pm
Forum: C and C++
Topic: Pico 4000 series scope hangs using triggers
Replies: 11
Views: 13774

Re: Pico 4000 series scope hangs using triggers

Here is some code. If you need more to get the idea of what is going on then let me know. One thing to note. GetData will be called over and over. The state will be set back to init if we change triggers or channel settings. I think this is where it is hanging the most, when it is set back to init t...
by dlodini
Tue Jun 08, 2010 1:34 pm
Forum: C and C++
Topic: Pico 4000 series scope hangs using triggers
Replies: 11
Views: 13774

Re: Pico 4000 series scope hangs using triggers

Actually, I did make some progress since my last post. I believe the problem is with calling the ps4000Stop. According to the spec we should not call this function between samples. However, this seems to work differently with or without triggering and I am not sure why. Like I said previously, we or...
by dlodini
Mon Jun 07, 2010 8:32 pm
Forum: C and C++
Topic: Pico 4000 series scope hangs using triggers
Replies: 11
Views: 13774

Pico 4000 series scope hangs using triggers

I am adding the Pico 4000 series scope driver to our company's scope software. We previously had the 3000 scope working. After making some changes, I got the scope working for untriggered data correctly. When activating some triggers the program and scope hang. I believe the program is waiting for t...