Compiling a block

Hello everybody,

I have a big problem. I'm programming a filter, but I can't compile it. It is working well in simulation, but for some reason I get an error when I compile it. I use a F2808 DSP as embedded device. I attach my program in case somebody can give me a hand. The block EFK is the one I need to compile but I can't

Thanks a lot for your help.

Danilo

PS: It is not a problem regarding compilation programs because I compile another smaller program without problems

I tried to compile again my

I tried to compile again my file but I got the same problem.

undefined first referenced symbol in file

_matAdd ensayo4.obj _matMul3 ensayo4.obj _matMulS ensayo4.obj

error: unresolved symbols remain

error: errors encountered during linking; "Diagram1h.out" not built

Actually I have a one year VISSIM licence in my computer, and I tried to compile (using a trial version) in another one, but the result is the same.

Have you tried to compile the block that I attached before? I havo no idea which is the problem

Looks like your latest

Looks like your latest diagram has caused a problem with small matrix variable initialization of a unit delay. It has been fixed in the update here

I installed the update but

I installed the update but the problem is not fixed yet! I have noticed that when I use the matrix multiplication block I can't multi plicate two matrices

For example if I have matrix A which is 6x6 and matrix B which is 6x2

I can't do A*B. When I compile the program I get an error.

but if I separate B in two column vectors B1 which is 6x1 and B2 which is 6x1 and operate AB1 and AB2 there is no error in the compilation,

It could be a solution but it requieres a lot of extra computations in the DSP (and I have sampling time limitation) and programming time because I will have to separate, then operate and joint again almost all the matrices I'm using!

Could be a problem regarding the DSP I'm using??? I use the F2808 by TI.

Danilo, thanks for your

Danilo, thanks for your patience. There was a problem in matrix multiply of certain small matrices due to an optimization to inline the calculation. I am assured by engineering that it has been fixed and that your Kalman filter runs fine on a TI MCU now. Please download and install the latest update v80B10 one more (hopefully last) time.

Thanks for your help, but

Thanks for your help, but after installing the update I'm still geting the same problem. When I compile the block I get the same message regarding matAdd, matMult3 and matMulS.

That means I have the same problem. After that there is an error message about "ensayo4.out" not built.

I don't know if that message doesn't matter and I can run my filter without a problem on a TI MCU because today I don't have access to the DSP. However I suppose that it would be no error message during compilation.

I would like to know if your engineers get the same error message during compilation and they just press enter and then download the program to the DSP and It works fine or they don't get that message.

If you say me that even they get the error message the filter works fine on the DSP I will try it on weekend or Monday, but if they don't get the error message I really appreciate if you keep helping me with this deal.

As a reference I attach a text file with the full message I get during compilation in the black display console

Thanks again for your help

Sorry, I did not know that

Sorry, I did not know that was still your problem. I gave you the link to update only the core VisSim but you need to update your support library. To do that you should download VisSim/Embedded Controls Developer setup

you made my day

you made my day hahaha

Thanks a lot! now it is working fine!!!!

Great! You made my day!

Great! You made my day!

Hi Danilo, The problem was

Hi Danilo,
The problem was due to #defines of "Q1", "Q2", "Q3" etc by a TI header file. This has been fixed in the latest ECD download from our site. Do not uninstall your current VisSim or it will terminate your trial. The new install will update files as needed.
K

Hello Karen

I just installed the new version of ECD but I still have the same problem. Let me explain my problem with more details.

When I try to compile the compound block I attached yesterday I get a problem. But, only when I leave outputs that I need for monitoring the process. If I leave the block without output there is no problem.

In the software VISSIM I get some demos. There are compound blocks and I don't have any problem when I compile them even they have outputs. I was thinking if there is a special way to design a signal as output or you have to set up something and I didn't.

Thanks for the help

PS: I attach the program which is working and I don't have any problem when I compile it.

I figure out which is the

I figure out which is the problem. I use "variable blocks" to route signals because I need to use the same constant or value in different operations. And that is the problem when I compile the block. There is one way to solve it? or I have to reconnect everything without variable blocks?

Danilo, Your attached diagram

Danilo, Your attached diagram compiles OK for us. It makes no difference if you use variables or not. Can you copy the compile errors that you get to a text file and attach it or send to support@vissol.com

I attach the text file with

I attach the text file with compilation errors and the diagram I can't compile. Thanks for the help

I also attach the diagram

I also attach the diagram that I can not compile

For some reason it appears

For some reason it appears you do not have the latest VisSim version. Please download and install this update

Thanks a lot now it is

Thanks a lot now it is working better, but I still get an error in the compilation. In the console I get the message

undefined symbol

_matAdd _matMul3 _matMulS

error: unresolved symbols remain error: errors encountered during linking; "Diagram1h.out" not built

PS: I attach the full console results

Boy you really are having

Boy you really are having troubles. Please try to download VisSim ECD again. We do not see the errors you report. You may have to clear your browser cache before downloading.

Now I'm installing Vissim in

Now I'm installing Vissim in a new computer but I have a question. I have to install code composer studio by TI before installing VISSIM ? because that is the way I did it last time

Yes, you should install TI

Yes, you should install TI CCS first so that VisSim can setup the automatic compile linkage.
If you already installed VisSim first, no problem. Just install CCS then reinstall VisSim to setup the compiler linkage.

I tried to compile again my

I tried to compile again my file but I got the same problem.

undefined first referenced symbol in file

_matAdd ensayo4.obj _matMul3 ensayo4.obj _matMulS ensayo4.obj

error: unresolved symbols remain

error: errors encountered during linking; "Diagram1h.out" not built

Actually I have a one year VISSIM licence in my computer, and I tried to compile (using a trial version) in another one, but the result is the same.

Have you tried to compile the block that I attached before? I havo no idea which is the problem