找回密码
 注册
LabVIEW+单片机学习套件全套教程资料下载[免费]LabVIEW论坛精华列表贴USB0816数据采集卡《LabVIEW宝典》
LabWindows/CVI论坛精华贴NET0816以太网数据采集卡RC0210远程设备授权系统 关闭关停锁定打开设备 户外分布式数据采集
NET1624低速高精度以太网数据采集卡WIFI0824SD无线WIFI网络数据采集卡脱机运行 SD存储 小尺寸微型 串口采集远程采集 安卓 手持移动采集 纪录仪
查看: 2015|回复: 5

求人解答数据采集中遇到的莫名其妙的问题

[复制链接]
发表于 2007-6-13 21:25:26 | 显示全部楼层 |阅读模式
问题描述:the specified resource is reserved.the operation could not be completed as specified。

我用PCI6221卡进行数据采集  分别提取ai0 ai10 和ai4的端口输入模拟变量

分开做的时候都没有问题

当我组合成一个的时候就出现这个问题

希望达人帮我解答下  非常感谢

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
发表于 2007-6-20 11:57:15 | 显示全部楼层
貌似是没有分配足够的资源给DAQ导致的!以前一位兄弟说过这事!您试试是不是有其他部分抢占了系统的资源了呢?或其他部分占用了时间?好运
回复 顶

使用道具 举报

发表于 2007-6-20 12:10:01 | 显示全部楼层
这样做会有问题的,只能建立一个,如果要采集多通道,要放在一起,注意一下配置就可以了.
回复 顶

使用道具 举报

发表于 2007-6-20 13:09:25 | 显示全部楼层
回复 顶

使用道具 举报

发表于 2007-6-20 13:18:14 | 显示全部楼层
哦,原来是这样,我把它收录起来,到时候放精华列表贴里面好找,呵呵!如下所示:
问题:
Hi!

I have the following error at this line:

......Task.Start();


NationalInstruments.DAQmx.DaqException: The specified resource is reserved. The operation could not be completed as specified.



Task Name: _unnamedTask<8>

Status Code: -50103

at a(tCaseInsensitiveBasicString<unsigned short,_STL::char_traits<unsigned short>,_STL::allocator<unsigned short>,nNIDMXS100::tLocaleConsideringWideStringComparitor,nNIDMXS100::tLocaleConsideringWideStringCaseForcer>* , tStatus2* )

at a(StatusObserverT<nNIMSSAIL100::ApiTraits<nNIMSSAIL100tNetApi> >* , tTask* )

at NationalInstruments.DAQmx.Task.Control(TaskAction mode)

at NationalInstruments.DAQmx.Task.Start()



why is this possible? Maybe is the same task starting twice, or another tasks from other AI 's are making this error?
Please reply!
THANKS!


回答:
basically it is only possible to use a ressource of a board at one time. this means, that you can have one AI task, one AO task, one digital task and one for counter/timer in one program running. if you have another AI task in this program, then you receive the error you posted.

if you want to acquire more channels, you have to put them into the same task.
回复 顶

使用道具 举报

发表于 2007-6-21 10:07:09 | 显示全部楼层
basically it is only possible to use a ressource of a board at one time. this means, that you can have one AI task, one AO task, one digital task and one for counter/timer in one program running. if you have another AI task in this program, then you receive the error you posted.

if you want to acquire more channels, you have to put them into the same task.
上面的核心意思就是:对于AI,AO,DIO,couynter需要各自建立各自的任务,各个任务可以实现并行处理,也即同步执行的操作。这是因为M系列的卡内部添加了DMA通道和一些高级处理工具,使得可以实现完美的并行任务处理。
回复 顶

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|cpubbs论坛. ( 粤ICP备09171248号 )

GMT+8, 2026-9-30 13:22 , Processed in 0.049002 second(s), 11 queries , Gzip On, File On.

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表