Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Create librarie for MCP3202: problem with output

galexis
2016-10-23
2016-10-26
  • galexis - 2016-10-23

    Hi,
    I have create a librarie for MCP3202 : 2 inputs DAC 12 bits .
    When I use it in project and call output variable "ch0", I have error at compilation : "C0046: MCP3202.ch0 not define".
    Could you help me ?
    Bests regards.

    SPI_MCP3202.library [296.91 KiB]

    MCP3202.devdesc.xml [2.44 KiB]

     
  • Moderator3S

    Moderator3S - 2016-10-26

    Topic moved to the Raspberry PI section

     
  • eschwellinger

    eschwellinger - 2016-10-26

    Hi,

    in may case i could compile errorfree with the installed library and device description.

    BR
    Edwin

    IMG: MCP.jpg

     
  • galexis - 2016-10-26

    I have rename device "MCP3202" to "MCP3202_1" and it's good now when apply ch0 or ch1.
    Thank you.

     

Log in to post a comment.