|  | 
/*
   This Function configures a Probe that has already been created. 
   Pass in the Probe Object, Probe Trigger Source, Probe Data Type 
   (Position or Time Capture Mode), and whether or not to use the 
   input Filter.
*/
long configProbe(MPIProbe           probe, 
                 MPIProbeSource     source, 
                 MPIProbeData       dataType, 
                 bool               inputFilter
{
  MPIProbeConfig  probeConfig;long            returnValue;
  returnValue = mpiProbeConfigGet(probe, 
                                  &probeConfig, 
                                  NULL);
 if(returnValue != MPIMessageOK)
 {
 return returnValue;
 }
  probeConfig.enable = TRUE;
 probeConfig.source = source;
 probeConfig.data = dataType;
 probeConfig.inputFilter = inputFilter; //TRUE = high for > 4 samples, 
                                           FALSE = no filter
  
  returnValue = mpiProbeConfigSet(probe, &probeConfig, NULL);
  return returnValue;
 }
 |