VBRatioClient - a simple Visual Basic client

Top  Previous  Next

VBRatioClient is an extremely simple Visual Basic client that implements a ratio schedule. You can set the ratio requirement. It also implements a 1-minute timer; when this timer expires, the program ends and stores its data in a comma-delimited text file.

 

I hope it will be easy for you to develop into a task of your own, should you decide that Visual Basic is the language you want to use.

 

WhiskerVBRatioClientDemo

 

I suggest you make a copy of the whole project and explore the code – it's quite short. You'll probably find it useful to keep those parts of the code that setup the Server etc., but you'll want to change the functions that deal with the task itself (particularly LineClaims, StartRatioSchedule, Whisker_Event, StopTask and TaskFinished). The other functions are largely cosmetic.

 

Note the use of Select Case …. End Select in Whisker_Event. This is a very useful way of choosing which piece of code to run for each Event. Those who are used to Arachnid might find it easiest to label the event with the name of a procedure, then call that procedure from within the Select Case block.

 

Technical note: source

TechNote_MagnifyingGlass

This example used Visual Basic 6.0. It should work with any versions of Visual Basic above 4.0, although it has not been tested.