LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

help wiring in labview

Hi everyone,

I've been working on a template to control two Chemyx Fusion 4000x syringe pumps from LabVIEW. My goal is to be able to keep track of the solutions being used and when they are administered, as well as to manage each channel separately. There are currently 4 channels, with 2 per pump.

I'm new to LabVIEW and haven't been able to find any useful videos to help me wire my code. I've attached my code, which consists of 4 sections:

  • Section 1: USB B General Settings

In this section, I want to be able to connect both pumps and manage each channel separately. The driver for my pump only detects my pump as COM 2. I'm not sure how to change this so that both pumps can work synchronously.

  • Section 2: Infusion Settings

There are 4 infusion channels that I want to manage independently in this section.

  • Section 3: Pump Status

In this section, I'm trying to see the status of the pump when it is infusing and when it is stopped.

  • Section 4: Pump Infusion Rate Calculations

In this section, I want my program to automatically calculate the value of the insulin rate needed and GIR using the equation in my template. I also want the rates to appear just by entering the weight and GIR values in their corresponding boxes.

 

I'm hoping someone can help me wire my code. I'm really stuck and I'm not sure where to go from here.

 

Thanks in advance for your help!

Download All
0 Kudos
Message 1 of 6
(976 Views)

Thank you for including your LabVIEW Code.  The Good News is that the Chemyx Driver code is written in LabVIEW 2017, which most of us can open and view.  However, most of the "more experienced" (= older, not necessarily wiser) Forum members have not yet installed LabVIEW 2022 or 2023, so cannot open and view your code.

 

Can you please open your chemyxOnly VI, and from the File menu do a "Save for Previous Version"?  I'd suggest LabVIEW 2019, because that's what I'm mainly using, and probably most of the Forum users will also be able to view your code.

 

Are there other VIs you are not sharing with us?  If you have your code in a LabVIEW Project, organized using a Project file (.lvproj), and if all the Project VIs and Project File are in a separate LabVIEW Folder, I'd recommend compressing the Project Folder (right-click, choose "Send to:", "Compressed (zipped) folder") and send the entire Project (after "Save for Previous Version", of course).

 

Bob Schor

0 Kudos
Message 2 of 6
(923 Views)

Hi Bob,

Thank you for reaching out to this forum. I have attached two versions of my initial idea for my project. There is a 2017 and a 2019 LabView version. 

 

 

Download All
0 Kudos
Message 3 of 6
(832 Views)

Were you able to communicate commands with the Pump ?

 

one way to implement your code is use a Queue Message Handling where the code will have 2 loops running in parallel. (Check the Queue Message Handler example) One loop handles the user interface and a second loop handles the communication with the USB to send/receive commands from the Pump. 

 

My suggestion:

1 . Create a Separated screen to allow the configuration of the infusion, and USB configuration, and save it to a CONFIG.INI file, so you don't need to configure the setup everytime you run the vi and the configuration is  stored on the file. 

 

2. USB communication - send commands and receive status. For this you need to follow the description of the manufacturer of the usb communication. 

does the two pumps run independently ? If so then you can add a third loop for the second pump. 

 

Message 4 of 6
(821 Views)

@BS

To create a zip file from a project it is much much easier to Create New Build Spec>>Zip.  The Help buttons on the build spec configuration pages are available to assist you with the minutae.


"Should be" isn't "Is" -Jay
0 Kudos
Message 5 of 6
(814 Views)

I was able to communicate with the pumps using the chemyx RO modified example posted in my first forum. 

0 Kudos
Message 6 of 6
(807 Views)