This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

(electrotherapy) simulator

i need one very quick.found link on askgoogle but not working. any help please?

Parents
  • Here's a starting point for you:

    void main(void)
    {
      long  Voltage;
    
      Voltage = 1;
    
      while ( IsPatientStillAlive() )
      {
        SwitchOnElectrodes( Voltage );
    
        Delay();
    
        SwitchOffElectrodes( );
    
        PainLevel = MonitorPainDetectors();
    
        if ( PainLevel < PainThreshold )
          Voltage += 10;
        else
          Voltage += 1;
      }
    }
    

    Disclaimer: I will not be held responsible for any injury (or death) caused by usage of this code!

Reply
  • Here's a starting point for you:

    void main(void)
    {
      long  Voltage;
    
      Voltage = 1;
    
      while ( IsPatientStillAlive() )
      {
        SwitchOnElectrodes( Voltage );
    
        Delay();
    
        SwitchOffElectrodes( );
    
        PainLevel = MonitorPainDetectors();
    
        if ( PainLevel < PainThreshold )
          Voltage += 10;
        else
          Voltage += 1;
      }
    }
    

    Disclaimer: I will not be held responsible for any injury (or death) caused by usage of this code!

Children