数据采集​​卡 - 如何使用C? [英] Data acquisition Card- How to use with C?

查看:56
本文介绍了数据采集​​卡 - 如何使用C?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以告诉我如何从数据中获取数据吗?使用C?
采集卡?...<只是一般信息也会

帮助.. ......我现在正在研究一个想法>。

解决方案

6月20日,7日:14 am,Ulysses< stallo ... @ gmail.comwrote:


有人能告诉我如何从数据中获取数据

采购卡使用C?



否,是的。


一般来说,C不提供特定于设备的支持,也没有人提供支持>
这里可以告诉你如何使用C从DAC中检索数据。


但是,如果你的系统和环境配置得当,

您可以使用C标准fopen()/ fread()/ fclose()

函数从您的设备中检索数据。当然,这假设您的C环境为

DAC提供了一个fopen()兼容名称,并且底层系统和环境将该名称连接到

设备。这在一些系统(如Unix)中是可能的,其中设备

被外部化为文件,具有文件名,并且可以打开和读取

类似文件(即fopen(") / dev / ttyS0"," r");)


> ...<只是一般信息也会

帮助........我现在正在研究一个想法>。



Ulysses写道:


>

有人可以告诉我如何从数据中获取数据

采集卡使用C?...<只是一般信息也会

帮助...... .....我现在正在研究一个想法>。



在标准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

-

通过免费的Usenet帐户发布来自 http://www.teranews.com


文章< 46 ************** @ yahoo.com> ;, CBFalconer

< cb **** ****@yahoo.comwrites


> Ulysses写道:


>> <有人可以告诉我如何使用C从数据采集卡获取数据吗?...<只是一般信息也会帮助........我'现在正在研究一个想法>。


在标准C中,您将需要使用文件操作。您可能需要
来构建驱动程序。



这可能是不正确的...这取决于你的卡片做什么,是什么

你将卡插入哪种硬件,如果有的话,你在你的Hw上运行你的操作系统。


你可以按照文件访问的建议去做,或者你可以用

直接注册访问...


-

\ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \\ \\ / \ / \

\ / \ / \ / \ / \ Chris Hills Staffs England / \ / \ / \ / \ /

/ \ / \ / ch***@phaedsys.org www.phaedsys.org \ / \ / \

\ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \\ / \ / \ / \ / \ / \ / \ /


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>.

解决方案

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>.



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


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 \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/


这篇关于数据采集​​卡 - 如何使用C?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆