LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Graphs problems

Hi everyone

In a class I must graph the behavior of a Nikan MT-GN100 module (control module of a DC motor). The graphs I intended to get them from Labview (XY graph or Waveform graph), but when I get the data from a csv file I get this:Graph.PNG

At first I thought it was the format of the XY graph, but even with a Waveform graph shows the same. I tried to change the format of the graphs, but it still shows a change of thickness after 1 second (1000 ms in the horizontal axis). I was expecting 4 lines, what am I doing wrong?

 

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

The graph and chart shows exactly what you have ordered. If you will zoom in the chart, you will see "oscillations":

Screenshot 2017-04-14 22.02.51.png

This is result of array's reshaping. Not sure why you need this. If you just need to show each column of the csv file on separate curve on the graph - just use Index Array.

 

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

First of all, if you look at the data file, there are 5 columns of numbers, all going from 0 to 5 at various times.  To me, this looks like 5 channels of data, possibly sampled at equal time intervals.

 

Assuming this was true, I wrote a one-function routine that produced the following Waveform Graph -- does this look more reasonable?Plot of 5.pngSince you are doing this for a class, I'm not going to show you the one function that does this.  However, I will give you two hints -- you know this function already, and if you read the Help carefully, you can avoid all the other functions in your VI.

 

Bob Schor

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