LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Abort Button Not Working

Hi All, 

I have a LabVIEW VI that used to work well, and it seems to have stopped working even though I didn't make any changes that I know of.  Now when I hit the arrow to run the program, the program appears to start and arrow says that the program is running, but nothing happens in the program at all.  If I press the abort (stop sign on the top bar) nothing happens, and the program appears to continue running.  The STOP button in the VI also does not stop the program.  After I close the LabVIEW window, I get a little LabVIEW box that says "Resetting VI" and I it won't go away until I open the Task Manager and kill LabVIEW.  

 

Can someone tell me what is going on here?

0 Kudos
Message 1 of 16
(4,066 Views)

What does the program do? Does it call any third party dll? Does it try to access a network resource? Does it try to create gigantic data structures? Did you enter unreasonable control values?

0 Kudos
Message 2 of 16
(4,060 Views)

It accesses a few pieces of equipment in our lab, including a temperature controller and resistance bridge.  It then plots these temperatures on a standard plot.  It totally used to work, then stopped.  The computer can see the external instruments, and NI Max can also see them, but as I said, the LabVIEW VI says it is running, but no temperatures are being plotted and the abort button does not stop the program. 

0 Kudos
Message 3 of 16
(4,040 Views)

You can only get wild guesses because you didn't attach the VI.

My wild guess is that a VISA Read is timing out.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 4 of 16
(4,029 Views)

@matt_physics wrote:

Can someone tell me what is going on here?


Not without seeing your code...

 

All we can do is guess, and I am guessing there is a bug in your program causing it to lockup.

 

Do you ever get an error message if you wait? 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 5 of 16
(3,996 Views)

Here's my VI.  I'm new to this forum.  Is this how uploading my code is supposed to be done?

0 Kudos
Message 6 of 16
(3,972 Views)

Um... yeah that Abort button is NEVER going to work the way you want because of all the sequence structures you used.

 

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 7 of 16
(3,960 Views)

 


@RTSLVU wrote:

Um... yeah that Abort button is NEVER going to work the way you want because of all the sequence structures you used.

 

 


So this is a VI in our lab that someone else wrote a couple years ago.  What would you suggest I do to get it to work if the sequence structures are not the right way?

0 Kudos
Message 8 of 16
(3,933 Views)

I find a "State Machine" architecture works for 99% of the programs I write.

 

The problem you have is once you enter a flat (or stacked) sequence, you cannot exit the sequence until the entire sequence is completed, no matter what.

 

Even if you took each "frame" of the sequence and made that a "state" in a state machine you would probably be able to abort at any time during any state.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 9 of 16
(3,929 Views)

@RTSLVU wrote:

I find a "State Machine" architecture works for 99% of the programs I write.

 

The problem you have is once you enter a flat (or stacked) sequence, you cannot exit the sequence until the entire sequence is completed, no matter what.

 

Even if you took each "frame" of the sequence and made that a "state" in a state machine you would probably be able to abort at any time during any state.


adding a timeout on those subVI may improve the responsiveness of the abort. 

 

also wondering why: sequentially? race conditions?

CY (expired CLAD)
0 Kudos
Message 10 of 16
(3,912 Views)