I recieve the error message "Error building Real-Time Workshop target for block diagram 'PIC_vector_concatenate_test'. MATLAB error message:
Error using ==> RTW.genMakefileAndBuild at 967 Error(s) encountered while building model "PIC_vector_concatenate_test". " when I try to use Vector Concatenate to join a constant vector of booleans and a vector of booleans created through the Simulink block "Integer to Bit Converter". I do not get this error when I try to join any other boolean vectors... just when I use Integer to Bit Converter. I am using Matlab r2007a and have sucessfully run other models using your blockset.
Model file is attached.
Error after using Integer to Bit Converter
-
- Posts: 7
- Joined: Wed Nov 04, 2009 6:18 pm
Error after using Integer to Bit Converter
- Attachments
-
- PIC_vector_concatenate_test.mdl
- (35.23 KiB) Downloaded 977 times
-
- Site Admin - Expert
- Posts: 616
- Joined: Wed Mar 07, 2007 11:23 pm
- Location: Bayonne- France
- Contact:
Re: Error after using Integer to Bit Converter
I was able to test your model on a 2009b matlab with the communication blockset and it compiled without requiring any modifications.
I do not have installed the communication blockset (for the integer to Bit Converter block) on the 2007a matlab version. However, you may post one more time the model, but before uploading the model, right click on the Bit Converter Block and press disable link and one right click again to break link. Thus, I may test it with matlab 2007a.
Lubin
I do not have installed the communication blockset (for the integer to Bit Converter block) on the 2007a matlab version. However, you may post one more time the model, but before uploading the model, right click on the Bit Converter Block and press disable link and one right click again to break link. Thus, I may test it with matlab 2007a.
Lubin
-
- Posts: 7
- Joined: Wed Nov 04, 2009 6:18 pm
Re: Error after using Integer to Bit Converter
Thank you for the swift reply. I have attached the model after following your instructions to disable and break the link. I can test it on 2007b and an evaluation version of 2009b here as well if this doesn't work.
- Attachments
-
- PIC_vector_concatenate_test_link_disabled_and_break.mdl
- (36.39 KiB) Downloaded 1007 times
-
- Site Admin - Expert
- Posts: 616
- Joined: Wed Mar 07, 2007 11:23 pm
- Location: Bayonne- France
- Contact:
Re: Error after using Integer to Bit Converter
Ok, I can open the model with the block with matlab 2007b, but it will not compile because it needs an S function that is in the communication blockset that is not installed. Thus, I still cannot test it with matlab 2007b until I install the comm blockset.
Anyway, the first model you upload compiled correctly with matlab 2009b. Thus, I guess it is a bug from matlab 2007b (that generate code that can't be understand by C30). Anyway, there are options on how to represent boolean values in the real time workshop configuration parameters. Perhaps playing with theses parameters may help.
I noticed a difference between the dialog box the integer to bit converter of matlab 2007b with the one of matlab 2009b. I attached the one of maltlab 2009b : Lubin
Anyway, the first model you upload compiled correctly with matlab 2009b. Thus, I guess it is a bug from matlab 2007b (that generate code that can't be understand by C30). Anyway, there are options on how to represent boolean values in the real time workshop configuration parameters. Perhaps playing with theses parameters may help.
I noticed a difference between the dialog box the integer to bit converter of matlab 2007b with the one of matlab 2009b. I attached the one of maltlab 2009b : Lubin
Who is online
Users browsing this forum: No registered users and 40 guests