REXYGEN Community Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Login

    Solved Pressure to volume calculation, piecewise-LIN

    REXYGEN Studio
    2
    4
    416
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      pocket_brewing
      last edited by

      I have a pressure transducer generating an analog signal which in turn generates a signal (integer between 0-32767). The transducer measures the pressure in the bottom of an irregularly shaped vessel and thus I can't use a formula to calculate volume. The medium I which to measure the volume of is water.

      I have a table (also known as a map) with integers and corresponding volume levels and now I need to do a piecewise linear interpolation of the signal. I could only find the LIN-block but I would need a piecewise-LIN-block. I began using the REL-block together with SSW-block to try and split the signal according to my table and apply the LIN-block on each segment but this seem very convoluted. I guess this must be a common problem and I'm missing some ready made block? Is there a piecewise linear interpolation block or mapping-block for these occasions? Or some other way of achieving this?

      Thanks in advanced for your input!

      cechuratC 1 Reply Last reply Reply Quote 0
      • cechuratC
        cechurat @pocket_brewing
        last edited by

        @pocket_brewing Hi Emil, thank you for your question. Have a look at FB called CNDR - Nonlinear conditioner (docs: https://www.rexygen.com/doc/PDF/ENGLISH/BRef_ENG.pdf#page=111).
        It should do the job.

        Let us know if it worked for you. Good luck with your project!

        Kind Regards,
        Tomas

        P 1 Reply Last reply Reply Quote 1
        • P
          pocket_brewing @cechurat
          last edited by

          @cechurat Thank you Tomas,
          This exactly what I was looking for. Works a charm!

          It didn't show up when I searched for "interpolation" or "piecewise" in the block library.

          cechuratC 1 Reply Last reply Reply Quote 0
          • cechuratC
            cechurat @pocket_brewing
            last edited by

            @pocket_brewing Thanks for getting back to us. I'm glad I could help.

            Kind Regards,
            Tomas

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            This is a community forum for REXYGEN users and fans. Detailed information can be found at REXYGEN homepage.

            There is also an outdated REXYGEN community forum.

            Powered by NodeBB.