07-31-2023 10:39 AM
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.
07-31-2023 10:49 AM - edited 07-31-2023 11:15 AM
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.
07-31-2023 11:19 AM
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.
07-31-2023 11:25 AM
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?