[[Basic-ex1]]

 objectPage http://www.yama-lab.org/fwb4pi/index.php?Basic-ex2 or http://www.yama-lab.org/fwb4pi/index.php?Basic-ex2
 device yamaRasPiDp9_1 or yamaRasPiDp9_2 start after no write for 10 min.
 command: set readInterval=60000
 command: set execInterval=0
 command: program ex1
 program: ex("service","clear sendBuffer")
 program: s=0
 program: for i=0 to 10
 program:   s=s+i
 program:   ex("service","putSendBuffer "+s)
 program: next i
 program: d=ex("service","getCurrentDate.")
 program: ex("service","putSendBuffer d="+d)
 program: ld=date2l(d)
 program: ex("service","putSendBuffer ld="+ld)
 program: dl=l2date(ld)
 program: ex("service","putSendBuffer dl="+dl)
 program: ex("service","sendResults.")
 command: end ex1
 command: run ex1
 result:
 0
 1
 3
 6
 10
 15
 21
 28
 36
 45
 55
 d=2019/6/27/ 22:38:53
 ld=1561642733000
 dl=2019/06/27/ 22:38:53
 currentDevice="yamaRasPiDp1_1",Date=2019/6/27/ 22:38:53

 d=2019/6/27/ 22:39:52
 ld=1561642792000
 dl=2019/06/27/ 22:39:52
 currentDevice="yamaRasPiDp1_1",Date=2019/6/27/ 22:39:52


トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS