LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

can i write "data" on the graph?

hi,
i have a graph in which i am plotting three parameters simultaneously against time. one is the real time data and other two are its lower and higher limit. Now when my real time data goes out of limit, i want the user to be able to mark a circle there, or write there. please see the attached bitmap file for detailed reference. is this possible?
0 Kudos
Message 1 of 3
(2,380 Views)
You can do it with some position calculation and some spare controls.

For each bunch of data you add to the graph you have to calculate the position where the limit was exceeded. You can use property nodes to get the position and size of the graph and the min and max time of the x-axis. This should allow you to calculate the position where to place the control. You need some controls outside the visible aerea and move one of them into the right place. Then the user can enter some text. With the next bunch of data move the control to the left. If the point is going behind the left border move the control outside the visible aerea. You must have an idea how much controls must be visible at the same time. You must place them on the FP when editing the VI because you cannot create controls programmatically. You can only move them around or make them visible or invisible.

If you use the visible property of the control you can find an unused one when a new point goes out of limit.
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
0 Kudos
Message 2 of 3
(2,364 Views)
Hi

There are built in vis that give you the possibility to check a signal against limits. The VIs are located on the palette in Analyze >> Waveform Monitoring >> Limit Testing.

The VI "Limit Testing" returns all the signals you require (upper & lower limit, measured signal and the peaks out of range.

Search the example-library with the keyword "limits" and you should find the "Limit Testing Measurement" vi. This shows you how to use the limit vis.

Hope this helps.

Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 3 of 3
(2,361 Views)