Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. lgunseor

    mathcad programming for threshold and duration

    Want to thank everyone for their feedback, got me going in the right direction. Attached file and data now work the way I want. Once the input signal crosses the threshold then the counter starts. If the counter reaches the value of duration and the input is still above threshold then the...
  2. lgunseor

    mathcad programming for threshold and duration

    Greg, Thanks for the PNG file, however when typing it in exactly as you have it I get an error. Can you post the actual Mathcad file, and what version of Mathchad are you using Larry
  3. lgunseor

    mathcad programming for threshold and duration

    IRstuff, I understand how to do this in conventional programming the problem I'm having is putting together the proper programming steps in Mathcad. I'm new to programming to Mathcad and trying to determine the right sequence/program structure to get the results I'm looking for.
  4. lgunseor

    mathcad programming for threshold and duration

    Greg, Didn't think of that but your right that would be a round about way to get the results I'm looking for. Larry
  5. lgunseor

    mathcad programming for threshold and duration

    Need some help, pulling my hair out trying to figure out how to program this in Mathcad. I'm reading data from a data file and plotting that on a graph. From the data I want to determine when the amplitude of the incoming data goes above a threshold for a certain duration. If both the...
  6. lgunseor

    Mathcad WHILE loop inside an IF statement

    Occupant, Thank you very much this is exactly what I was trying to do. Plotted out the 1 and 0 states against the waveform and you can see that it is triggering on 5 on the rising edge and 2 on the falling edge (see attached plot). Thanks...
  7. lgunseor

    Mathcad WHILE loop inside an IF statement

    IRstuff, Understand state machines and doing this in standard software programming is straight forward, I'm trying to understand how this needs to be structured in Mathcad 15 so Mathcad understands the equation and can process it. If you have any suggestions on how to do this in Mathcad 15 I...
  8. lgunseor

    Mathcad WHILE loop inside an IF statement

    StructSU10, I'm looking for a 1's and 0's graph (see attached). I can get this with the single if statement shown above the graphs but it is switching to a 1 at 5 (rising edge of pulse) and a 0 at 5 (falling edge of pulse). What I'm trying to do is switch to a 1 at 5 (rising edge of pulse)...
  9. lgunseor

    Mathcad WHILE loop inside an IF statement

    StructSU10, When the value is between 5 and 2 I want to output a 1 to a graph and when it's not between 5 and 2 I want to output a 0 to a graph. The issue is on the pulse I am triggering this off of I don't want to trigger the output to a 1 until the rising edge reaches 5 and don't want to...
  10. lgunseor

    Mathcad WHILE loop inside an IF statement

    Having an problem with a Mathcad WHILE loop (using Mathcad 15). I'm reading data in from a file, the data is from an accelerometer. I want to set up an IF statement to set a variable to 1 when the rising edge of the signal is greater than 5 g's but I don't want to reset the variable back to 0...

Part and Inventory Search

Back
Top