LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Writing explanations on Graph when VI running?

"I wish to write information on the front of a Waveform Graph while the VI is running but I am unable to do that unless the VI is stopped i.e. add text that will indicate the slope of a rising pressure pulse, the time between two pulses, or the frequency of a group of waves etc. All this has to be done while the VI is "on" otherwise the Cursors only give very basic information. These notes are required to draw attention to certain areas. Without help to do this everything has to be written in a notebook then written on the graph when the VI is halted.
Regards,
RL
0 Kudos
Message 1 of 7
(3,250 Views)
You could create a string indicator and control the visibility property. I have attached a modified version of the Basic Single Tone Measurement vi. Notice how I have added a string indicator and controlled how it is hidden and then made visible every other loop iteration. You could change what is displayed and then make it visible/invisible whenever you want programatically.
- tbob

Inventor of the WORM Global
0 Kudos
Message 2 of 7
(3,250 Views)
Thank you for the reply but after I have taken a measurement I would like to keep the VI running so that I can use the cursors to measure, say, the slope of the pulses, previously measured, or the frequency. If "Stopped", the VI Labview limits feedback to cursor position but if it is running the functions wired to the Cursor Data will give Slope, Frequency and other calculations. I need to write this information after the measurements are taken. Only then is the graph printed.

It is possible to write information in a String Control while the VI is running but the position of the text is predetermined and cannot be repositioned. I do this already so that experiment details can be modified before saving to tdm format.

Here is a nonsense graph to gi
ve an idea of what I want to write.
Regards,
RL
0 Kudos
Message 3 of 7
(3,250 Views)
Maybe I don't quite understand what you are having a problem with. Can't you just put the entire code into a while loop with a stop button, and a case condition to execute your measurement in the first loop only? Then the VI keeps running and you can do your cursor functions and string displays until the stop button is pressed.
- tbob

Inventor of the WORM Global
0 Kudos
Message 4 of 7
(3,250 Views)
Thank you but it looks like my challenge has overcome by most people here. I found that I could not write on the "face" of the graph unless the Stop button was activated. I believe that you are writing that it is possible to do this without activating the Stop by putting a case structure within a while loop. I don't know enough about what to put where unless I try permutations and combinations until something works.

Is it possible to tell me what will allow me to continue to measure and still be able to write notes on the graph "face"?
Regards,
RL
0 Kudos
Message 5 of 7
(3,250 Views)
If you are trying to manually type in notes from the keyboard onto a front panel while the vi is running then forget it. Can't be done.
You could put a string control on the graph or anywhere on the front panel and type into the control while the vi is running. If you wanted multiple notes, you would have to create other string controls. Of course you cannot easily resize or move these controls while the vi is running. There is a way to add, resize, move controls programatically but it is complex and would be beyond the scope of this forum. Practice using event structures and property nodes. With these you could perform what I think you want to do. Here is an example of having one string control on a graph.
While the vi is running, you can click inside the text box on the graph and type in notes.
- tbob

Inventor of the WORM Global
Download All
0 Kudos
Message 6 of 7
(3,250 Views)
Can u send me the labveiw 7.o version of your vi
Suresh Thangappan
0 Kudos
Message 7 of 7
(3,250 Views)