Raptor
to more understand what the first post is doing here is a few screen shots they do not show the complet code blocks however;
the First shot shows the creation of a signature file, this code only gets visited IF no signature file is found or if it is corrupted. this code will write a new signature but it will fill it with default settings, the two marks in front of the word HOLD: are meaningful. These settings after the file is created contains the last setting of the system, and when you fire up the system the old settings are reinstalled.
the second shot shows the creation of the devices which get visited only once.
the third shot shows the code block to set a device. there are 6 different types of devices. a device is basicly a switch nothing more.
There are other controls (not shown) this is the code lines that creates them;
1 $_CreateDisPatch( $_ControlID, Name );
this is an order control to tell the Executor to place an order of a type;
2 $_CreatePort( $_ControlID, Name );
A port is a two way control. a program must request data and the program that responds with the data requested. no out put is done till a request is made.
3 $_CreateFeed( $_ControlID, Name );
a feed is a control that sends out data in a continual stream that can be any type data. any program that read it must know what it contains. This is a one way communication a program can not request any data
4 $_CreateStream( $_ControlID, "Error Handler", Empty, Clear );
a stream is a communications port that doesnot dispatch information all the time it only send information on an event. Any program can stream out data to this control, there must be a program that stands by and reads this control and reponds to it. Other events can include communication, news evens, time events, market events etc...
I use screen shots a lot as my english is not good and it takes me a long time to try to explain anything in writing,
Keit
to more understand what the first post is doing here is a few screen shots they do not show the complet code blocks however;
the First shot shows the creation of a signature file, this code only gets visited IF no signature file is found or if it is corrupted. this code will write a new signature but it will fill it with default settings, the two marks in front of the word HOLD: are meaningful. These settings after the file is created contains the last setting of the system, and when you fire up the system the old settings are reinstalled.
the second shot shows the creation of the devices which get visited only once.
the third shot shows the code block to set a device. there are 6 different types of devices. a device is basicly a switch nothing more.
There are other controls (not shown) this is the code lines that creates them;
1 $_CreateDisPatch( $_ControlID, Name );
this is an order control to tell the Executor to place an order of a type;
2 $_CreatePort( $_ControlID, Name );
A port is a two way control. a program must request data and the program that responds with the data requested. no out put is done till a request is made.
3 $_CreateFeed( $_ControlID, Name );
a feed is a control that sends out data in a continual stream that can be any type data. any program that read it must know what it contains. This is a one way communication a program can not request any data
4 $_CreateStream( $_ControlID, "Error Handler", Empty, Clear );
a stream is a communications port that doesnot dispatch information all the time it only send information on an event. Any program can stream out data to this control, there must be a program that stands by and reads this control and reponds to it. Other events can include communication, news evens, time events, market events etc...
I use screen shots a lot as my english is not good and it takes me a long time to try to explain anything in writing,
Keit
DislikedOK, maybe I misunderstood what you were describing, I understand the use of a GlobalVariable for a mutex . . . I guess the other is just to prevent two EAs using the same root number for it's Object names, etc ?Ignored
Trader Keit ... Methods Of A Dirt Road Mad Man....