Parallel Port to record end of stimuli

What i’m trying to achieve:
I want to use parallel ports to record onset and end of some components. Note that some of them run simultaneously.

Questions
I wonder if i need to set one parallel port to the onset and one of the end of a component:

  1. p_port_onset: name_of_component.status == STARTED;
  2. p_port_onset: name_of_component.status == STOPPED (I don’t know if this command exists).

Or if i just need to set the start, and set the duration to be a condition:
p_port_onset: name_of_component.status == STOPPED

Please tell me if this “STOPPED” command exists, and which option will work better.