LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problems with waveform chart

Hi guys,

here I am again with another issue... I just need your help to a small issue, the attached VI is my project...the problem i have is that my waveform chart only shows 0.065 seconds of data, i needed it to show the total time of the test...if possible, coordinated with the time selected by the user in "time to test"...

Is it possible?

Can anyone please help me?

Best regards,

Jimmy
0 Kudos
Message 1 of 12
(2,705 Views)

Hi,

 

Right click your chart and select properties. In properties set the X axis scale minimum and maximum values as per your requirements. Select autoscale if you want it to be automatic. To set the X axis scale programmatically, select the property node X-axis->Range and wire the limits accordingly (in your case, you can wire it to the "time to test".

Capture.JPG


Regards,
Nitz

(Give Kudos to Good Answers, Mark it as a Solution if your problem is Solved;)) 

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

Hi,

yes i know that...the problem is that the plots only appears in a 0...0.0065 seconds loop... everytime it runs this time value the graph resets/updates... I needed to get the entire line at the end of the test...since the beggining to the end....

 

Many thanks in advance,

Jimmy
0 Kudos
Message 3 of 12
(2,681 Views)

Because you are not using a waveform chart.  You are using a waveform graph.  A chart is the object that stores the history of what was written to it before.  A graph only displays what is sent to it on each iteration.

 

By the way, you can drag the bottom of the merge signals functions downward to allow it to merge more than two signals at a time into a single function.

0 Kudos
Message 4 of 12
(2,677 Views)

Hi Raven,

ok. So, if I substitute the graph for the chart my problem will be solved, right? And thanks for the tip about the merge signal. Can just explain me another thing, how can I export the chart to a spreadsheet like I do with the export to excel? I wanted it to, at the end of the test, export the data to excel but also to export the chart...

Many thanks in advance

 

Best regards,

Jimmy
0 Kudos
Message 5 of 12
(2,671 Views)

Yes, put in the waveform chart instead of the waveform graph.

 

What do you mean exactly with exporting the chart?  You  said you want to export the data.  That you can do.  But are you saying you want to essentially copy the chart to Excel?  I don't know of a way to do that directly.  An excel chart is based on the data in the spreadsheet.  So all you can do is get the data from LabVIEW to Excel, then use ActiveX commands (or the Report Generation Toolkit) to build a chart in Excel based on the data you copied into the spreadsheet.

 

If there is a method that I don't know of, then I'm sure someone will jump in and let us know.

0 Kudos
Message 6 of 12
(2,665 Views)
Don't forget that the chart has a limited history that you must set. Once you exceed the history value, old data is dropped to be replaced by new.
0 Kudos
Message 7 of 12
(2,661 Views)

Ok Raven,

what i was asking is if there is a way to export the chart? Like exporting the image on the front panel, or something like that...what i really need is when the time elapses the program exports me the image of the chart to a blank page... Like it's happening with the data that is exported to excel when the time elapses. I needed something of that kind... Did you understood me? I'm sorry for my bad english...

Thank you very much for your help 🙂

 

Best regards,

Jimmy
0 Kudos
Message 8 of 12
(2,656 Views)

Hi Dennis,

thanks for your tip. Where can i change that value?

 

Best regards,

Jimmy
0 Kudos
Message 9 of 12
(2,655 Views)

Create an invoke node for the waveform chart.  There is one called Export Image that will send an image of the chart to either the clipboard or a file.  You can then import that file into Excel or paste the image into an Excel workbook.  There are also options to export the data from the chart to either Excel or the clipboard.

Message 10 of 12
(2,653 Views)