Jump to content
  • 0

Does DASYLab have a IF Then Else or Case Statement?


Question

Posted

I explored the Action step but it doesn't do what I want.  Basically I want to use a select formula if a button is depressed or not.  I want to have two data channels come in and one channel go out.

1 answer to this question

Recommended Posts

  • 0
Posted

Use a formula module with three inputs and one output. Connect the switch to 0 and the two data channels to 1 & 2.

For the formula, use the following:

( ( In(0) > 2.5 ) * IN(1) ) + ( ( In(0) < 2.5 ) * In(2) )

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...