LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Play Sound File triggered by notifier breaks after 21 days


@JÞB wrote:

 

The I terminal of any loop will stop incrementing at 2^16-1 & continue to output 2^16-1 forever for each > 2^16-1 iterations. That is just as big as an I32 can get.  It does not roll over to 0x00 (-2^16)

Jeff means 2^31-1, of course. At some point he will remember how powers work. His point about the loop not getting stuck does stand, though.


___________________
Try to take over the world!
Message 11 of 25
(1,512 Views)

@JÞB wrote:

 

 

I too have used a non-determinisic OS to run 24/7/365.  I was insane at the time.  I cannot speak for others


I can also only speak for myself, but insanity has also been part of my coding past.

0 Kudos
Message 12 of 25
(1,496 Views)

@tst wrote:

@JÞB wrote:

 

The I terminal of any loop will stop incrementing at 2^16-1 & continue to output 2^16-1 forever for each > 2^16-1 iterations. That is just as big as an I32 can get.  It does not roll over to 0x00 (-2^16)

Jeff means 2^31-1, of course. At some point he will remember how powers work. His point about the loop not getting stuck does stand, though.


Argh..... yes.  Thanks for the correction.   


"Should be" isn't "Is" -Jay
0 Kudos
Message 13 of 25
(1,469 Views)

@tst wrote:

@JÞB wrote:

 

The I terminal of any loop will stop incrementing at 2^16-1 & continue to output 2^16-1 forever for each > 2^16-1 iterations. That is just as big as an I32 can get.  It does not roll over to 0x00 (-2^16)

Jeff means 2^31-1, of course. At some point he will remember how powers work. His point about the loop not getting stuck does stand, though.


You are question Jeff's super powers? 😉

---------------------------------------------
Former Certified LabVIEW Developer (CLD)
0 Kudos
Message 14 of 25
(1,465 Views)

@Frozen wrote:

@tst wrote:

@JÞB wrote:

 

The I terminal of any loop will stop incrementing at 2^16-1 & continue to output 2^16-1 forever for each > 2^16-1 iterations. That is just as big as an I32 can get.  It does not roll over to 0x00 (-2^16)

Jeff means 2^31-1, of course. At some point he will remember how powers work. His point about the loop not getting stuck does stand, though.


You are question Jeff's super powers? 😉


The 8-ball superpowers don't govern brain glitches.  😄

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.
0 Kudos
Message 15 of 25
(1,440 Views)

If instead of 21 days it's actually 24.855 days, then you've hit a runtime millisecond limit.

 

If it's definitely closer to 21 days, then you've hit a different limit (such as the reference limit mentioned earlier).  Can you be more exact?

0 Kudos
Message 16 of 25
(1,425 Views)

@kyle97330 It was <19 days (I checked on Monday morning after a weekend) for the last failure. I don't have enough data to know that it happens at precisely the same time every time. 

0 Kudos
Message 17 of 25
(1,420 Views)

I've zipped up two example VIs along with the .wav files I'm using.

I'm using LabVIEW 2020, but I have saved for LabVIEW 2018. At least, I think I did. I've never tried to save-for-previous before.

 

"WavFileAlarmDemo.vi" is analogous to what I have in-use right now, which seems to be failing once every 3 weeks.

"SimulatedAlarmDemo.vi" is a proposed alternative that simplifies the alarm to just "on" or "off" and uses different sound VIs.

 

 

My second alternative option may end up being a physical buzzer alarm, controlled as detailed here:

https://forums.ni.com/t5/LabVIEW/relay-activation-using-rs-23/td-p/2814656

 

Thanks for your time!

0 Kudos
Message 18 of 25
(1,417 Views)

@billko wrote:

@Frozen wrote:

@tst wrote:

@JÞB wrote:

 

The I terminal of any loop will stop incrementing at 2^16-1 & continue to output 2^16-1 forever for each > 2^16-1 iterations. That is just as big as an I32 can get.  It does not roll over to 0x00 (-2^16)

Jeff means 2^31-1, of course. At some point he will remember how powers work. His point about the loop not getting stuck does stand, though.


You are question Jeff's super powers? 😉


The 8-ball superpowers don't govern brain glitches.  😄


It is Jay!  I did mention that sanity has not always been observed. 

 

Frankly, my 8-Ball is a little low on purple fluid.( lots of air in the mechanism) 2^31-1 isn't all that bad.


"Should be" isn't "Is" -Jay
0 Kudos
Message 19 of 25
(1,395 Views)

Sorry you are having issues with the sound tools.  Someone at NI years ago told me about how that code is pretty shaky, and legacy in some ways.  So I'm not too surprised to hear it falls on its face after a while.  I'd hope there are alternate ways to invoke playing a sound more reliably, like maybe a command line call to VLC to play a file, then exit.

 

If you do go the relay method, I highly suggest you look into using an Arduino.  They are cheap, readily available, come in many variations, and there is the LINX, or older LIFA toolkits to control them.  In the past I would grab an Uno (one of the cheaper Arduinos), and put a relay shield like this one on it.  Then from LINX, or LIFA you just set a digital line high or low, and the relay will toggle.  I even got fancy once with a touch screen, allowing to read inputs, or set outputs without a PC.  I also added an ethernet port so LabVIEW could control relays not connected directly to the PC.  The touch screen was used to set static IP address information too.  But if you have a spare USB port you can just use that.  And for DIO stuff it can be pretty slow, and won't use up much resources.

0 Kudos
Message 20 of 25
(1,228 Views)