Search found 69 matches

by bmairs
Tue Sep 14, 2010 12:03 am
Forum: Request for new functions / Peripheral / Chip support
Topic: C-function block can't inherit input vector dimensions
Replies: 0
Views: 7597

C-function block can't inherit input vector dimensions

I'm trying to pass the output of the xPC blockset Pack block into the C-function call block. The Pack block doesn't allow inheriting of its output signal dimensions and the C-function call block seems to require its dimensions to be specified. I've tried using -1 as the input vector size, but then t...
by bmairs
Mon Sep 13, 2010 11:58 pm
Forum: Request for new functions / Peripheral / Chip support
Topic: Support for returning structs from C-Function Call block
Replies: 3
Views: 10495

Re: Support for returning structs from C-Function Call block

What I mean is for the C-function blocks to be able to work natively with Simulink Bus objects. This means that they could take them as input or output. I would imagine this could be done because of the support Busses have over various blocks, but I don't know how this all works. I just know I spend...
by bmairs
Sat Aug 28, 2010 5:59 pm
Forum: Request for new functions / Peripheral / Chip support
Topic: Support for returning structs from C-Function Call block
Replies: 3
Views: 10495

Support for returning structs from C-Function Call block

I'm not certain if this is possible, but it would be awesome if you could specify a struct that the c-function call block was returning and then the block would output the data on a bus with the appropriately named signals. Right now it's inconvenient and computationally wasteful to pack a struct in...
by bmairs
Fri Jul 30, 2010 11:23 pm
Forum: bug reports
Topic: Error for having multiple dsPIC Master blocks
Replies: 0
Views: 7521

Error for having multiple dsPIC Master blocks

I have a model that contains only one dsPIC Master block from your blockset and yet I get the error for having multiple master blocks (this error should also say "found" instead of "find"). I've attached the model here. From removing each block at a time and checking for errors, it seems like the co...
by bmairs
Fri May 14, 2010 11:18 pm
Forum: bug reports
Topic: ICS configured incorrectly
Replies: 12
Views: 21556

Re: ICS configured incorrectly

The new version of the blockset isn't a problem. Looks like things are running fine over here now.
by bmairs
Fri May 14, 2010 11:01 pm
Forum: bug reports
Topic: ICS configured incorrectly
Replies: 12
Views: 21556

Re: ICS configured incorrectly

So I've updated my ECAN code to now use a circular buffer for transmission and skip the blocking infinite loop that I had in the my code previously. This was where the code was getting stuck, and I wasn't sure why. Right now I'm testing my code with the new 3.2b version, though I don't think I'll ha...
by bmairs
Mon May 10, 2010 8:32 pm
Forum: bug reports
Topic: ICS configured incorrectly
Replies: 12
Views: 21556

Re: ICS configured incorrectly

So at this point I'm not certain that the problem is I'm running into. I've tried versions 3.1, 3.2b, and the 3.3a that Lubin sent me and I'm running into the same problem with all of them: Code works just fine when imported into MPLAB and run in either the Debug or Release mode. It does not work, h...
by bmairs
Wed May 05, 2010 6:08 pm
Forum: bug reports
Topic: ICS configured incorrectly
Replies: 12
Views: 21556

Re: ICS configured incorrectly

_FICD( JTAGEN_OFF ) replace in code by _FICD( MB JTAG & MB ICD ) That line you suggested replacing will not compile. It says both the "MB JTAG" and "MB_JTAG" symbols are not found. I have also tried deleting the whole _FICD line, but that didn't resolve the issue either. I just want my code to work...
by bmairs
Wed May 05, 2010 5:15 pm
Forum: bug reports
Topic: ICS configured incorrectly
Replies: 12
Views: 21556

Re: ICS configured incorrectly

_FICD( JTAGEN_OFF ) replace in code by _FICD( MB JTAG & MB ICD ) These constants you suggest are not available even if I inject an underscore in them, so the above isn't a solution. Can I obtain the functionality from the last blockset version in this one? I don't want to have to modify the source ...
by bmairs
Wed May 05, 2010 12:00 am
Forum: bug reports
Topic: ICS configured incorrectly
Replies: 12
Views: 21556

Re: ICS configured incorrectly

I've tried PGD1, but that didn't fix the problem. It also breaks programming via MPLAB.

Before you made this change, what were the default values for the JTAG and ICD? Those seemed to work earlier, so I'd like to use those again. I don't have any old compilations to check the source from.
by bmairs
Tue May 04, 2010 6:31 pm
Forum: bug reports
Topic: ICS configured incorrectly
Replies: 12
Views: 21556

ICS configured incorrectly

I've updated to the recent blockset version to 3.2b and I think I've found a bug. I have odd problems running my code where once it attempts to send a CAN message it halts. This does not occur if I open the generated source in MPLAB, though it asks me about fixing the ICS configuration bits before I...
by bmairs
Sun Feb 07, 2010 12:51 am
Forum: Request for new functions / Peripheral / Chip support
Topic: Support for CAN Module?
Replies: 34
Views: 67977

Re: Support for CAN Module?

I just wanted to update this thread briefly.

I'm currently stuck on an Embedded MATLAB block issue where it doesn't want to respect an infinite sampling time. After that is fixed, there blockset should be close to if not fully functional.
by bmairs
Wed Feb 03, 2010 10:21 pm
Forum: Advanced Simulink & RTW Questions
Topic: Embedded MATLAB and Infinite Sampling Time
Replies: 0
Views: 7369

Embedded MATLAB and Infinite Sampling Time

I'm working on some of my own initialization blocks but am having trouble getting functions to only execute once. From what I understand a sampling time of "Inf" cause blocks to be executed once. I'm trying to do some parameter manipulation before passing these options to a C-function block. The Emb...
by bmairs
Tue Jan 12, 2010 9:20 pm
Forum: Request for new functions / Peripheral / Chip support
Topic: Support for CAN Module?
Replies: 34
Views: 67977

Re: Support for CAN Module?

I've fixed the repo. Should be publicly clonable. I'll try and add more documentation to it within the week to clear up some things.
by bmairs
Mon Jan 11, 2010 7:41 pm
Forum: Request for new functions / Peripheral / Chip support
Topic: Support for CAN Module?
Replies: 34
Views: 67977

Re: Support for CAN Module?

I have currently started work on an ECAN library and corresponding blockset. It would be great to get your input on this, Lubin. The current codebase is available here: https://github.com/Susurrus/ECAN_dspic
by bmairs
Thu Jul 30, 2009 7:02 pm
Forum: Request for new functions / Peripheral / Chip support
Topic: Timeout for Input Capture Block
Replies: 3
Views: 9938

Re: Timeout for Input Capture Block

You model works exactly how the custom C code I wrote works, it's just nicer because it's all contained within Simulink. My argument for this being built into the block is because I would expect a 0 to come out of the block for the uptime if the signal went to DC. Would it be possible to integrate t...
by bmairs
Mon Jul 27, 2009 8:16 pm
Forum: Request for new functions / Peripheral / Chip support
Topic: Timeout for Input Capture Block
Replies: 3
Views: 9938

Timeout for Input Capture Block

Currently the input capture block holds its output values if the input signals remains constant as there are no rising or falling edges to trigger an update of the values. In working with radio controlled electronics, a lost connection means that the PWM signal input is now ground. It would be nice ...
by bmairs
Mon Jul 27, 2009 8:00 pm
Forum: Request for new functions / Peripheral / Chip support
Topic: Support for CAN Module?
Replies: 34
Views: 67977

Re: Support for CAN Module?

I would also like to vote for supporting ECAN. I have the 33f with ECAN and would like to be able to use it as a block.

It seems like a few different people are looking for this, are you thinking about developing an ECAN block?
by bmairs
Mon Jul 27, 2009 7:57 pm
Forum: bug reports
Topic: ADC doesn't produce correct output type
Replies: 1
Views: 8283

ADC doesn't produce correct output type

It doesn't matter if I select signed or unsigned integer for the output of the ADC, it always shows it being a uint16. Has anyone else seen this behavior?