473,322 Members | 1,408 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Data acquisition Card- How to use with C?

Could someone tell me how to go about getting data from a data
acquisition card using C?...<Just general information would also
help........I'm just working on an idea at the moment>.

Jun 20 '07 #1
36 2311
On Jun 20, 7:14 am, Ulysses <stallo...@gmail.comwrote:
Could someone tell me how to go about getting data from a data
acquisition card using C?
No, and yes.

In general, C does not provide device specific support, and no one
here can tell you how to use C to retrieve data from a DAC.

However, should your system and environment be suitably configured,
you may be able to use the C standard fopen()/fread()/fclose()
functions to retrieve data from your device. This, of course, assumes
that your C environment provides an fopen() compatable name for the
DAC, and the underlying system and environment connect that name to
the device. This is possible in some systems (like Unix) where devices
are externalized as files, have filenames, and can be opened and read
like files (i.e. fopen("/dev/ttyS0","r"); )
>...<Just general information would also
help........I'm just working on an idea at the moment>.

Jun 20 '07 #2
Ulysses wrote:
>
Could someone tell me how to go about getting data from a data
acquisition card using C?...<Just general information would also
help........I'm just working on an idea at the moment>.
In standard C you will need to use file operations. You may need
to build a driver.

--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>
<http://www.aaxnet.com/editor/edit043.html>
cbfalconer at maineline dot net
--
Posted via a free Usenet account from http://www.teranews.com

Jun 20 '07 #3
In article <46**************@yahoo.com>, CBFalconer
<cb********@yahoo.comwrites
>Ulysses wrote:
>>
Could someone tell me how to go about getting data from a data
acquisition card using C?...<Just general information would also
help........I'm just working on an idea at the moment>.

In standard C you will need to use file operations. You may need
to build a driver.
This is probably incorrect... it depends in what your card does, what
sort of hardware you are plugging your card into which, if any, OS you
are running on your Hw.

You might do it as suggested with files access or you might do it with
direct register access...

--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ ch***@phaedsys.org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

Jun 20 '07 #4
Chris Hills wrote:
<cb********@yahoo.comwrites
>Ulysses wrote:
>>>
Could someone tell me how to go about getting data from a data
acquisition card using C?...<Just general information would also
help........I'm just working on an idea at the moment>.

In standard C you will need to use file operations. You may need
to build a driver.

This is probably incorrect... it depends in what your card does,
what sort of hardware you are plugging your card into which, if
any, OS you are running on your Hw.

You might do it as suggested with files access or you might do it
with direct register access...
Please demonstrate how to set up legal direct register access in
STANDARD C (no extensions). Quote the enabling lines from N869
please.

--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>
<http://www.aaxnet.com/editor/edit043.html>
cbfalconer at maineline dot net

--
Posted via a free Usenet account from http://www.teranews.com

Jun 21 '07 #5
Chris Hills wrote:
In article <46**************@yahoo.com>, CBFalconer
<cb********@yahoo.comwrites
>>Ulysses wrote:
>>>
Could someone tell me how to go about getting data from a data
acquisition card using C?...<Just general information would also
help........I'm just working on an idea at the moment>.

In standard C you will need to use file operations. You may need
to build a driver.

This is probably incorrect... it depends in what your card does, what
sort of hardware you are plugging your card into which, if any, OS you
are running on your Hw.
Verily.
You might do it as suggested with files access or you might do it with
direct register access...
They're both outside the scope of the [1] standard, though. (File operations
themselves aren't, but connecting a file-like thing to a device is.)

The answer is: it depends on what your local implementation offers. You'll
have to find out.

[1] C90 or C99. Other standards may apply, but I've no idea what they'd
be. Other de-facto conventions may apply; I don't know what those
are either.

--
Chris "flat, not hilly" Dollin

Hewlett-Packard Limited registered no:
registered office: Cain Road, Bracknell, Berks RG12 1HN 690597 England

Jun 21 '07 #6
In article <46***************@yahoo.com>, CBFalconer
<cb********@yahoo.comwrites
>Chris Hills wrote:
><cb********@yahoo.comwrites
>>Ulysses wrote:

Could someone tell me how to go about getting data from a data
acquisition card using C?...<Just general information would also
help........I'm just working on an idea at the moment>.

In standard C you will need to use file operations. You may need
to build a driver.

This is probably incorrect... it depends in what your card does,
what sort of hardware you are plugging your card into which, if
any, OS you are running on your Hw.

You might do it as suggested with files access or you might do it
with direct register access...

Please demonstrate how to set up legal direct register access in
STANDARD C (no extensions). Quote the enabling lines from N869
please.
No. Use extensions. We are talking SW engineering not religious
bigotry.

BTW N869 is NOT standard C Standard C is ISO9899:1999
--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ ch***@phaedsys.org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

Jun 21 '07 #7
Chris Hills wrote:
<cb********@yahoo.comwrites
>Chris Hills wrote:
.... snip ...
>>
>>You might do it as suggested with files access or you might do it
with direct register access...

Please demonstrate how to set up legal direct register access in
STANDARD C (no extensions). Quote the enabling lines from N869
please.

No. Use extensions. We are talking SW engineering not religious
bigotry.
You can get away with that in comp.arch.embedded, but not here.
This newsgroup discusses PORTABLE standard C.

--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>
<http://www.aaxnet.com/editor/edit043.html>
cbfalconer at maineline dot net

--
Posted via a free Usenet account from http://www.teranews.com

Jun 21 '07 #8
In article <46***************@yahoo.com>, CBFalconer
<cb********@yahoo.comwrites
>Chris Hills wrote:
><cb********@yahoo.comwrites
>>Chris Hills wrote:
... snip ...
>>>
You might do it as suggested with files access or you might do it
with direct register access...

Please demonstrate how to set up legal direct register access in
STANDARD C (no extensions). Quote the enabling lines from N869
please.

No. Use extensions. We are talking SW engineering not religious
bigotry.

You can get away with that in comp.arch.embedded, but not here.
This newsgroup discusses PORTABLE standard C.
No we discuss the use of C

If you want to only discuss portable standard C that is up to you... go
find some one else to bug.

--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ ch***@phaedsys.org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

Jun 21 '07 #9
Chris Hills <ch***@phaedsys.orgwrites:
In article <46***************@yahoo.com>, CBFalconer
<cb********@yahoo.comwrites
>>Chris Hills wrote:
>><cb********@yahoo.comwrites
Chris Hills wrote:
... snip ...
>>>>
You might do it as suggested with files access or you might do it
with direct register access...

Please demonstrate how to set up legal direct register access in
STANDARD C (no extensions). Quote the enabling lines from N869
please.

No. Use extensions. We are talking SW engineering not religious
bigotry.

You can get away with that in comp.arch.embedded, but not here.
This newsgroup discusses PORTABLE standard C.

No we discuss the use of C
We discuss C, which is defined by one or more standards.

The existence of extensions is entirely topical, and it's likely (but
by no means certain) that some such extensions will be required to
solve the OP's problem.

The details of those extensions are not topical, and should be
discussed in some system-specific newsgroup. (Those details are
likely to be more closely related to the operating system than to the
language.)

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Jun 22 '07 #10
CBFalconer wrote:
Chris Hills wrote:
><cb********@yahoo.comwrites
>>Chris Hills wrote:
... snip ...
>>>You might do it as suggested with files access or you might do it
with direct register access...
Please demonstrate how to set up legal direct register access in
STANDARD C (no extensions). Quote the enabling lines from N869
please.
No. Use extensions. We are talking SW engineering not religious
bigotry.

You can get away with that in comp.arch.embedded, but not here.
This newsgroup discusses PORTABLE standard C.
That seems to me to restrictive a view. There's no
group charter (the group antedates charters), so topicality
is not subject to hard-and-fast arbitration. But in my
view the subject of the newsgroup is C: its uses, its idioms,
its strengths. Also its abuses, its slang, and its faults.

Portability is a recurring and important theme. IMHO
there is a lot of unportable C that could be made portable
at little if any cost -- but there are also situations where
the Right Answer is to employ a construct that's specific to
one environment (hence non-portable) or to a restricted class
of environments (hence ditto). The Rationale makes explicit
mention of the usefulness of non-portable code, and I don't
see any reason for this newsgroup to shun it.

As I said, a good deal of non-portable code is non-portable
for no good reason, and an important function of c.l.c. is to
point out portable alternatives for gratuitous importabilities.
But when somebody's having trouble with a device I/O register,
the useful response from c.l.c. isn't "not portable, go away"
but "you should probably use `volatile'."

C-as-it-is is a proper topic for the newsgroup. We can
steer towards C-as-it-should-be, but sometimes we must
acknowledge that C-as-it-needs-to-be can be a different animal.

--
Eric Sosman
es*****@acm-dot-org.invalid
Jun 22 '07 #11
Thanks a lot for the help...guys...<though i 'm still pretty
confused.....>....Could anyone suggest a good I/O tutorial on the net
for C....?....>...........And someone said that in UNIX...we can open
devices as files.......so is there a standard list of filenames
assigned to various ports.<must be>...and where can i get it?.......

thanking all again.......

Jun 22 '07 #12
In article <11**********************@o11g2000prd.googlegroups .com>,
Ulysses <st*******@gmail.comwrote:
>And someone said that in UNIX...we can open
devices as files.......so is there a standard list of filenames
assigned to various ports.<must be>...and where can i get it?.......
That's a Unix question, not a C question.

[OT]

The answer is NO, there is no standard list of device names in Unix,
with the exception of a few devices such as /dev/null and /dev/tty
and /dev/tape .

Some particular Unices or Unix-like operating systems have additional
standard device names for their version. But random cards will
seldom have standard names. Unix identifies devices by
device "major" number and device "minor" number, with the "major"
number corresponding to a class of device and the "minor" number
indicating which particular instance it is (and sometimes the
minor device number encodes control information such as tape density.)
There are some "well known" major device numbers specific to
particular operating systems, but when you get into less common
devices types the device numbers become more likely to be arbitrarily
assigned by the system administrator when configuring the kernel.

In short: ask in a newsgroup that specializes in your particular
operating system.
--
I was very young in those days, but I was also rather dim.
-- Christopher Priest
Jun 22 '07 #13
Ulysses wrote:
>
Thanks a lot for the help...guys...<though i 'm still pretty
confused.....>....Could anyone suggest a good I/O tutorial on the
net for C....?....>...........And someone said that in UNIX...we
can open devices as files.......so is there a standard list of
filenames assigned to various ports.<must be>...and where can i
get it?.......
You have failed to quote, making the article even more
incomprehensible. The long strings of periods are meaningless.
Try breaking things up into sentences and paragraphs, capitalizing
the first personal pronoun ('I'), etc.

In *IX the only standard files are stdin, stdout, stderr. Others
have whatever name you assigned to them when you stored them.

Notice my use of sentences and paragraphs, and go and do likewise.

--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>
<http://www.aaxnet.com/editor/edit043.html>
cbfalconer at maineline dot net

--
Posted via a free Usenet account from http://www.teranews.com

Jun 22 '07 #14
In article <46***************@yahoo.com>,
CBFalconer <cb********@maineline.netwrote:
>Ulysses wrote:
>And someone said that in UNIX...we
can open devices as files.......so is there a standard list of
filenames assigned to various ports.
>In *IX the only standard files are stdin, stdout, stderr. Others
have whatever name you assigned to them when you stored them.
stdin, stdout, and stderr are not the names of files: they are the
names of streams. The poster did ask specifically about
"filenames", not about stream names. My earlier reply gave the
requisite "barely; you need to consult the proper newsgroup" answer.
--
Okay, buzzwords only. Two syllables, tops. -- Laurie Anderson
Jun 22 '07 #15
CBFalconer <cb********@yahoo.comwrites:
Ulysses wrote:
>Thanks a lot for the help...guys...<though i 'm still pretty
confused.....>....Could anyone suggest a good I/O tutorial on the
net for C....?....>...........And someone said that in UNIX...we
can open devices as files.......so is there a standard list of
filenames assigned to various ports.<must be>...and where can i
get it?.......
[snip]
>
In *IX the only standard files are stdin, stdout, stderr. Others
have whatever name you assigned to them when you stored them.
Those are C streams, not files.

<OT>
Unix has a plethora of standard files, such as /dev/null, /dev/zero,
/etc/passwd, /etc/motd. That's what Ulysses was asking about. I
don't think he'll find what he's looking for, but the place to ask is
comp.unix.programmer.
</OT>

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Jun 22 '07 #16
Walter Roberson said:
In article <46***************@yahoo.com>,
CBFalconer <cb********@maineline.netwrote:
>>Ulysses wrote:
>>And someone said that in UNIX...we
can open devices as files.......so is there a standard list of
filenames assigned to various ports.
>>In *IX the only standard files are stdin, stdout, stderr. Others
have whatever name you assigned to them when you stored them.

stdin, stdout, and stderr are not the names of files: they are the
names of streams.
Not quite. Strictly speaking, they're expressions of type "pointer to
FILE", that point to FILE objects associated with the standard input,
output, and error streams. So the names of the streams, in this case,
are: "standard input stream", "standard output stream", and "standard
error stream".

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Jun 22 '07 #17
CBFalconer <cb********@yahoo.comwrote:

# Please demonstrate how to set up legal direct register access in
# STANDARD C (no extensions). Quote the enabling lines from N869
# please.

On HP2000 it would be something like
int *registerA = (int*)0;
int *registerB = (int*)1;

PDP-11 Unibus registers would be something like
word *status = (word*)0170000;
byte *data = (byte*)0170002;
byte *command = (byte*)0170003;

You're welcome.

--
SM Ryan http://www.rawbw.com/~wyrmwif/
But I do believe in this.
Jun 24 '07 #18
In article <13*************@corp.supernews.com>,
SM Ryan <wy*****@tango-sierra-oscar-foxtrot-tango.fake.orgwrote:
>CBFalconer <cb********@yahoo.comwrote:
># Please demonstrate how to set up legal direct register access in
# STANDARD C (no extensions). Quote the enabling lines from N869
# please.
>On HP2000 it would be something like
int *registerA = (int*)0;
int *registerB = (int*)1;
That requires the ability to convert from an integral type to a pointer.
C90 allows implementations to define a meaning for this, but the
behaviour is otherwise unspecified, and the integer provided need not
have any rational connection to the device reached. One thing we
can promise in the first line is that registerA will be the NULL
pointer, even if the NULL pointer has an internal bit representation
that has nothing to do with binary 0s.

As registers are being discussed, it would be -highly- advisable
to qualify the declarations as volatile. Which naturally leads us
into the issue that C doesn't promise it will load all of an int in
one go: the only atomic access promised is for sig_atomic_t (which
could be as small as a char.)

>PDP-11 Unibus registers would be something like
word *status = (word*)0170000;
byte *data = (byte*)0170002;
byte *command = (byte*)0170003;
Chuck said "no extensions", but you have used 'word' and 'byte', which
are not standard C entities, except in so far as C -defines- a "byte"
as being the width of a char (even if there is a smaller machine-level
type.)
--
Programming is what happens while you're busy making other plans.
Jun 24 '07 #19
Walter Roberson wrote:
SM Ryan <wy*****@tango-sierra-oscar-foxtrot-tango.fake.orgwrote:
>CBFalconer <cb********@yahoo.comwrote:
>># Please demonstrate how to set up legal direct register access in
# STANDARD C (no extensions). Quote the enabling lines from N869
# please.
>On HP2000 it would be something like
int *registerA = (int*)0;
int *registerB = (int*)1;

That requires the ability to convert from an integral type to a
pointer. C90 allows implementations to define a meaning for this,
but the behaviour is otherwise unspecified, and the integer
provided need not have any rational connection to the device
reached. One thing we can promise in the first line is that
registerA will be the NULL pointer, even if the NULL pointer
has an internal bit representation that has nothing to do with
binary 0s.
You can't even promise that. Register A may not be able to hold a
pointer. My original point was that you can't do that (register
access) in a portable manner.

--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>
<http://www.aaxnet.com/editor/edit043.html>
cbfalconer at maineline dot net

--
Posted via a free Usenet account from http://www.teranews.com

Jun 24 '07 #20
In article <46***************@yahoo.com>,
CBFalconer <cb********@maineline.netwrote:
>Walter Roberson wrote:
>SM Ryan <wy*****@tango-sierra-oscar-foxtrot-tango.fake.orgwrote:
>> int *registerA = (int*)0;
>One thing we can promise in the first line is that
registerA will be the NULL pointer, even if the NULL pointer
has an internal bit representation that has nothing to do with
binary 0s.
>You can't even promise that. Register A may not be able to hold a
pointer.
registerA was declared as int * and if an int * declared variable
cannot hold an int * pointer then the implementation is badly broken.
--
Is there any thing whereof it may be said, See, this is new? It hath
been already of old time, which was before us. -- Ecclesiastes
Jun 24 '07 #21
CBFalconer <cb********@yahoo.comwrote:

# >># Please demonstrate how to set up legal direct register access in
# >># STANDARD C (no extensions). Quote the enabling lines from N869
# >># please.

# You can't even promise that. Register A may not be able to hold a
# pointer. My original point was that you can't do that (register
# access) in a portable manner.

Then make your point correctly. Some systems do provide memory
mapped registers and on such systems it's legal to cast the
address (as an integer) to a pointer. Whether this is portable
is different from whether it is ANSI C.

--
SM Ryan http://www.rawbw.com/~wyrmwif/
What kind of convenience store do you run here?
Jun 25 '07 #22
Walter Roberson wrote:
CBFalconer <cb********@maineline.netwrote:
>Walter Roberson wrote:
>>SM Ryan wrote:
>>> int *registerA = (int*)0;
>>One thing we can promise in the first line is that
registerA will be the NULL pointer, even if the NULL pointer
has an internal bit representation that has nothing to do with
binary 0s.
>You can't even promise that. Register A may not be able to hold a
pointer.

registerA was declared as int * and if an int * declared variable
cannot hold an int * pointer then the implementation is badly
broken.
Well, I was reading what I thought was the intent, i.e. RegisterA
is a machine register. If not, then you are absolutely correct.

--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>
<http://www.aaxnet.com/editor/edit043.html>
cbfalconer at maineline dot net

--
Posted via a free Usenet account from http://www.teranews.com

Jun 25 '07 #23
Sorry for asking.....but how is all this related to my query about
data acquisition in C?.....

Jun 27 '07 #24
Ulysses wrote:
Sorry for asking.....but how is all this related to my query about
data acquisition in C?.....
Because there's no portable access to any data acquisition hardware
in C, we got to off-topically discussing non-portable access to
machine registers. Don't worry, thread drift happens everywhere
(fx:glitch) by the way, are you humans interested in selling your
complete knowledge of /paint/? I have here (fx:rummage) antigravity,
age deferral, and nonlocal communication.

--
Chris "Clifford" Dollin

Hewlett-Packard Limited registered office: Cain Road, Bracknell,
registered no: 690597 England Berks RG12 1HN

Jun 27 '07 #25
Ulysses wrote:
>
Sorry for asking.....but how is all this related to my query about
data acquisition in C?.....
What, if anything, has this to do with what? It is completely
incomprehensible without adequate quoting. See below:

--
If you want to post a followup via groups.google.com, ensure
you quote enough for the article to make sense. Google is only
an interface to Usenet; it's not Usenet itself. Don't assume
your readers can, or ever will, see any previous articles.
More details at: <http://cfaj.freeshell.org/google/>

--
Posted via a free Usenet account from http://www.teranews.com

Jun 27 '07 #26
Chris Dollin wrote:
Ulysses wrote:
>Sorry for asking.....but how is all this related to my query about
data acquisition in C?.....

Because there's no portable access to any data acquisition hardware
in C, we got to off-topically discussing non-portable access to
machine registers. Don't worry, thread drift happens everywhere
(fx:glitch) by the way, are you humans interested in selling your
complete knowledge of /paint/? I have here (fx:rummage) antigravity,
age deferral, and nonlocal communication.
Lemme go out back and check on something ...

--
Eric Sosman
es*****@acm-dot-org.invalid
Jun 27 '07 #27
In article <11**********************@d30g2000prg.googlegroups .com>,
Ulysses <st*******@gmail.comwrites
>Sorry for asking.....but how is all this related to my query about
data acquisition in C?.....

How is what related?
You need to quote the message you are replying to for context.

The problem is you are using a broken googlegroups interface to Usenet.
Get a proper news reader.

Read The Hitchhikers Guide to the Galaxy. If you don't understand the
answers you have been given you asked either the wrong question or did
not understand the question you did ask.

I think I asked right at the very start for you to clarify the target
system hardware, what sort of ad in card you were on about and what it
did. Also the compilers you intended to use.

As everyone else said there is no IO in standard C

--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ ch***@phaedsys.org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

Jun 27 '07 #28
Chris Hills <ch***@phaedsys.orgwrites:
[...]
As everyone else said there is no IO in standard C
There certain is I/O in standard C (see <stdio.h>), just not the kind
of low-level I/O the OP is looking for.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Jun 27 '07 #29
>Could someone tell me how to go about getting data from a data
>acquisition card using C?...<Just general information would also
help........I'm just working on an idea at the moment>.
Ok, so how do you get data from this data acquisition card using *ANYTHING*?
Some suggested answers:

- Connect the USB cable between the card and your computer.
- Plug the card into a PCI slot in your computer.
- Plug the card into the CAC card reader on your keyboard.
- Get the card within range of a wireless access point on your network.
- Connect the RS232 cable between the card and a serial port on your computer.
- Get the card within range of a Bluetooth dongle on your computer.
- The card already contains an Internet-connected satellite radio; just
give it the IP address of your computer.
- Aim the card at an infrared receiver connected to a serial port on your
computer.

None of this is portable in C, but the nature of the connection and
details of your OS will likely determine whether you've got a device
name that looks and smells like a file name, or whether it looks
like another device on a network, or it injects input through the
keyboard (anyone remember the CueCat?), or it's accessed like a
communication link where you send a character at a time.

Jun 28 '07 #30
Chris Hills wrote:
>
.... snip ...
>
As everyone else said there is no IO in standard C
This requires a quibble. Look up "stdio.h" in the C standard. Not
required in dedicated systems only.

--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>
<http://www.aaxnet.com/editor/edit043.html>
cbfalconer at maineline dot net

--
Posted via a free Usenet account from http://www.teranews.com

Jun 28 '07 #31
On Jun 27, 5:55 am, Chris Dollin <chris.dol...@hp.comwrote:
[snip]
Don't worry, thread drift happens everywhere
(fx:glitch) by the way, are you humans interested in selling your
complete knowledge of /paint/? I have here (fx:rummage) antigravity,
age deferral, and nonlocal communication.
<offtopic>
You must have a big back yard
</offtopic>
Jun 28 '07 #32
Lew Pitcher wrote:
On Jun 27, 5:55 am, Chris Dollin <chris.dol...@hp.comwrote:
[snip]
>Don't worry, thread drift happens everywhere
(fx:glitch) by the way, are you humans interested in selling your
complete knowledge of /paint/? I have here (fx:rummage) antigravity,
age deferral, and nonlocal communication.

<offtopic>
You must have a big back yard
</offtopic>
(fx:OT) No -- a big front one.

--
Chris "more of a wilderness, really" Dollin

Hewlett-Packard Limited Cain Road, Bracknell, registered no:
registered office: Berks RG12 1HN 690597 England

Jun 28 '07 #33
In article <46***************@yahoo.com>, CBFalconer
<cb********@yahoo.comwrites
>Chris Hills wrote:
>>
... snip ...
>>
As everyone else said there is no IO in standard C

This requires a quibble. Look up "stdio.h" in the C standard. Not
required in dedicated systems only.
Mutter whinge etc :-)

--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ ch***@phaedsys.org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

Jun 28 '07 #34

Keith Thompson wrote:
Chris Hills <ch***@phaedsys.orgwrites:
[...]
As everyone else said there is no IO in standard C

There certain is I/O in standard C (see <stdio.h>), just not the kind
of low-level I/O the OP is looking for.
What about <iohw.hadded with TR18015 and TR18037?

Jun 29 '07 #35
santosh wrote:
Keith Thompson wrote:
>Chris Hills <ch***@phaedsys.orgwrites:
[...]
>>As everyone else said there is no IO in standard C
There certain is I/O in standard C (see <stdio.h>), just not the kind
of low-level I/O the OP is looking for.

What about <iohw.hadded with TR18015 and TR18037?
I'm not quite certain what a Technical Report on C++ Performance (TR18015) has
to do with the subject matter of comp.lang.c. It certainly has nothing to do
with the C language

OTOH. TR18037 seems to relate to C extensions for embedded systems. /But/,
AFAICT, it hasn't been accepted as a part of the current C standard.

So, either you are talking about a different language (C++) or you are talking
about extensions outside the realm of standard C (Embedded C).

--
Lew Pitcher

Master Codewright & JOAT-in-training | Registered Linux User #112576
http://pitcher.digitalfreehold.ca/ | GPG public key available by request
---------- Slackware - Because I know what I'm doing. ------

Jun 29 '07 #36
Lew Pitcher <lp******@teksavvy.comwrites:
santosh wrote:
>Keith Thompson wrote:
>>Chris Hills <ch***@phaedsys.orgwrites:
[...]
As everyone else said there is no IO in standard C
There certain is I/O in standard C (see <stdio.h>), just not the kind
of low-level I/O the OP is looking for.

What about <iohw.hadded with TR18015 and TR18037?

I'm not quite certain what a Technical Report on C++ Performance
(TR18015) has to do with the subject matter of comp.lang.c. It
certainly has nothing to do with the C language

OTOH. TR18037 seems to relate to C extensions for embedded
systems. /But/, AFAICT, it hasn't been accepted as a part of the
current C standard.

So, either you are talking about a different language (C++) or you
are talking about extensions outside the realm of standard C
(Embedded C).
C++ extensions certainly aren't topical here, but I suggest that
TR18037, since it's issued by the C standard committee, should be
considered topical here in comp.lang.c (as long as the discussion
makes it clear that it's not part of the standard itself).

I'm not familiar with it myself, and ANSI wants
$160 for the PDF, so I'm not likely to be getting a
copy from them, but the latest draft is available at
<http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1169.pdf>.

Other projects are described at
<http://www.open-std.org/JTC1/SC22/WG14/www/projects>.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Jun 29 '07 #37

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

Similar topics

10
by: sffan | last post by:
I am new to database programming and was curious how others solve the problem of storing encrypted in data in db table columns and then subsequently searching for these records. The particular...
2
by: Johann Blake | last post by:
If you are, I'd be interested in knowing what kinds of applications you are working on and the problems, if any, you are confronting. Best Regards, Johann Blake CloserWorlds Mobile Solutions...
4
by: Alexander Arlievsky | last post by:
We are developing an application that involves a PCI driver to a DSP card that generates data at high rates (over 40 interrupts/sec, about 3MB/sec). We use WinDriver for the driver (no kernel...
7
by: jude | last post by:
Hello, We are starting to discuss a new ASP.NET application that will be a data acquisition display application. The data to be displayed will come from multiple sources--database tables, serial...
11
by: mwt | last post by:
Hi. I'm reworking a little app I wrote, in order to separate the data from the UI. As a start, I wanted to create a iron-clad data recepticle that will hold all the important values, and stand up...
9
by: David Harris | last post by:
Ok, so I'm semi-new to .NET, having done everything manually with SQL code back in VB6. So before I program this up completely manually again, I thought I'd ask for better ways to think through...
3
by: Roberto Hernández | last post by:
I try to use the Windows Image Acquisition (WIA) with a sample in vb.net but it takes only back photos and also at low resolution. How can I put ther resolution at 640x480? I have a Labtec webcam...
13
by: lane straatman | last post by:
I'm trying to figure out what data type is appropriate to represent a card in a game. The idea that I thought was going to work was a struct, foo, with two integer fields and two fields of char...
0
by: Scott | last post by:
Biopotential Biofeedback Data Acquisition DataQ Data Acquisition Custom Software 1 to 32 channels (AuroScroll 4ch/time) 35+ DataQ Devices supported Record / Playback Functions 0-15 Plot bits +...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.