I'm open to being corrected by someone who knows for sure, but I'm pretty confident that you need an active AI task to be able to use an analog signal to trigger a counter task as you showed. The "AnalogComparisonEvent" is needed to provide a digital triggering signal to the internal counter pins, but such events are only generated while a corresponding AI task is configured for analog triggering and is actively in its run state.
What I could find in the manual was in the section on Counter Triggering which states that the configured trigger signal gets routed to an internal counter pin. That tells me it must be a digital signal, not analog, confirming why you can't *directly* configure a counter task to use an analog signal on APFI0 as a trigger. It was to be indirect, by way of a task that configures and activates the analog comparisons, i.e., an AI task.
-Kevin P
ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.