Triggering sequence on an Output | LabJack
 
LabJack is closed November 26 and 27 for the Thanksgiving holiday.

Triggering sequence on an Output

2 posts / 0 new
Last post
lgunseor
Larry Gunseor's picture
Triggering sequence on an Output

I have set up a button to turn a pump on and off, would like to trigger a different sequence depending whether the pump is on or off.  Below is what I have and keep getting an error "C1070 Not enough parameters for given operator  START line 3".  Can you do this on an output all the examples that I have seen have been on inputs.  Anyone have any examples of doing what I'm trying to do?

while(1)
   read (PUMP)  
   if (PUMP = 1)
      beginseq(On_Sequence)
   endif
   if (PUMP = 0)
      beginseq(Off_Sequence)
   endif
endwhile

LabJack Support
LabJack Support's picture
In your if statements, use ==

In your if statements, use == instead of = for comparison. = is used for assignment, and cannot be used in if().