10-26-2022 12:09 AM
@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.
10-26-2022 02:53 AM
@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.
10-26-2022 09:12 AM
@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.
10-26-2022 09:16 AM
@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? 😉
10-26-2022 10:20 AM
@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
superpowers? 😉
The 8-ball superpowers don't govern brain glitches. 😄
10-26-2022 11:35 AM
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?
10-26-2022 11:54 AM
@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.
10-26-2022 12:04 PM
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!
10-26-2022 01:38 PM
@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
superpowers? 😉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.
11-15-2022 02:00 PM
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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord