ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Abort Button Not Working


@RTSLVU wrote:

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

 


Ugh!  While it's generally true that 'a <fill-in-the-blank-with-anything> architecture> can work in 99% of your programs', anyone who uses the same architecture 99% of the time is probably writing a lot of poor code.

"If you weren't supposed to push it, it wouldn't be a button."
Message 11 of 16
(980 Views)

@paul_cardinale wrote:

@RTSLVU wrote:

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

 


Ugh!  While it's generally true that 'a <fill-in-the-blank-with-anything> architecture> can work in 99% of your programs', anyone who uses the same architecture 99% of the time is probably writing a lot of poor code.


Meh... 99% of my programs are data logging and instrument control.

 

A state machine is the perfect fit unless I need high speed acquisition, then it's a producer/consumer, but the consumer loop will probably still have a state machine inside it. 😛

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 12 of 16
(977 Views)

@paul_cardinale wrote:

@RTSLVU wrote:

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

 


Ugh!  While it's generally true that 'a <fill-in-the-blank-with-anything> architecture> can work in 99% of your programs', anyone who uses the same architecture 99% of the time is probably writing a lot of poor code.


I would say that is only strictly true if 99% of your projects are 99% different from each other.  I would say that 99% of the time, generalization isn't the best thing.  😉

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 13 of 16
(965 Views)

@billko wrote:

@paul_cardinale wrote:

@RTSLVU wrote:

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

 


Ugh!  While it's generally true that 'a <fill-in-the-blank-with-anything> architecture> can work in 99% of your programs', anyone who uses the same architecture 99% of the time is probably writing a lot of poor code.


I would say that is only strictly true if 99% of your projects are 99% different from each other.  I would say that 99% of the time, generalization isn't the best thing.  😉


No sense reinventing the wheel.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 14 of 16
(941 Views)

@cy... wrote:

@RTSLVU

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

 

also wondering why: sequentially? race conditions?


Over use of sequence structures is a huge sign that the programer did not understand the "Data Flow" concept LabVIEW programming is based on. 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 15 of 16
(938 Views)

Thanks for the replies everyone.  For some reason it started mysteriously working again. I'll return to this if there are any more problems.  

0 Kudos
Message 16 of 16
(913 Views)