Search found 10 matches

by furuian
Thu Feb 02, 2017 12:33 pm
Forum: MATLAB
Topic: Error code 51 in ps5000aRunBlock call when using ext trigger
Replies: 6
Views: 3262

Re: Error code 51 in ps5000aRunBlock call when using ext tri

Thanks, in the example folder of my Matlab SDK, I find the following code which implies that the threshold value for setSimpleTrigger is in mV (and not ADC counts): %% SET SIMPLE TRIGGER % Channel : 0 (PS5000A_CHANNEL_A) % Threshold : 1000 (mV) % Direction : 2 (Rising) % Delay : 0 % Auto trigger: 0 ...
by furuian
Wed Feb 01, 2017 3:25 pm
Forum: MATLAB
Topic: Error code 51 in ps5000aRunBlock call when using ext trigger
Replies: 6
Views: 3262

Re: Error code 51 in ps5000aRunBlock call when using ext tri

Thanks! I changed the delay in setSimpleTrigger to 0 but the same issue persists. I does appear to be an error, not a warning. It says "error" in the message and it shows up when I run Matlab's lasterror() function but not when I run Matlab's lastwarn() function. I know how to suppress warnings but ...
by furuian
Wed Feb 01, 2017 12:03 am
Forum: MATLAB
Topic: Error code 51 in ps5000aRunBlock call when using ext trigger
Replies: 6
Views: 3262

Error code 51 in ps5000aRunBlock call when using ext trigger

Hi, I'm using an external trigger signal (EXT) that is LOW normally and goes HIGH for 10 ms every 1 second. I'd like this EXT signal to trigger both the signal generator (sending out a number of sine shots) and the scope (recording a section of those shots). The code below seems to be doing the job ...
by furuian
Tue Jan 31, 2017 9:42 am
Forum: MATLAB
Topic: 32 Bit or 64 Bit SDK on Win 7 64 Bit OS with 32 Bit Matlab?
Replies: 1
Views: 1791

32 Bit or 64 Bit SDK on Win 7 64 Bit OS with 32 Bit Matlab?

I'm using a Picoscope 5444A on a Windows 7 computer (64 Bit) in combination with Matlab 2015b (32 Bit).

Should I install the 32 Bit or the 64 Bit Picoscope SDK?

Thanks!
by furuian
Thu Jan 19, 2017 6:30 pm
Forum: MATLAB
Topic: How to best create a pulse train with a fixed duty cycle?
Replies: 4
Views: 3394

Re: How to best create a pulse train with a fixed duty cycle

Thanks for your input on this, Martyn. I did a bit of research on Matlab and it turns that although there are timer functions available they will never by truly real time because at the end of the day Matlab remains single-threaded. For us it is important that the signal is very regular without occa...
by furuian
Sat Jan 14, 2017 8:01 pm
Forum: MATLAB
Topic: How to best create a pulse train with a fixed duty cycle?
Replies: 4
Views: 3394

Re: How to best create a pulse train with a fixed duty cycle

Thank you for your quick reply, Martyn - much appreciated! I have two Picoscopes: a 5444A and a 5444B. I understand that only the latter one has an AWG. My 200ms sine wave bursts have to go up to 3 MHz. I take it that the AWG buffer can hold 48k samples. I don't have any experience with the AWG but ...
by furuian
Sat Jan 14, 2017 2:02 pm
Forum: MATLAB
Topic: How to best create a pulse train with a fixed duty cycle?
Replies: 4
Views: 3394

How to best create a pulse train with a fixed duty cycle?

I'm trying to create a pulse train where the pulse consists of a sine wave (e.g. 20 KHz). The sine wave pulse lasts for 200ms, then there is zero output for 800ms, then the next sine wave pulse starts and so on. I wrote a simple Matlab script implementing the above using Picoscope's software trigger...
by furuian
Sat Jan 14, 2017 1:29 pm
Forum: USB PC Oscilloscopes
Topic: Maximum voltage/current that can be drawn from signal gen?
Replies: 2
Views: 1043

Maximum voltage/current that can be drawn from signal gen?

Hello, In our lab we have a 5444A and a 5444B. I use the signal generator to generate simple sine waves that we connect to piezoelectric ultrasound transducers. The transducer impedances are between 20 and 500 Ohm (depending on the frequency). I would like to maximize the power provided to the trans...
by furuian
Wed May 11, 2016 2:51 pm
Forum: MATLAB
Topic: Matlab freezes after trying to disconnect two scopes
Replies: 3
Views: 5166

Re: Matlab freezes after trying to disconnect two scopes

Thank you for your quick reply, Hitesh.

The workaround appears to be working in my first tests.
by furuian
Wed May 11, 2016 2:17 pm
Forum: MATLAB
Topic: Matlab freezes after trying to disconnect two scopes
Replies: 3
Views: 5166

Matlab freezes after trying to disconnect two scopes

Hello, I have two Picoscopes connect to the same PC. One is a 5444B and the other one a 5444A. I was trying to read blocks from both of them (which worked well) but I find that whenever I disconnect the first scope, Matlab freezes. I was able to reduce the issue to the following bare bones code: WOR...