Switch between channels or use them in parallel

Post general discussions on using our drivers to write your own software here
Post Reply
Anna
User
User
Posts: 2
Joined: Fri Sep 16, 2016 8:44 am

Switch between channels or use them in parallel

Post by Anna »

Hi,

I'm programming a python (pyQT) application for a 6404B.
The python code accesses the SDK libraries, based on https://github.com/colinoflynn/pico-python.

I am currently taking data in the rapid block mode using channel A over ~ hours. I connected a temperature correlated signal to channel B. I would like to monitor the temperature in ~ minutes intervals.

My current algorithm is
1) set channel A (and other required stuff)
2) in a while loop: rapid block
3) stop rapid block loop after a minute
4) set channel B
5) start normal block mode, stop it
6) set channel A
7) == 1)
This crashes due to not freed memory.

Therefore I wanted to ask how data taking from several channels is usually implemented (as algorithm independent of the language)? Is it possible to record 2 channels in parallel or is it required to switch regularly between them?

Thanks for any hints,

Anna

Hitesh

Re: Switch between channels or use them in parallel

Post by Hitesh »

Hi Anna,

If you have set up both channels A and B and setup data buffers for both channels, then data will be available for both channels when you undertake a data collection. The PicoScope 6000 Series devices use simultaneous sampling.

We do not support mixed mode data collection (block/rapid block) and you should not need to run a data collection for one channel and then the other unless that is intentional.

You can use downsampling to reduce the number of data points for channel B.

Regards,

Post Reply