Sha256: 45b3279b246cf475341be7dbac8da983ec393badd68c24ebde43d671dc46a65b

Contents?: true

Size: 807 Bytes

Versions: 14

Compression:

Stored size: 807 Bytes

Contents

temp = 0
screen = local_screen('Title') do
'
  SCREEN AUTO AUTO 0.1 FIXED

  VERTICAL
    TITLE "Local Variable and Target Display"

    VERTICALBOX
      LABELVALUE LOCAL LOCAL temp
      LABELVALUE INST ADCS POSX
      LABELVALUE INST ADCS TIMEFORMATTED WITH_UNITS 30
    END
  END
'
end

disable_instrumentation do
  5000000.times do
    temp += 1
  end
end

screen.close

temp2 = 5000000
screen_def =
'
  SCREEN AUTO AUTO 0.1 FIXED
  STAY_ON_TOP

  VERTICAL
    TITLE "Local Variable and Target Display #2"

    VERTICALBOX
      LABELVALUE LOCAL LOCAL temp2
      LABELVALUE INST ADCS POSY
      LABELVALUE INST ADCS TIMEFORMATTED WITH_UNITS 30
    END
  END
'

local_screen('Title2', screen_def, 100, 200)

disable_instrumentation do
  5000000.times do
    temp2 -= 1
  end
end

close_local_screens()

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
cosmos-4.5.2-java demo/procedures/local_screen_example.rb
cosmos-4.5.2 demo/procedures/local_screen_example.rb
cosmos-4.5.1-java demo/procedures/local_screen_example.rb
cosmos-4.5.1 demo/procedures/local_screen_example.rb
cosmos-4.5.0-java demo/procedures/local_screen_example.rb
cosmos-4.5.0 demo/procedures/local_screen_example.rb
cosmos-4.4.2-java demo/procedures/local_screen_example.rb
cosmos-4.4.2 demo/procedures/local_screen_example.rb
cosmos-4.4.1-java demo/procedures/local_screen_example.rb
cosmos-4.4.1 demo/procedures/local_screen_example.rb
cosmos-4.4.0-java demo/procedures/local_screen_example.rb
cosmos-4.4.0 demo/procedures/local_screen_example.rb
cosmos-4.3.0-java demo/procedures/local_screen_example.rb
cosmos-4.3.0 demo/procedures/local_screen_example.rb