Info

This question is closed. Reopen it to edit or answer.

Using More Than 4 Analog Inputs Causes Software Created with xPC Target Embedded Option to Not Run

1 view (last 30 days)
I am using xPC Target Embedded Option (2010b) with a NI PCI-6229 I/O card as a controller and data logger for hydraulic systems on a vehicle.
My controller functions perfectly so long as I only use 4 of the 32 available analog inputs on the I/O card. Any more and as far as I can tell (there is no screen to view the controller output only indicator LEDs) the software does not run and no data is logged in the file scopes (the .dat files are created but empty). I receive no error during the build process and the MatLab screen reports a successful build.
I have configured the inputs as single ended and differential correctly and tried skipping channels (e.g. used 1,2,3,4,6,7 to eliminate the possibility of a problem isolated to channel 5) with no luck. If I make no changes at all other than removing channels 5 and above, it works as expected.
Does anyone have any idea why channels 5 and over cause this problem?
Regards,
James
  1 Comment
Walter Roberson
Walter Roberson on 27 Oct 2011
Does 1, 2, 3, 6 work? Just to isolate it down to whether the problem is using above 4 or if it is the total number of channels that matters.

Answers (1)

James  Robertson
James Robertson on 27 Apr 2012
Walter: Yes I had tried skipping out each channel but no joy.
An update for anyone else who comes across this problem....
After a month or so of e-mails to and from Mathworks, I never did get to the bottom of this problem; in the end it just went away. I have no idea why, there wasn't anything I changed in the model to solve it, it just started working.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!