ekanderson Posted September 20, 2009 Share Posted September 20, 2009 DFExp 5.83a. Haven't been able to get Page component Button/toggle or variable text/toggle to work to toggle between value of 1 and NaN(). Want to be able to disable/show status of LJ U3 channels 0 thru 15 from a page component(s). 1 and NaN() chosen so that simple multiplication of sensor_value times active_sensor[channel_no], sets the data to invalid (i.e., NaN()) if sensor is inactive. Currently have to go to command window do "active_sensor[xx] =Nan()" or 1 as the case may be. Am I totally missing something???? ek Link to comment Share on other sites More sharing options...
AzeoTech Posted September 21, 2009 Share Posted September 21, 2009 I'm assuming you are using the toggle between action. This action only works with two scalars, and Nan() is actually a function. What you need to use instead is a quick sequence action. Let's say your variable is x: if (x == 1) x = NaN() else x = 1 endif Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.