NeoValence
Technical User
Hi All,
I'm new to scripting so please excuse the new-b question.
I need to set two modem connections using the users input from a dialog i created using the dlg editor. The problem seems to be variables to make it all happen. This is what i'v come up with so far.
proc main
dlg0()
uuttrm()
;uut setup commands
dlg1()
iprotrm()
;ipro setup commands
endproc
proc dlg0
dialogbox 0 264 97 305 46 2 "Com Port Setup"
radiogroup 1 var
radiobutton 4 2 20 35 19 "Com1"
radiobutton 21 39 20 35 19 "Com2"
radiobutton 22 79 20 35 19 "Com3"
radiobutton 23 117 20 35 19 "Com4"
radiobutton 24 155 21 35 19 "Com5"
radiobutton 25 193 21 35 19 "Com6"
radiobutton 27 231 21 35 19 "Com7"
radiobutton 28 268 21 35 19 "Com8"
endgroup
text 26 0 8 305 11 "Which COM Port is your UUT using?" center
enddialog
endproc
proc dlg1
dialogbox 0 264 97 305 46 2 "Com Port Setup"
radiogroup 1 var
radiobutton 4 2 20 35 19 "Com1"
radiobutton 21 39 20 35 19 "Com2"
radiobutton 22 79 20 35 19 "Com3"
radiobutton 23 117 20 35 19 "Com4"
radiobutton 24 155 21 35 19 "Com5"
radiobutton 25 193 21 35 19 "Com6"
radiobutton 27 231 21 35 19 "Com7"
radiobutton 28 268 21 35 19 "Com8"
endgroup
text 26 0 8 305 11 "Which COM Port is your I-Pro using?" center
enddialog
endproc
proc uuttrm
set modem connection
set port baudrate 115200
endproc
proc iprotrm
set modem connection
set port baudrate 34800
endproc
all input will be greatly appreciated.
Thanks in advace
I'm new to scripting so please excuse the new-b question.
I need to set two modem connections using the users input from a dialog i created using the dlg editor. The problem seems to be variables to make it all happen. This is what i'v come up with so far.
proc main
dlg0()
uuttrm()
;uut setup commands
dlg1()
iprotrm()
;ipro setup commands
endproc
proc dlg0
dialogbox 0 264 97 305 46 2 "Com Port Setup"
radiogroup 1 var
radiobutton 4 2 20 35 19 "Com1"
radiobutton 21 39 20 35 19 "Com2"
radiobutton 22 79 20 35 19 "Com3"
radiobutton 23 117 20 35 19 "Com4"
radiobutton 24 155 21 35 19 "Com5"
radiobutton 25 193 21 35 19 "Com6"
radiobutton 27 231 21 35 19 "Com7"
radiobutton 28 268 21 35 19 "Com8"
endgroup
text 26 0 8 305 11 "Which COM Port is your UUT using?" center
enddialog
endproc
proc dlg1
dialogbox 0 264 97 305 46 2 "Com Port Setup"
radiogroup 1 var
radiobutton 4 2 20 35 19 "Com1"
radiobutton 21 39 20 35 19 "Com2"
radiobutton 22 79 20 35 19 "Com3"
radiobutton 23 117 20 35 19 "Com4"
radiobutton 24 155 21 35 19 "Com5"
radiobutton 25 193 21 35 19 "Com6"
radiobutton 27 231 21 35 19 "Com7"
radiobutton 28 268 21 35 19 "Com8"
endgroup
text 26 0 8 305 11 "Which COM Port is your I-Pro using?" center
enddialog
endproc
proc uuttrm
set modem connection
set port baudrate 115200
endproc
proc iprotrm
set modem connection
set port baudrate 34800
endproc
all input will be greatly appreciated.
Thanks in advace