Jump to content

Sayen

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by Sayen

  1. Im facing the same problem now. Did any one get the OPC Client to work?
  2. Hi GregThompson Did you find something out? I am searching the same thing.
  3. Hi I am trying Coroutine, but i dont understand it realy. Could someone help me a little bit? I am just trying to start two timers separated by buttons: #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <Coroutine.au3> $Form1 = GUICreate("Form1", 156, 88, -1, -1) $Input1 = GUICtrlCreateInput("0", 24, 16, 25, 21, BitOR($ES_AUTOHSCROLL,$ES_READONLY)) $Input2 = GUICtrlCreateInput("0", 24, 48, 25, 21, BitOR($ES_AUTOHSCROLL,$ES_READONLY)) $Button1 = GUICtrlCreateButton("Button1", 72, 14, 75, 25, 0) $Button2 = GUICtrlCreateButton("Button2", 72, 46, 75, 25, 0) GUISetState(@SW_SHOW) Global $pid1, $pid2 $thread1=_CoCreate('Func timer1()|For $i=1 To 10|Return $i|Sleep(1000)|Next|EndFunc') $thread2=_CoCreate('Func timer2()|For $i=1 To 10|Return $i|Sleep(1000)|Next|EndFunc') While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $Button1 $pid1=_CoStart($thread1) Case $Button2 $pid1=_CoStart($thread2) Case $GUI_EVENT_CLOSE _CoCleanup() Exit EndSwitch $status1=_CoStatus($pid1) If $status1 <> '' Then GUICtrlSetData($Input1, $status1) If $status2 <> '' Then GUICtrlSetData($Input2, $status2) WEnd
  4. Hi Crash I am trying too to connect to OPC but it does not work. Could you help me a little? The Connection to the OPC Server works (thaks to BugFix from the German Forum), but i cant get any Groups or Items...
  5. Sorry for getting such an old Post to live, but there is no other. I want to connect to an OPC Server to. Is there anyone that allready did something like that?
×
×
  • Create New...