Usually, this error indicates that the DAQ card you are using does not support triggering on an analog signal. Since our DAQ cards that do support analog triggers can trigger on PFI0, this is probably your problem. If you have a digital signal to use for your trigger, change the "task.Triggers.StartTrigger.ConfigureAnalogEdgeTrigger" call in the example to call "task.Triggers.StartTrigger.ConfigureDigitalEdgeTrigger". If you need trigger on an analog signal, I would contact your sales engineer about replacing your card with one that has the necessary analog trigger circuitry.
Tony H.
Measurement Studio