seai/o device

Sep 13, 2011 at 11:05am
please help i am looooooozin sleep over this

I am looking for some software that will count the pulses from a flow meter via a sei/o device (digital in / out ) card .When the count reaches a set amount the software will send a signal to the dio card to trigger a relay that will stay off till that channel is reset…. it also needs to have at least 4 counts running simultaneously i am willing to pay for this software

this is the device is : ic904c from black box network services

read me file :


SIOCMD
Command-line I/O control application
Copyright (c) 2000 Sealevel Systems, Inc.
Written by Michael Ashmore
mikea@sealevel.com

INTRODUCTION:
Siocmd was designed for one purpose: to make it easier to access
SeaI/O devices from the command line. To this end, it incorporates a fairly
comprehensive command-line parser, and makes accessible the majority of the
SeaI/O API.
Siocmd is a Win32 command-line application, and as such is only
available when Windows 95 or higher is actively running. It will not be
available if you have chosen to "Restart Windows in MS-DOS mode" or if you
have booted off a MS-DOS system disk.


INSTALLATION:
Ensure that your SeaI/O device has been properly installed in the
computer. If you chose a minimal install of the SeaI/O driver suite, please
ensure that SeaIO32.dll is available somewhere in your PATH environment
variable.


USAGE:
siocmd a:<Adapter#> f:<Function> [Arg1] [Arg2] [-v] [-g]

a:<Adapter#> Adapter Number
f:<Function> Function Type
Arg1 Argument 1 (see below)
Arg2 Argument 2 (see below)
-v Verbose output
-g Gag all output

The <Adapter#> and <Function> parameters are required. <Adapter#>
refers to the SeaI/O adapter's device number as referenced by the computer
(i.e., SeaIoDev0 is adapter 0).
Functions may be referenced by either their long or their short names.
Further command line data ([Arg1] and [Arg2], respectively) are passed as
arguments to the designated function.

Valid functions are:
--Function Name----------Argument 1-------Argument 2-----------
I[nfo] - -
P[auseForPortChange] - -
R[ead] <Port> -
S[etAdapterState] <SampleInterval> [ModeControlWord]
T[oggleRelay] <RelayNumber> [1|0]
W[rite] <Port> <Data>

Arguments are passed as decimal by default; hex values may be specified
by prepending 0x to the value.
A note on the T[oggleRelay] function: calling it without an arg2 returns
the current state of a given relay; with an arg2 it sets the relay's state
(1=on, 0=off)

Siocmd is somewhat self-documenting. If you enter just "siocmd" with
no switches or options, it will display a quick reference of the available
commands.


EXAMPLES:
To pause (e.g., in a batch file) until an input changes on adapter 0:
c:\>siocmd a:0 f:p

To write the value 0x55 to port 1 on adapter 1:
c:\>siocmd a:1 f:w 1 0x55

To read from port 2 on adapter 0:
c:\>siocmd a:0 f:r 2
*Note: this will also return an errorlevel equal to the decimal value
read from the port in question. Hopefully this may be of some use in
batch files and similar applications.

To set relay #3 on adapter 0 OFF:
c:\>siocmd a:0 f:t 3 0

To check the current state of relay #5 on adapter 0:
c:\>siocmd a:0 f:t 5
*Note: this will return errorlevel 1 if the relay is on, and
errorlevel 0 if the relay is off. This may help in incorporation with
batch files.


COMPILING:
Siocmd was originally compiled under Microsoft Visual C++ 6.0 and
linked to SeaIO32.lib. No cross-platform compilation issues are anticipated.
Sep 13, 2011 at 1:20pm
By counting the pulses do you mean by calling siocmd a0:f:r1 for example?
Sep 13, 2011 at 1:34pm
i have a flow meter that inputs "pulses" (when there is flow ) to the seai/o card ..... if that is what you are asking ..
Sep 13, 2011 at 6:59pm
I might be asking that. In other words, how would siocmd count the pulses, or can the pulses be retrieved by calling siocmd?
Topic archived. No new replies allowed.