i am using the Picoscope 3206B to synchronize this measurement system (PicoScope : 1st) with another measurement system (2nd, it is not a PicoScope, but it has a Sync Input which needs a specific signal).
I connect PicoScope with the SDK of Matlab, i can capture data with channel A or/and B. And now i want to send a square signal with the same samplerate like the samplerate which i define to capture the data in PicoScope.
In the end i want to have one specific data (captured as example at channel A) to a specific time ( t1 ) and in addition to that i want to measure to the same specific time like (t1) an other information with the second measurement system ( 2nd).
How can I send a signal over the GEN Output with the same samplerate like PicoScope itself?
Second problem is, where do i have to call the following functions?
sig_gen_built_in_status = invoke(ps3000a_obj, 'ps3000aSetSigGenBuiltIn', ...
offsetVoltage, pkToPk, waveformType, startFrequency, stopFrequency, increment, ...
dwellTime, sweepType, operation, shots, sweeps, triggerType, triggerSource, ...
status_set_siggen_arb = invoke(ps3000a_obj, 'ps3000aSetSigGenArbitrary', offsetVoltage, pkToPk, ...
start_delta, stop_delta, deltaPhaseIncrement, dwellCount, awg_waveform, waveform_size, ...
sweepType, operation, indexMode, shots, sweeps, triggerType, triggerSource, extInThreshold);
regarding the calling of the other functions when i capture the data:
...some code to set different functions: (setsimpletrigger, setChannel ...)...
while(RunStream) % Repeat until Power source is correct
streaming_status = invoke(app.ps3206B_obj, 'ps3000aRunStreaming', ....
while(hasAutoStopped == false && get_str_latest_values_status == PicoStatus.PICO_OK)
while(streamValue == false)
get_str_latest_values_status = invoke(app.ps3206B_obj, 'GetStreamingLatestValues');
streamValue = invoke(app.ps3206B_obj, 'IsReady');
...some more code like the example
My problem is, everytime Picoscope sample the buffer to get the data i want to send out a signal over the GEN Output.
Thanks for any help.