LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help needed in connecting start and stop button for a Chemyx syringe pump

Hello, 

 

Attached to this forum is my code. I've been trying to connect both start and stop button, but I can only get the syringe pump to stop every time I hit run. can someone help me with modifying my code so that every time I hit run the machine doesn't only stop but lets me start and stop the syringe pump with the buttons in my front panel. 

 

 

Also, my syringe pump can only communicate with LabVIEW when the serial port is COM 3 and the Baut rate is 115200. The model of my syringe pump is a Chemyx 4000x fusion (it's a dual channel pump)

 

At some point I would like to manage both channels of my pump independently in the front panel. How can I do this? The manufactures already have drivers for the Chemyx pump but, they only work to manage both pump channels synchronously. I don't want to manage them synchronously; I want to manage them independently. 

 

Thanks

 

 

any help is truly appreciated.

0 Kudos
Message 1 of 4
(595 Views)

Your start and stop buttons are not connected to any downstream code, except for the LED.

 

So why do you have two buttons if you really only have two states? Maybe all you need is one switch-action switch that switches between start and stop, or even a radiobutton with two entries.

Message 2 of 4
(580 Views)

Here are some ideas for the button logic.

 

It is not clear how the boolean should interact with the device, but you should eliminate the inner FOR loop and do everything in the outer loop implemented as a state machine, depending on the LED state.

 

altenbach_0-1690820356873.png

 

Message 3 of 4
(553 Views)

Ok, how can I connect the pump to those buttons? Attached there's the modified drivers of the syringe pump. if you go to basic driver> commands> stop or start they have their own script. but none of them use a button. can you help me connect those buttons to my machine?

0 Kudos
Message 4 of 4
(547 Views)