Hello, I am using example in picoscope sdk for PS4000. PS4000A_IC_Generic_Driver_Block.m Everithing is working fine but I dont understand how to capture data not only from channel A (channel 0) but allso from channel B. I understand that information goes from here: [numSamples, overflow, chA] = invoke(blockGroupObj, 'getBlockData', 0, 0, 1, 0); Can some one help me? Thank you.
One more question, how to edit this line to get trigger not only from channel A but all so from channel B, and all so not only from rising but and from rising and from falling?
The setSimpleTrigger (and the underlying ps4000aSetSimpleTrigger) function can only be used to set a trigger for one channel at a time.
You will need to use the Advanced Trigger functions provided by the Instrument Driver - there is an example (PS4000A_ID_Block_Adv_Trigger_PWQ_Example.m) in the current package available via MATLAB Central File Exchange, which has a corresponding html file showing an example data capture.
The advanced trigger functions are located in the Trigger group of the Instrument Driver and are based on the functions defined in the Programmer's Guide.
Once the Trigger group object has been created in the MATLAB Environment, you can view the available functions by calling: