菠萝 发表于 2007-6-13 21:25:26

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

问题描述:the specified resource is reserved.the operation could not be completed as specified。

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

分开做的时候都没有问题

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

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

cpubbs 发表于 2007-6-20 11:57:15

貌似是没有分配足够的资源给DAQ导致的!以前一位兄弟说过这事!您试试是不是有其他部分抢占了系统的资源了呢?或其他部分占用了时间?好运

tx 发表于 2007-6-20 12:10:01

这样做会有问题的,只能建立一个,如果要采集多通道,要放在一起,注意一下配置就可以了.

飞雨天 发表于 2007-6-20 13:09:25

http://forums.ni.com/ni/board/message?board.id=232&message.id=2039&requireLogin=False
自己看了

cpubbs 发表于 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<nNIMSSAIL100:otNetApi> >* , 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.

wdyjz 发表于 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通道和一些高级处理工具,使得可以实现完美的并行任务处理。
页: [1]
查看完整版本: 求人解答数据采集中遇到的莫名其妙的问题