Knob,
Maybe You or someone else Might steer me in the Best Direction.. This is my Task...
Have to set Up a PC as a Collection Point for Data.. The PC will have a Direct Connect Via Com Port to a Switch, that Output Logs every 15-30-60 Minutes. Each Log has a Different Header. Have that Part Covered. My Question is this.... The Procomm Script MUST Run Constantly 24/7 without Killing the PC Resource Time...
I have the Capture Time Set to 1 Minute Prior to Each Log Message and Capture will end 1 Minute Later.... I think the YIELD Command will do this but will this Keep the PC from Restarting ??? In your Experience ,,, Will YIELD do the Job for this Time Period..
Should the Following work, or would you suggest something different ??
Idea 1:
While $CONNECTION
YIELD
when Target 0 "Collect: 112" Call proc Message1()
.......
when Target 1 "Collect: 110" Call proc Message2()
..........
YIELD
endwhile
Idea 2:
While $CONNECTION
Yield
### If Time is Correct, Capture Turns On #####
waitfor "Collect: 110"
### Wait 1 Minute and Turn Off #######
Collect110()
### If Time is Correct, Capture Turns On #####
waitfor "Collect: 112"
### Wait 1 Minute and Turn Off #######
Collect112()
endwhile
Maybe You or someone else Might steer me in the Best Direction.. This is my Task...
Have to set Up a PC as a Collection Point for Data.. The PC will have a Direct Connect Via Com Port to a Switch, that Output Logs every 15-30-60 Minutes. Each Log has a Different Header. Have that Part Covered. My Question is this.... The Procomm Script MUST Run Constantly 24/7 without Killing the PC Resource Time...
I have the Capture Time Set to 1 Minute Prior to Each Log Message and Capture will end 1 Minute Later.... I think the YIELD Command will do this but will this Keep the PC from Restarting ??? In your Experience ,,, Will YIELD do the Job for this Time Period..
Should the Following work, or would you suggest something different ??
Idea 1:
While $CONNECTION
YIELD
when Target 0 "Collect: 112" Call proc Message1()
.......
when Target 1 "Collect: 110" Call proc Message2()
..........
YIELD
endwhile
Idea 2:
While $CONNECTION
Yield
### If Time is Correct, Capture Turns On #####
waitfor "Collect: 110"
### Wait 1 Minute and Turn Off #######
Collect110()
### If Time is Correct, Capture Turns On #####
waitfor "Collect: 112"
### Wait 1 Minute and Turn Off #######
Collect112()
endwhile