{ From user Drice, Model Output_and_input_col at 2-Sep-2010 11:28:56 AM } Softwareversion 4.2.3 { System Variables with non-default values: } Usetable := 0 Typechecking := 1 Checking := 1 Saveoptions := 2 Savevalues := 0 {!40000|Att_contlinestyle Graph_primary_valdim: 1} Askattribute Check,Variable,Yes Model Output_and_input_col Title: Output and input columns Description: Demonstrates the display of computed data in a column along side a column of inputs. Author: Dale Date: Thu, Sep 02, 2010 11:01 AM Saveauthor: Drice Savedate: Thu, Sep 02, 2010 11:28 AM Defaultsize: 48,24 Diagstate: 2,114,72,700,328,17 Fontstyle: Arial, 15 Fileinfo: 0,Model Output_and_input_col,2,2,0,0,W:\TestModels\Output and input columns.ana Button Edit1 Title: Edit Nodelocation: 176,128,1 Nodesize: 48,13 Script: (The_Table := Make_Populated_Row(Computed_output, The_Table[Display_Column='Binary Input']) )~ Open Definition The_Table Formnode Scale_input1 Title: Scale Input Definition: 0 Nodelocation: 132,85,1 Nodesize: 100,13 Nodeinfo: 1,0,0,1,0,0,0,72,0,1 Original: Scale_input Module Details Title: Details Author: Dale Date: Thu, Sep 02, 2010 11:16 AM Defaultsize: 48,24 Nodelocation: 336,96,1 Nodesize: 48,24 Diagstate: 2,-3,0,550,300,17 Index Data_index Title: Data Index Definition: [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100] Nodelocation: 200,48,1 Nodesize: 48,24 {!40000|Att_previndexvalue: [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100]} Index Display_column Title: Display Column Definition: ['Output Data','Binary Input'] Nodelocation: 312,48,1 Nodesize: 48,24 {!40000|Att_previndexvalue: ['Output Data','Binary Input']} Variable Computed_output Title: Computed output Definition: random(over:data_index) * scale_input Nodelocation: 200,120,1 Nodesize: 48,24 Valuestate: 2,222,392,332,333,0,MIDM Variable The_table Title: The Table Definition: Table(Data_index,Display_column)(~ 77.2501847577515,Checkbox(1),~ 62.2521646876131,Checkbox(0),~ 63.58810672284482,Checkbox(0),~ 28.27898945905221,Checkbox(0),~ 97.34339745032759,Checkbox(1),~ 74.83607596896405,Checkbox(0),~ 3,Checkbox(0),~ 84.0105229918894,Checkbox(0),~ 11.07307891690781,Checkbox(0),~ 73.92881037896909,Checkbox(0),~ 91.97416290406797,Checkbox(0),~ 92.96321136875227,Checkbox(0),~ 48.8764716539888,Checkbox(0),~ 5.653894836853209,Checkbox(0),~ 93.75418322801319,Checkbox(0),~ 55.62311002780828,Checkbox(0),~ 20.47750434534508,Checkbox(0),~ 42.55751321770135,Checkbox(0),~ 27.29401964102593,Checkbox(1),~ 71.51603933354656,Checkbox(0),~ 5.832011368978774,Checkbox(0),~ 59.25954127090962,Checkbox(0),~ 63.47199836209045,Checkbox(0),~ 84.97583829051621,Checkbox(0),~ 41.41553221476056,Checkbox(0),~ 31.77168746607923,Checkbox(0),~ 59.96605384674205,Checkbox(1),~ 35.67282146200203,Checkbox(0),~ 7.466691625056179,Checkbox(0),~ 26.6218688784269,Checkbox(0),~ 79.75124239351193,Checkbox(0),~ 15.47560500841383,Checkbox(0),~ 77.22061158447555,Checkbox(0),~ 90.3423262631252,Checkbox(0),~ 8.615078426252621,Checkbox(0),~ 48.85655482292946,Checkbox(0),~ 0.6102373737889516,Checkbox(0),~ 52.68420697873654,Checkbox(0),~ 56.12597060768212,Checkbox(0),~ 25.49337641126168,Checkbox(0),~ 26.11690897546565,Checkbox(0),~ 20.07520142433942,Checkbox(0),~ 37.18800331334956,Checkbox(0),~ 84.23735646961133,Checkbox(0),~ 63.01156860637087,Checkbox(0),~ 9.110311868186253,Checkbox(0),~ 11.82739703209484,Checkbox(0),~ 1.849933480774022,Checkbox(0),~ 59.66285051901958,Checkbox(0),~ 13.972182833111,Checkbox(0),~ 18.3523812696116,Checkbox(0),~ 58.95499337695306,Checkbox(0),~ 50.60449244855181,Checkbox(0),~ 51.76342215005468,Checkbox(0),~ 45.50999617367517,Checkbox(0),~ 40.13190471340525,Checkbox(0),~ 33.69405460064022,Checkbox(0),~ 16.96519141922015,Checkbox(0),~ 60.92329211296666,Checkbox(0),~ 79.77054263081892,Checkbox(0),~ 79.88915065112019,Checkbox(0),~ 91.87579990405394,Checkbox(0),~ 51.948166085383,Checkbox(0),~ 12.50569095858638,Checkbox(0),~ 0.7045828102643521,Checkbox(0),~ 49.50006571621638,Checkbox(0),~ 70.24651484109765,Checkbox(0),~ 94.17734407502103,Checkbox(0),~ 35.11014017793822,Checkbox(0),~ 2.476876096556371,Checkbox(0),~ 22.12125320877938,Checkbox(0),~ 93.74185928224672,Checkbox(0),~ 28.07734868818771,Checkbox(0),~ 14.9141487059715,Checkbox(0),~ 58.1749343281495,Checkbox(0),~ 92.40983371222849,Checkbox(0),~ 27.97181213273285,Checkbox(0),~ 20.87933957710831,Checkbox(0),~ 98.06543071664191,Checkbox(0),~ 93.09730126294181,Checkbox(0),~ 82.88510021655127,Checkbox(0),~ 48.22046135655626,Checkbox(0),~ 90.06191841795199,Checkbox(0),~ 15.98659494472044,Checkbox(0),~ 89.56759320132788,Checkbox(0),~ 33.42895672071211,Checkbox(0),~ 82.86562548897491,Checkbox(0),~ 12.54750435917988,Checkbox(0),~ 63.06027245943447,Checkbox(0),~ 15.13544325862799,Checkbox(0),~ 28.737236818642,Checkbox(0),~ 0.7012359163263979,Checkbox(0),~ 48.95564551882243,Checkbox(0),~ 15.90576473619126,Checkbox(0),~ 39.39104549139321,Checkbox(0),~ 71.44373568307782,Checkbox(0),~ 18.1309077549404,Checkbox(0),~ 11.25888818793878,Checkbox(0),~ 41.2063128497481,Checkbox(0),~ 32.4335672750294,Checkbox(0)~ ) Check: if Display_column='Output Data' and Self <> Computed_output ~ then Error("This is an output. You should not change it. The altered value will be ignored.") Nodelocation: 312,120,1 Nodesize: 48,24 Windstate: 2,67,455,617,273 Defnstate: 2,563,68,367,629,0,MIDM Aliases: Formnode The_table1 Reformdef: [Display_column,Data_index] Reformval: [Data_index,Display_column] {!40000|Tablecelldefault: table_default_row} Constant Checkbox_on Title: Checkbox on Definition: Checkbox(1) Nodelocation: 472,48,1 Nodesize: 48,24 Constant Checkbox_off Title: Checkbox off Definition: checkbox(0) Nodelocation: 576,48,1 Nodesize: 48,24 Function Make_checkbox(bState : Boolean) Title: Make Checkbox Definition: if bState then (fixeddef of Checkbox_on) else (fixeddef of Checkbox_off) Nodelocation: 472,112,1 Nodesize: 48,24 Paramnames: bState Variable Table_default_row Title: Table default row Definition: Table(Display_Column)(0,checkbox(0)) Nodelocation: 200,184,1 Nodesize: 48,24 Formnode The_table1 Title: The Table Definition: 0 Nodelocation: 144,237,1 Nodesize: 96,13 Nodeinfo: 1,0,0,1,0,0,0,72,0,1 Original: The_table Function Make_populated_row( outputData, BinaryInput ) Title: Make Populated Row Definition: Table(Display_column)( outputData, Make_Checkbox(BinaryInput)) Nodelocation: 600,112,1 Nodesize: 60,24 Windstate: 2,121,566,476,224 Paramnames: outputData,BinaryInput Variable Scale_input Title: Scale Input Definition: 99 Nodelocation: 96,120,1 Nodesize: 48,24 Aliases: Formnode Scale_input1 Close Details Text Te1 Description: The Table: Nodelocation: 92,128,-1 Nodesize: 60,12 Close Output_and_input_col