VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Veristand model compiling error: NI VeriStand 2010 Unable to find Parameter struct in CGTypes

Solved!
Go to solution

Hi,

I am receiving this sequence of messages when I try to compile a model.

 ...

### Generating TLC interface API.
...........................................................
### NI VeriStand 2010 Modifying Pack_L500_IB_plant_fstep_io.c file
...................................
 
### NI VeriStand 2010 Modifying Pack_L500_IB_plant_fstep_io_data.c file
Error:  ### NI VeriStand 2010 Unable to find Parameter struct in CGTypes
 
 
### NI VeriStand 2010 Modifying Pack_L500_IB_plant_fstep_io.h file

### NI VeriStand 2010 Generating Ports Readme file
Could Not Find c:\WorkDir\Models\Pack\pack_l500_ib_plant_fstep_io_niVeriStand_rtw\*.obj
### Real-Time Workshop build procedure for model: 'Pack_L500_IB_plant_fstep_io' aborted due to an error.

 

I tried to repair my VeriStand 2010 installation and still got the errors.

 

I created a Virtual machine, installed Simulink and Veristand and tried to recompile the model. The error appers again.

 

I changed the "System Target File" (tlc file) to grt and the model was compiled without error. Even VxWorks Veristand target fails.

 

If I copy the *.obj from the other target to VS target the second error goes away but I still get "Error:  ### NI VeriStand 2010 Unable to find Parameter struct in CGTypes"

How can I solve this problem?

Cheers,

Cláudio H.

CHCastro
0 Kudos
Message 1 of 3
(7,181 Views)
Solution
Accepted by topic author ClaudioH

Hi,

 

I found the problem but not the reason.

 

If I change the Configuration Parameters > Optimizations > Inline Parameters = Unchecked the model compiles without problem.

 

Cheers,

Cláudio H.

CHCastro
0 Kudos
Message 2 of 3
(7,170 Views)

Yes this is a known issue when a model has no tuneable parameter. You can still inline your parameters, just make sure to make at least one parameter tuneable.

 

Carl L

National Instruments

0 Kudos
Message 3 of 3
(7,162 Views)