02-06-2021 11:59 AM
As I said before, thanks for all the help. This a preparation for a laboratory task.
I can't really figure out what you mean by define dx for the chart, have been searching a lot for it but can't seem to find it. I've done some changes to it so I will attach the new code.
02-06-2021 12:03 PM - edited 02-06-2021 12:04 PM
Right click the chart and pick Create Property Node. Select XScale then Multiplier.
02-06-2021 12:14 PM
@kalwet wrote:I can't really figure out what you mean by define dx for the chart, .
We are talking about the multiplier that correlates the point spacing with actual time. With 200ms, the spacing is.0.2, giving you five points for each second.
02-06-2021 12:20 PM
Some more comments:
With unusual limit settings, it is possible that both comparisons returns TRUE and you'll sends two commands in parallel (We cannot tell which occurs first).
A safer way is to use the sorted values for limit testing.
02-06-2021 12:33 PM
So more like this then? I still get a red dot for the "Wait". Also if i plug in max and min in the chart as I have done they should display as straight lines, right?
02-06-2021 01:06 PM
You get a red dot at the wait because your constant is I32 while it should be U32.
(Posting by phone, cannot look at your code)
02-06-2021 08:14 PM
@kalwet wrote:
So more like this then?
Still a bit too much code. You only need one case structure and one "power supply" write.
Here is a draft:
02-07-2021 07:26 AM
Thank you! So if im understanding it correctly the selector decides what to do with the power supply? So for example, if the tank is not full then its false and the selector chooses to start the power supply wich starts the pump?