473,654 Members | 3,115 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2343
On Jun 20, 7:14 am, Ulysses <stallo...@gmai l.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.securityfoc us.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********@yah oo.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********@yah oo.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.securityfoc us.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********@yah oo.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********@yah oo.comwrites
>Chris Hills wrote:
><cb********@ya hoo.comwrites
>>Ulysses wrote:

Could someone tell me how to go about getting data from a data
acquisitio n 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********@yah oo.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.embed ded, but not here.
This newsgroup discusses PORTABLE standard C.

--
<http://www.cs.auckland .ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfoc us.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********@yah oo.comwrites
>Chris Hills wrote:
><cb********@ya hoo.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.embed ded, 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********@yah oo.comwrites
>>Chris Hills wrote:
>><cb********@y ahoo.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.embed ded, 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_Keit h) 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

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

Similar topics

10
5480
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 problem that I am facing is in dealing with (privacy) critical information like credit-card #s and SSNs or business critical information like sales opportunity size or revenue in the database. The requirement is that this data be stored encrypted...
2
1558
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 www.closerworlds.com
4
1381
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 plugin) - and we allocate a user buffer for dma operations (continuous mode dma(, we then copy the data from this buffer to an application buffer (all done in user mode). Running this driver and checking CPU load we get 15% (on a P4 2.4GHz, 1GB...
7
2240
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 and Ethernet PLCs, OPC servers, etc. The application will need to display graphic gauges and charts, in addition to the actual values retrieved from the various data sources. The application will need to continually update itself in a real-time...
11
1936
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 to being queried by various sources, perhaps concurrently. In all likelihood, the app will never need anything that robust, but I want to learn to write it anyway, as an exercise. So here is my code. It's really simple, and I'm sure you can see my...
9
1833
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 this problem. We have several client machines, and a central data warehousing server. Each machine may contain hundreds of surveys, and they all are sent to the central server. Only they can never be networked together, forcing us to use files. I...
3
5702
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 plus that works fine with other software. I downloaded two samples from the internte and both of them do the same problem The samples are: http://www.vbforums.com/showthread.php?t=378126 http://www.vbforums.com/attachment.php?attachmentid=44367...
13
2197
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 arrays: index cardno description suit ( 1, 1,Two of clubs ,'c') ( 2, 2,Three of clubs ,'c') ( 3, 3,Four of clubs ,'c') ( 4, 4,Five of clubs ,'c') ( 5, 5,Six of clubs ,'c')
0
1190
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 + Analog Adjustable Trigger Modes Adj. Sample Rate, Gain And Zoom Plus Much More ! Custom Developed Versions
0
8376
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
8290
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8815
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...
0
8708
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8594
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
7307
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
6161
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
4294
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2716
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.