I have written a LabView VI to work with my 4000 series PicoScope. It works fine as long as I set my Trigger Source to Channel A or Channel B. I found in the "pico4262 trigger" post that the channel number for the external trigger is 4, so I added that to the Trigger Source control. Unfortunately, I keep getting an "Error 5016 occurred at ps4000SetSimpleTrigger," which seems to indicate an invalid channel, when I try to use the external trigger input.
I went into the PS4000 Settings VI and tried to enable the External trigger channel, similarly to the way the other channels were enabled, using 4 for the channel number, but got the same error number at ps4000SetChannel.
Sorry, that was a stupid mistake! Anyway, it now gets past that VI, but I have the original problem. The block diagram is still as shown above, but I am getting Error 5016 when I select EXT (4):
My apologies once again; I found the problem. While I added EXT (= 4) to the "Trigger Source" enum in my main VI, I did not add it to the "Trigger Source" enum in the Settings VI. Since the "Allow undefined values at run time" checkbox was not checked, the Settings VI changed EXT to Channel D, which was not supported, and therefore gave the error.
It's probably best to update the Settings vi and then add a new control having deleted the old one from the main vi as this will ensure that the settings are mapped across.