Hi,
I've been trying to write a little program, and am sure there are better ways of doing the following.
Firstly, I'm trying to simulate an IF THEN ELSE clause, and following (kinda) the manual, I have:
RB1+E
'triggering on digital input
IF(1CV><0,2){[GA 2CV(W)=3]}
IF(1CV><2,4){[HA 2CV(W)=1]}
1CV(W)=2CV
This now works, but is ugly and offends my sense of programming aesthetics. I'm sure this can be simpler but figure it out.
Secondly, I'm trying to have a DSO activated, one time only, 5 seconds after the input trigger, so as you can see above I start schedule A, which is defined as:
RA5S 2DSO(0,R)=0 DO{[HA]}
This seems to work, but I'm wondering if there is a better way arranging the delayed input/output triggering.
Thanks for any help!
Chris
PS: How do you make a plus sign show up?? That schedule is RB1[plus]E.
Hi,
I've been trying to write a little program, and am sure there are better ways of doing the following.
Firstly, I'm trying to simulate an IF THEN ELSE clause, and following (kinda) the manual, I have:
````
RB1+E
'triggering on digital input
IF(1CV><0,2){[GA 2CV(W)=3]}
IF(1CV><2,4){[HA 2CV(W)=1]}
1CV(W)=2CV
````
This now works, but is ugly and offends my sense of programming aesthetics. I'm sure this can be simpler but figure it out.
Secondly, I'm trying to have a DSO activated, one time only, 5 seconds after the input trigger, so as you can see above I start schedule A, which is defined as:
````
RA5S 2DSO(0,R)=0 DO{[HA]}
````
This seems to work, but I'm wondering if there is a better way arranging the delayed input/output triggering.
Thanks for any help!
Chris
PS: How do you make a plus sign show up?? That schedule is RB1[plus]E.