LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Enable off/reset function to a virtual pulsoximeter

Hi folks,

I am debugging this pulsoximeter VI. It works okay, but I cannot simulate the off function. It keeps running even after wiring the off/false status of the button to different options: I have tried with some blocks in the false case, with local variables, etc and no success so far. I would appreciate any elegant/fast solution because I will have to modify a bunch of other similar files.

Thanks a lot,
Eduardo
Download All
0 Kudos
Message 1 of 3
(2,488 Views)
Hi Eduardo,

Can you please re-attach the text file? I was unable to open that file. As a result of this, I was unable to run the VI to see what the problem is.

However, I did open your VI. Your VI has race conditions in them. What I mean by this is that you have four loops trying to run at the same time. The order of execution between will not be the same everytime. You can see this yourself by selecting highlighting execution before pressing the run button. Is there a particular reason that you have a while loop surrounding the four while loops. I would strongly that you follow data flow programming practices. My suspicion as to why the false doesn't work is that it is still executing one of the while loops and has not gotten out of it yet to execute the off command.

Good luck!

Warm regards,
Karunya R
National Instruments
Applications Engineer
0 Kudos
Message 2 of 3
(2,463 Views)

Eduardo,

Please do not ever attach an auto-run VI to the forums again.

If all of your VIs have while loops with constants wire to the termination terminal, you have a lot of work ahead of you. What you have done is create while loops that cannot be stopped. The only way to stop them is with the Abort button and you should read this.

0 Kudos
Message 3 of 3
(2,457 Views)