test channel for "invalid state

Discussion and support for i2 Standard and i2 Pro applications

test channel for "invalid state

Postby momentaryracing on Mon May 29, 2017 5:43 am

Channel A sets value to invalid() on a condition

Channel B needs to set itself to a value IF A is invalid

Code: Select all
choose('B' == invalid(), somevalue, ...)


does not work (understandably)

Is there another way?

I2Pro, analysis only
momentaryracing
 
Posts: 4
Joined: Tue Sep 20, 2016 2:07 pm

Re: test channel for "invalid state

Postby David Ferguson on Mon May 29, 2017 8:29 am

How about breaking the expression that makes Channel A return invalid() into it's own math channel?

Then you can use it both in A to make some of it's data invalid, and you can use the inverse case (using choose) to determine the value for Channel B.
David Ferguson
Veracity Racing Data
David Ferguson
Pro User
 
Posts: 1410
Joined: Fri Nov 07, 2008 2:45 am
Location: Paso Robles, California


Return to i2 Data Analysis Software

Who is online

Users browsing this forum: No registered users and 2 guests