From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Graphical data output using charts

Solved!
Go to solution

Hi All

 

I have a signal in the range from 0 to 1000 mV that I'm aquring using my ni usb daq device over a period of time.

let's say I'm going to connect the DAQ Assistant to the waveform chart and display the signal on the chart.

 

The chart is going to plot volts vs. time and after about 60 seconds of acquisition (for example) ,Now I want to analyze the data on the chart "Visually" ,using my eyes ,then choose some points (x,y) from the chart in order to use them for calculations in my vi.

 

Is it possible in labview to click on points on the chart using my mouse and then take the "x" value (because I'm only interested in knowing information from the x-axis) that represents the relative time in my case ,and then undergo calculations using this value ?

 

I'm new to labview so forgive me if this function is already there but i don't know how to use it.

 

Thanks in advance

Regards

 

Shady

0 Kudos
Message 1 of 12
(2,885 Views)

Hi Shady,

 

there is no ready to use software implemented. You think of a cursor-mode? It's not impossible to realise something like that, but it wouldn't be done in a few minutes!

What do you want to achieve? There are already some handy tools like "Waveform Min Max VI" which determine min/max-Values of the waveform for example...

0 Kudos
Message 2 of 12
(2,857 Views)

Strange that you did not get more feedback yet.

Chart don't have cursors, which is what you would need to implement the basic function you are describing. However to some extent you can obtain what you want using an "Invoke Node" as shown below (VI attached, LV 2011):

 

 

ScreenHunter_001.jpg

 

0 Kudos
Message 3 of 12
(2,853 Views)

X

 

Thanks a lot for your reply ,and yeah i didn't get feedback except from you 🙂 .

I will just ask you for one more favor ,its that I have labview 2010 and the file is saved using 2011 ,Can you please save it to the previous version so i can open it .

 

Also I want to ask you one more question ,I'm new to labview ,sorry ..You said charts doesn't have cursors ,I saw a function named cursors in the "waveform graph" ,will this make it easier for me to do the described function using the waveform graph and not the waveform chart ? ,and then i will have to save the data and preview it on the graph ? ...I'm sorry i didn't deal with graphs before so I don't know what "cursors" are in graphs ,I just started programming with labview recently and all that I know about graphs is that graphs only deal with arrays of data so i will have to wire it to an array containing the data that i want to analyze.

 

Thanks a lot again.

 

Regards,

Shady

0 Kudos
Message 4 of 12
(2,848 Views)
Solution
Accepted by topic author shadymohamed

LV 2010 version attached.

 

I suggest you read the help on graphs and charts and check out some of the examples (Help>>Find Examples and search for chart or graph).

Charts will store only a finite amount of data (defined via History Length, default = 1024) but require very little work from you. You just feed it a scalar (or an array if you want to display serveral traces) and it will update the x axis, scroll it, etc. Since it will loose data, I suppose that's why NI did not bother with cursors, but I don't know.

With a Simple graph, you would have to feed it the WHOLE trace, so if you did get it point by point you would have to add each value to an array, feed that updated array to the Graph. A bit more complex for a novice like you, but not that difficult. Again, check the examples. But you could show the cursors (visible items> Cursor Legend) and read the XY coordinates of your mouse without any programming.

Good luck!

Message 5 of 12
(2,841 Views)

X

 

I don't know how to thank you 🙂 ,this is what exactly i've been looking for .

 

I will just ask you one more question ,I'm sorry I've been causing you a headache I know 😄 ..

 

snap.JPG

In order to catch the x and y coordinates from the output of the chart and make calculations on it ..I constructed a case structure and made a boolean control for it in order to take the output from the coordinates and process it . but the thing is that I can't press the boolean control coz when i move the mouse it takes another xy reading ,so I made a little trick there that I made a key navigation shortcut for the boolean control that "catch" the data (Process Data Button) and I press it while i'm hovering with my mouse over the coordinate.

 

the question is that ,Is there any other way ,that i can catch those coordinates with the click of my mouse on it only or what I have done is the farthest I can go with that ?

 

I'm ok with what I have done now ,but I will be glad if this one more thing succeeded 🙂

 

Thanks a lot X

 

Regards

 

Shady

 

 

0 Kudos
Message 6 of 12
(2,828 Views)

Lunatic

 

Thanks for replying 🙂 ,I think the feedback form X was what I was looking for.

 

Thanks again,

Regards

Shady

0 Kudos
Message 7 of 12
(2,826 Views)

Now that you appreciated my reply, I'll be willing to give you the answer Smiley Wink
Just jokin'
I already worked out the solution:

Have a nice WE

Message 8 of 12
(2,823 Views)

Lunatic 🙂

 

your reply is much appreciated ofcourse ! ,and I'm not joking 🙂 ,Thanks a lot man .

 

I just have a tiny request ,my LV version is 2010 😞 ,and you save it as a 2011 vi ..I know I have to upgrade ,I promise everybody I will ..but just after finishing this project 😞

 

Thanks a lot Lunatic ,really

 

Regards,

Shady

0 Kudos
Message 9 of 12
(2,815 Views)
Message 10 of 12
(2,808 Views)