I'm making something that, on receipt of an external trigger signal into chB, will fire a burst of N cycles (shots) from the AWG and simultaneously acquire data from chA (at the moment I've just got the AWG output wired straight into chA).
If I set the AWG trig type to 'none' and shots to zero, then it works OK and I acquire my AWG signal from chA. But with trig type set to 'Scope Trigger' and shots set to a positive number, then I just get noise on chA.
Any idea what the problem is? Here's what the VI does at the moment:
*SETUP*
OpenUnit
GetUnitInfo
SetChannel
SetChannel
SetSimpleTrigger
SetSigGenBuiltIn
*ACQUISITION*
GetTimebase
MemorySegments
SetNoOfCaptures
RunBlock
IsReady
*THIS IS WHEN THE EXTERNAL TRIGGER FIRES*
SetDataBufferBulk
SetDataBufferBulk
GetValues
CloseUnit
Thanks, I've tried what you suggested but it didn't majke a difference. In fact, I've realised that it's nothing to do with trying to use the scope and AWG simultaneously - it's just that I can't get triggered shots to work at all.
I've attached a zip containing a VI called AWG_tester.vi in which does the following:
1) Connect to picoscope
2) Setup picoscope AWG (using VI supplied in picotech's .llb)
3) wait for quit button press, then disconnect
It's only a really simple VI so you'll need to enter AWG settings into the front panel before running the VI. Just as above, if I set trigger source to 'none' then run the VI, I get continuous output from the AWG. However, it I set trigger source to 'Ext' and 'shots' to '5' then run the VI, and then send a trigger signal into the Ext input, I get nothing out of the AWG when I would expect 5 cyles.