Generation block C

Altair Forum User
Altair Forum User
Altair Employee
edited August 2023 in Community Q&A

how to generate my c block,
in other words how to use.

image

when doing simulation, I get this message

Error Message:
Element: DLL_EXT Name: SCB1
ERROR: variable 'ADCON1' not defined
ERROR: command 'ADCON1' not found
ERROR: syntax error before or at line 9 in file 'C:\Powersim\PSIM_2020a_Trial\PsimTmp\sA1401.cxx'
==>: ADCON1 = 0b00001010; //0x0A definir analogicos
BUG: ADCON1 = 0b00001010; //0x0A definir analogicos<== ???
ERROR: variable 'TRISB' not defined
ERROR: command 'TRISB' not found
ERROR: syntax error before or at line 10 in file 'C:\Powersim\PSIM_2020a_Trial\PsimTmp\sA1401.cxx'
==>: TRISB = 0X00;
BUG: TRISB = 0X00;<== ???
ERROR: variable 'PORTB' not defined
ERROR: command 'PORTB' not found
ERROR: syntax error before or at line 11 in file 'C:\Powersim\PSIM_2020a_Trial\PsimTmp\sA1401

Tagged:

Answers

  • Rhonda_20369
    Rhonda_20369 New Altair Community Member
    edited August 2023

    Please check your C code and correct your syntax errors.

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.