LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to add data on a graph

Hi,

I'm have an ECG signal (foonn.txt) and a VI that reads and displays this signal to me (ReadFoonn). What I want to do is to add more information there. I want to highlight certain episodes on the graph as shown in file graph.jpg. I have given the value of 2 for the episodes. The episodes I need to add there are in seconds for example 14500-16000. The time axis in my VI should also be in seconds, but I managed to convert that in 01:23:45 format. The episode indicators don't have to be exactly like this. Any ideas?

Download All
0 Kudos
Message 1 of 3
(2,537 Views)

Hi hnr707,

 

I am still not entirely sure what you are trying to accomplish with the VI. From what I understand is that you want to programmatically highlight certain sections of the text file that you are reading if they are greater than a certain value( or a spike in the data). One way to possibly do this would be to compare the array with a constant number and send that true or false output into a for loop with the tunnel set as Auto-Indexed and then have a case structure in there with if it is greater than the constant number you could keep that number in the array and if it is lower than the constant number you could send out a zero and then plot this new array to show you where the signal is spiking. I hope this helps you out!

 

Regards,

Tommy G.
Product Manager - Search, My Account, and Chat
0 Kudos
Message 2 of 3
(2,500 Views)

I hope thats can help you, using cursor in the graph and adding a indicator. Also work with multiple plots giving a 1-d array.

Nueva imagen (8).jpg

regards

0 Kudos
Message 3 of 3
(2,484 Views)