473,770 Members | 2,143 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using Script to Drive Software Operation

This is a bit of a vague question, but I am just starting on this, and
wonder if anyone has ideas of where to start.

I have a program that controls some external equipment. It sends messages in
various flavours to cause the equipment to turn signals on and off, and
change voltages and such like.

Attached to this external equipment, is another piece of equipment that
responds to these changes in signals and voltages.

What I need to do is automate the way in which my program turns these
signals on and off, and changes voltages in the external equipment. I also
need to do it in such a way that it is configurable without changes to
source code.

My first thoughts are towards some kind of script that I interpret and use
to determine what actions my program must take. The script would need to be
flexible enough to allow me to specify what signals are controlled, in real
time, and what voltages are set and over what time period they should
change. It would also need to allow me to monitor status from the external
equipment in a given time frame to determine if actions had been successful
or not.

That is as far as I have got. Is this type of application familiar to
anyone, and does anyone have any suggestions regarding how to go about this?
Some examples of scripts that make this type of operation possible?

As I say, it is a bit vague at this stage, and this is probably not the very
best place to be asking, so if anyone knows where I would be better asking
that would be helpful too. Otherwise, any pointers welcome.

TIA

Charles
Jul 21 '05
12 1619
Hi Hal

We (the company I am working with) are the manufacturers of the external
equipment, so we have our own comms protocol for this. The equipment is
connected via a simple serial/USB link.
you said the equip does all the voltage changing - depending on the signal
you send to it - and that equipment talks to (controls) other equipment -
It's actually the other way around: we send commands to the external
equipment, and it changes signals and voltages to the devices on the end.

The actual mode of communication is not so much the problem as we already
have that in place. It is the automation of the control that we are looking
at now, and from earlier suggestions it looks like the Command pattern is a
good avenue.

Do you have any experience of that pattern (or others) in this type of
application?
Sounds like a distributed control system (DCS) - common to PLCs and some
Instrumentation
You are on the right lines; it is actually ATE (automatic test equipment)
for use in a production test environment.

Charles
"Hal Rosser" <hm******@bells outh.net> wrote in message
news:xx******** ********@bignew s2.bellsouth.ne t... Charles,
What methods of communication is available to the equipment ? TCP/IP?
Does the equipment connect through a hub to a lan?
The mfg should provide some info - like "if you send "X" signal - the
equipment wil do 'so-n-so' does the equip have a network card? can you
telnet to it?
This sounds interesting. but mo info

you said the equip does all the voltage changing - depending on the signal
you send to it - and that equipment talks to (controls) other equipment -
Sounds like a distributed control system (DCS) - common to PLCs and some
Instrumentation
Fisher Controls, Allen Bradley, Modicon are a few of the players


"Charles Law" <bl***@nowhere. com> wrote in message
news:uB******** ******@TK2MSFTN GP10.phx.gbl...
This is a bit of a vague question, but I am just starting on this, and
wonder if anyone has ideas of where to start.

I have a program that controls some external equipment. It sends messages
in
various flavours to cause the equipment to turn signals on and off, and
change voltages and such like.

Attached to this external equipment, is another piece of equipment that
responds to these changes in signals and voltages.

What I need to do is automate the way in which my program turns these
signals on and off, and changes voltages in the external equipment. I

also need to do it in such a way that it is configurable without changes to
source code.

My first thoughts are towards some kind of script that I interpret and use to determine what actions my program must take. The script would need to

be
flexible enough to allow me to specify what signals are controlled, in

real
time, and what voltages are set and over what time period they should
change. It would also need to allow me to monitor status from the external equipment in a given time frame to determine if actions had been

successful
or not.

That is as far as I have got. Is this type of application familiar to
anyone, and does anyone have any suggestions regarding how to go about

this?
Some examples of scripts that make this type of operation possible?

As I say, it is a bit vague at this stage, and this is probably not the

very
best place to be asking, so if anyone knows where I would be better asking that would be helpful too. Otherwise, any pointers welcome.

TIA

Charles

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.732 / Virus Database: 486 - Release Date: 7/29/2004

Jul 21 '05 #11
"Charles Law" <bl***@nowhere. com> wrote in message news:<#$******* *******@TK2MSFT NGP12.phx.gbl>. ..
Hi Hal

We (the company I am working with) are the manufacturers of the external
equipment, so we have our own comms protocol for this. The equipment is
connected via a simple serial/USB link.
you said the equip does all the voltage changing - depending on the signal
you send to it - and that equipment talks to (controls) other equipment -


It's actually the other way around: we send commands to the external
equipment, and it changes signals and voltages to the devices on the end.

The actual mode of communication is not so much the problem as we already
have that in place. It is the automation of the control that we are looking
at now, and from earlier suggestions it looks like the Command pattern is a
good avenue.

Do you have any experience of that pattern (or others) in this type of
application?
Sounds like a distributed control system (DCS) - common to PLCs and some
Instrumentation


You are on the right lines; it is actually ATE (automatic test equipment)
for use in a production test environment.

Charles
"Hal Rosser" <hm******@bells outh.net> wrote in message
news:xx******** ********@bignew s2.bellsouth.ne t...
Charles,
What methods of communication is available to the equipment ? TCP/IP?
Does the equipment connect through a hub to a lan?
The mfg should provide some info - like "if you send "X" signal - the
equipment wil do 'so-n-so' does the equip have a network card? can you
telnet to it?
This sounds interesting. but mo info

you said the equip does all the voltage changing - depending on the signal
you send to it - and that equipment talks to (controls) other equipment -
Sounds like a distributed control system (DCS) - common to PLCs and some
Instrumentation
Fisher Controls, Allen Bradley, Modicon are a few of the players


"Charles Law" <bl***@nowhere. com> wrote in message
news:uB******** ******@TK2MSFTN GP10.phx.gbl...
This is a bit of a vague question, but I am just starting on this, and
wonder if anyone has ideas of where to start.

I have a program that controls some external equipment. It sends messages
in various flavours to cause the equipment to turn signals on and off, and
change voltages and such like.

Attached to this external equipment, is another piece of equipment that
responds to these changes in signals and voltages.

What I need to do is automate the way in which my program turns these
signals on and off, and changes voltages in the external equipment. I also need to do it in such a way that it is configurable without changes to
source code.

My first thoughts are towards some kind of script that I interpret and use to determine what actions my program must take. The script would need to be flexible enough to allow me to specify what signals are controlled, in real time, and what voltages are set and over what time period they should
change. It would also need to allow me to monitor status from the external equipment in a given time frame to determine if actions had been successful or not.

That is as far as I have got. Is this type of application familiar to
anyone, and does anyone have any suggestions regarding how to go about this? Some examples of scripts that make this type of operation possible?

As I say, it is a bit vague at this stage, and this is probably not the very best place to be asking, so if anyone knows where I would be better asking that would be helpful too. Otherwise, any pointers welcome.

TIA

Charles

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.732 / Virus Database: 486 - Release Date: 7/29/2004


Anything you can do manually, you can automate with AutoIt

http://www.autoitscript.com/autoit3/

The forum is magnificent for help...

Lar.
Jul 21 '05 #12
Hi Lar

Thanks for the link. However, it is not the UI that I need to automate, but
objects at a much more lower level. The user will see progress indications
on the screen of the schedule that has been automated, and be able to stop
and start it, repeat bits of it and such-like.

Charles
"larrydaloo za" <la**********@y ahoo.com> wrote in message
news:41******** *************** ***@posting.goo gle.com...
"Charles Law" <bl***@nowhere. com> wrote in message

news:<#$******* *******@TK2MSFT NGP12.phx.gbl>. ..
Hi Hal

We (the company I am working with) are the manufacturers of the external
equipment, so we have our own comms protocol for this. The equipment is
connected via a simple serial/USB link.
you said the equip does all the voltage changing - depending on the signal you send to it - and that equipment talks to (controls) other equipment -

It's actually the other way around: we send commands to the external
equipment, and it changes signals and voltages to the devices on the end.
The actual mode of communication is not so much the problem as we already have that in place. It is the automation of the control that we are looking at now, and from earlier suggestions it looks like the Command pattern is a good avenue.

Do you have any experience of that pattern (or others) in this type of
application?
Sounds like a distributed control system (DCS) - common to PLCs and
some Instrumentation


You are on the right lines; it is actually ATE (automatic test

equipment) for use in a production test environment.

Charles
"Hal Rosser" <hm******@bells outh.net> wrote in message
news:xx******** ********@bignew s2.bellsouth.ne t...
Charles,
What methods of communication is available to the equipment ? TCP/IP? Does the equipment connect through a hub to a lan?
The mfg should provide some info - like "if you send "X" signal - the
equipment wil do 'so-n-so' does the equip have a network card? can you
telnet to it?
This sounds interesting. but mo info

you said the equip does all the voltage changing - depending on the signal you send to it - and that equipment talks to (controls) other equipment - Sounds like a distributed control system (DCS) - common to PLCs and some Instrumentation
Fisher Controls, Allen Bradley, Modicon are a few of the players


"Charles Law" <bl***@nowhere. com> wrote in message
news:uB******** ******@TK2MSFTN GP10.phx.gbl...
> This is a bit of a vague question, but I am just starting on this, and > wonder if anyone has ideas of where to start.
>
> I have a program that controls some external equipment. It sends

messages
in
> various flavours to cause the equipment to turn signals on and off, and > change voltages and such like.
>
> Attached to this external equipment, is another piece of equipment that > responds to these changes in signals and voltages.
>
> What I need to do is automate the way in which my program turns these > signals on and off, and changes voltages in the external equipment. I
also
> need to do it in such a way that it is configurable without changes
to > source code.
>
> My first thoughts are towards some kind of script that I interpret and use
> to determine what actions my program must take. The script would
need to be
> flexible enough to allow me to specify what signals are controlled,
in real
> time, and what voltages are set and over what time period they
should > change. It would also need to allow me to monitor status from the

external
> equipment in a given time frame to determine if actions had been

successful
> or not.
>
> That is as far as I have got. Is this type of application familiar to > anyone, and does anyone have any suggestions regarding how to go

about this?
> Some examples of scripts that make this type of operation possible?
>
> As I say, it is a bit vague at this stage, and this is probably not
the very
> best place to be asking, so if anyone knows where I would be better

asking
> that would be helpful too. Otherwise, any pointers welcome.
>
> TIA
>
> Charles
>
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.732 / Virus Database: 486 - Release Date: 7/29/2004


Anything you can do manually, you can automate with AutoIt

http://www.autoitscript.com/autoit3/

The forum is magnificent for help...

Lar.

Jul 21 '05 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
1108
by: Charles Law | last post by:
This is a bit of a vague question, but I am just starting on this, and wonder if anyone has ideas of where to start. I have a program that controls some external equipment. It sends messages in various flavours to cause the equipment to turn signals on and off, and change voltages and such like. Attached to this external equipment, is another piece of equipment that responds to these changes in signals and voltages.
2
5567
by: moodyman13 | last post by:
Hi all, Hoping someone can help me. I'm using WSH to automatically map a network drive when someone opens a webpage. Below are the codes <HTML> <Body> <script language="VBScript" type="text/vbscript"> Option Explicit On Error Resume Next
0
9619
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10260
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9910
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8933
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7460
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6712
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.