LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

marker from spreadsheet in a wavefrom graph

Hi,

I'm trying too get several markers (like lines) in a graph. To get an idea what I'm doing, I've did a measurement and during this measurements people had too do different things. So at those moments I placed a marker in the software off the device. The software was good for measuring, but crape for analysing. So I started too write a program for analysing the signal.If you look at the txt file that I posted than colum 1 gives the samplenumbers. The samplerate was 25 Hz in this case. Colum 2 till 25 is data from the measurement and cloum 26 gives the markers/events. Now I want to read those events and place them in a graph. The biggest problem is, that I never know what other people for markers use. In this case I used O open and S shut. I tried allready several things, but I can't find the solution. I'm using a read from spreadsheetfile to read the file.

Is there anyone who can help me with this. That would really give me a breaktrough in my program.

Thanx
0 Kudos
Message 1 of 2
(2,712 Views)

A couple of options come to mind. One is to use cursors. At each x location where an event is detected, you can place a vertical cursor. Use a different color for each type of event and add a cursor name. See the example Programatically Control Cursors.

Use annotations. You can annotate x,y locations. See the example called Programtically Annotate a Graph.

Use a sepearate plot for each type of event. When you read the file, create a separate array for each event type. Fill the non-event locations in the array with -inf. When plotted, the -inf values cannot be seen. The plot can be set for no interpolation and fill base line to -inf to give the effect of vertical lines wherever the event is.

0 Kudos
Message 2 of 2
(2,697 Views)