Re: Error with Analog Input blocks in xPC Target



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
.



Relevant Pages

  • Re: How to set up mirrors in Smart Package Manager?
    ... As regards Livna, if you install their livna-release package for FC6, you can ... Mirror lists are a pain, because each mirror has to be entered manually. ... up your channels - it's well worth the effort. ...
    (Fedora)
  • Re: Receivers (therefore OT) that do and do not honour LCNs?
    ... has 8 favorites lists and AFAIK there is no limitation on the number of ... channels that can go into a given favorites list. ... Then, for a blind person, you could put the next most wanted channels on ...
    (uk.tech.broadcast)
  • Re: Dipping with the Dipsos
    ... The Humax PVR Freesat receiver suffers from horrible amnesia ... Which will list enough adult gay dating channels, gaming channels, and ... to bore folks with long lists of easily located channel references, ... The CE of BSB, Simon-Gooding, had an injunction ...
    (uk.people.silversurfers)
  • Re: Anyone else lost TCM from base subscription
    ... The page on their website which lists the various "Entertainment" mixes ... this) and you can see which channels are in which Mixes in one place. ...
    (uk.tech.tv.sky)