10-15-2015 08:33 AM
Hi James,
The flash only happens once because the logic which includes the wait function resides in an event structure. Is there any way around this, to make the flash continuous. See attachment.
By the way, I use Labview 2013.
Thanks!
10-15-2015 09:17 AM - edited 10-15-2015 09:17 AM
You had me stumped here for a sec because I was seeing two event triggers every time the button is pressed. This was causing the highlight to take twice as long to change color.
You need to change the LED switch action to "Switch When Released", or "Switch When Pressed". For some reason you had it set to "Latch Until Released"....
In order to make the flash continuous, you would need to havea parallel loop that sets it over and over. You could maybe do it with a Timeout case, but then any other event would slow down the flash.
Check out the attached VI.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
10-15-2015 09:19 AM
Sorry James,
I cannot open the version you sent. I use Labview 2013.
Thanks,
TeamHalli
10-15-2015 09:20 AM
Oh, were you able to open the VI I put earlier..?
Here's the latest in 2013.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
10-15-2015 09:30 AM
James,
This is exactly what I was looking for. Thank you very much Sir! You made my day.
By the way, I found someone to convert the VI you sent yesterday.
10-15-2015 09:58 AM
@James.M wrote:
You had me stumped here for a sec because I was seeing two event triggers every time the button is pressed.
Your [clear] button is still "switch until released" while it should be "latch when released". As I explained, that causes the clear event to execute twice in a row. Once this is fixed, you can eliminate the case strcuture in the "clear" event". It is no longer needed.
10-15-2015 01:52 PM
Hi,
The requirements have changed with the way the listbox is generated. Instead of the list being pre-populated and highlighting the True boolean, the items on the list are generated based on some logic (which works already)...Just a brief description:
- If any boolean in the boolean list (shown on the front panel) is True, its short name shows up on the alarm list
- Selecting the short name gives its long name description in the alarm description
- The three arrays in the Boolean list (Array 1, 2, 3) have the same long name description except for the temperature valuess. So instead of shown all, each array is prioritized so that only the highest priority/temperature on that array is shown.
So the difference with this set up and the one I sent yesterday is that only active alarms are shown on the listbox. So I need to be able to flash all NEW alarms on the listbox and keep old alarms transparent. By new items I mean, any boolean that was not True before the clear button was activated. Here I am not sure which array will be the highlighted cells ...
Thanks again for your help.
10-15-2015 02:19 PM
I can't run your VI because you didn't include the Prioritize Alarms VI, but I don't think I need to run it to figure out what you're trying to do.
If you have a pre-populated list of alarms that need to be highlights, you can just add those cell numbers to the local variable I gave you (Highlighted Cells) when the list is populated and for all True values. Does this make sense? You would just do this using array operations to check for True values and then add the corrseponding indices to the Highlighted Cells array.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
10-15-2015 02:45 PM - edited 10-15-2015 02:48 PM
@TeamHalli wrote:
Thanks again for your help.
10-15-2015 03:14 PM
Hi Altenbach,
Can you please elaborate on your bulleted items:
The missing subVi and updated VI are attached.