LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Use a front panel control for debug statements

Hello All,
In my application I would like to have an indicator on the front panel which will display various debug statements that I will write at different points of the program (so this would be like an action log for the user). It should act like a FIFO buffer so for a buffer length of say, five, it will show the last five actions in the program. Other than using a string array and managing the FIFO while updating the array, is there an easy way to implement this.
 
Thanks in advance.
 
~Roy
0 Kudos
Message 1 of 4
(2,601 Views)
That depends on your definition of "easy". I implemented a "Memory Log" set of VIs and wherever I wanted to get something logged I plopped down a "Memory Log - Add Log Entry" and fed in the string to log. Is it easy? Yeah, not too bad. In the first version I designed I used a listbox and in the second version I used a queue. The queue method was easier to implement and cleaner. I would suggest the queue method.
0 Kudos
Message 2 of 4
(2,592 Views)
Hi, Biomed:

You have Queue Message Logging example shipped with LabView. I think that's just what you need.

Hope it helps,
Aitortxo.
Message 3 of 4
(2,582 Views)
Thanks Aitortxo. I think thats exactly what I need. I took a quick look but did not get why they are reversing the 1D array. I will look into it closely. Thanks again.
0 Kudos
Message 4 of 4
(2,572 Views)