Re: Error with Analog Input blocks in xPC Target
- From: Gordon Weast <gweast@xxxxxxxxxxxxx>
- Date: Fri, 21 Nov 2008 11:11:15 -0500
Silvia,
When you get down to the hardware level to program the board, you
can only send one list of channels to the board at initialization
time. Then in runtime, we just start the preconfigured acquisition.
All of the National Instruments boards use a channel list that you
have to write to the board. Changing that list when each block
runs would substantially slow down the block.
Since both blocks are using the same hardware, they need to share
the same list of channels. We don't check to see if they have
the same list of channels, but assume that they are different lists
if you have more than one block.
If you're trying to read the same channel twice quickly to get
a derivative, then the other problem is that the time between
the measurements would be slightly indeterminate and you wouldn't
get a good slope anyway. Use the value from the previous time
step if you need to approximate the derivative.
Use one block with all the channels you are using.
Gordon Weast
xPC Target Development
The MathWorks
Silvia Appendino wrote:
Hi everyone, I added a second Analog Input block in my simulink model which runs using xPC Target. My board is NI PCI 6052E (with 8 analog inputs) but when I try to build the model I receive following error:.
Error building Real-Time Workshop target for block diagram 'taratura_TP'. MATLAB error message:
Error using ==> tlc_c at 133
--> Error evaluating 'InitFcn' callback of adnipci6052e block (mask) 'TP1'. Error using ==> mxpccrosscheckers>pciuniqb at 177
Only one block allowed of this type for each physical board.
--> Error evaluating 'InitFcn' callback of adnipci6052e block (mask) 'TP2'. Error using ==> mxpccrosscheckers>pciuniqb at 177
Only one block allowed of this type for each physical board.
Can someone give me a hint?
Thanks!
silvia
- References:
- Error with Analog Input blocks in xPC Target
- From: Silvia Appendino
- Error with Analog Input blocks in xPC Target
- Prev by Date: How do I use optimset with an ode45 Function
- Next by Date: Re: how to make a rotation matrix "orthogonal"
- Previous by thread: Error with Analog Input blocks in xPC Target
- Next by thread: Re: Error starting desktop
- Index(es):
Relevant Pages
|