Very exciting! I will test it as soon as possible!
Latest posts made by pocket_brewing

RE: REXYGEN 3.0.0 is available

RE: Pressure to volume calculation, piecewiseLIN
@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.

Pressure to volume calculation, piecewiseLIN
I have a pressure transducer generating an analog signal which in turn generates a signal (integer between 032767). 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 LINblock but I would need a piecewiseLINblock. I began using the RELblock together with SSWblock to try and split the signal according to my table and apply the LINblock 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 mappingblock for these occasions? Or some other way of achieving this?
Thanks in advanced for your input!