06-12-2020 11:50 PM
Hi, I hope this is the right place to ask, didn't want to register at NI to ask there. I'm really new to LabView, and kinda stuck.
I'm solving a larger problem involving a lot of pumps. I have made a VI that takes in an enum to decide which pump to use, a double to make it go for a set amount of time, and a bool to be able to stop the pump in an emergency. For the timing I use Elapsed time, and essentially just pass a bool to a DO C-module on a DAQ.
On its own, this works well. When I call the VI as a sub in any other VI however, the abort doesn't work. How can I solve that? I'm assuming it's because the VI doesn't poll inputs once it's started?
I also need to be able to use that same VI to control several pumps simultaneously, so it is my understanding I need reentrancy and asynch. calls. I've set it up for call-and-forget with x40 and x80 flags. When I run two pumps at a time with two static references like that, the pumps sound like they're dying slowly. Help? Please?
06-13-2020 12:27 PM
My psychic powers are strong enough for me to remotely read your code, But I'm pretty sure you've just coded it wrong. Just fix the parts that aren't right and it will work fine.
06-13-2020 12:38 PM
I agree with Paul (although my psychic powers aren't quite as good as his): one of the orange wires is in the wrong place. Now, use your psychic powers and figure out what you can do to help us to help you (hint -- no pictures, please!).
Bob Schor
06-13-2020 01:03 PM
@barkietrin7 wrote:
I'm really new to LabView, and kinda stuck.
I'm solving a larger problem involving a lot of pumps.
If you are new to LabVIEW, I recommend not to dive right into the deep end, because you are not yet qualified for the job.
Did you write all code from scratch or is this based on inherited code from a previous employee?
Yes, there are quite a few master programmers here and we could easily point out obvious mistakes if we could actually see what you are doing, so show us some simplified code as already requested by others.