I'm posting to get some advice about how to trigger a pump which has multiple independent juice lines. In some circumstances I would want to trigger individual lines, and in others a combination. For instance, I would like to have a code which could do the following:
goodmonkey([DurationLine1 DurationLine2 DurationLine3 DurationLine4])
goodmonkey([1000 0 0 0]) Turn line one on for 1000ms
goodmonkey([1000 1000 0 0]) Turn line one and two on for 1000ms
The pump has been wired into 4 of the digital output lines of the NI card. We originally planned that separate digital outputs would control each channel. We thought we could assign each of these to the 'TTL' in the monkeylogic I/O menu. But i'm struggling to know where to start in writing monkeylogic code to trigger the lines.
Does anyone have any suggestions?