LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with XY Graph looking like a scribble

Two questions:

1) The in range and coerce module, the wire that runs from the In-range? Output, does that delete data not in range?

2) I don't understand the use of imaginary values when constructing the plot.

 

Mike

Mike
0 Kudos
Message 11 of 26
(319 Views)

@MikeBowen wrote:

Two questions:

1) The in range and coerce module, the wire that runs from the In-range? Output, does that delete data not in range?

2) I don't understand the use of imaginary values when constructing the plot.

 

Mike


  1. it will output the value coerced to the limits, but since the conditional tunnels skips all out of range data it does not matter either way.
  2. XY plots understand a rich set of datatypes:
  • An array of points (each "point" is a cluster of scalars x and y)
  • A scalar cluster containing x and y 1D arrays
  • A 1D complex array where RE=x and IM=y (my personal preference!)
  • combinations of the above for multiple plots (but all plots must be of the same type!)
  • etc.
0 Kudos
Message 12 of 26
(317 Views)

You lost me on the tunnel.

 

Mike

Mike
0 Kudos
Message 13 of 26
(307 Views)

Here's the light at the end of the tunnel... 😄

 

The autoindexing output tunnel skips elements where the boolean is false.

 

(right-click...conditional)

 

altenbach_0-1743293660022.png

 

 

0 Kudos
Message 14 of 26
(301 Views)

The final for loop, does that code modify the curve?  The picture I got was very sinusoidal.  

 

 

 

 

MikeBowen_0-1743337778381.png

 

Mike
0 Kudos
Message 15 of 26
(280 Views)

Recommendations:

 - Format your data file to be consistent.

   - Same number of columns in every row

   - Have a dedicated column for each sensor

   - Sort data by date.?

 - In your code, if you want to process and view the data chronologically, you should sort each sensor/channel by the date/time

 - In your display, you can just show points:

dsbNI_0-1743341056161.png


Edit: Sorry, I was staring at a cached version of the thread when I started responding, so I missed that Altenbach and OP have been active.

Doug
Enthusiast for LabVIEW, DAQmx, and Sound and Vibration
0 Kudos
Message 16 of 26
(277 Views)

@MikeBowen wrote:

The final for loop, does that code modify the curve?  The picture I got was very sinusoidal.  


No, it does not modify any data, it just unbundles the data as sorted by time.

 

I don't see anything "sinusoidal". Are you talking about the slow or fast oscillations?

0 Kudos
Message 17 of 26
(266 Views)

I took a look at the first rev code which plotted against time index, and it was sinusoidal in nature in that it was up and down.  This data has the same repetition, so it's my bad.

 

The other plots are intermittent in nature, which makes it hard to see that data.  I probably need to blow the data up and look at it slowly.  Any recomendations on how to look at the notes?  When I pull out the data I will add the notes and make that available, but it could involve a hundred or so points to look at.

 

Mike

Mike
0 Kudos
Message 18 of 26
(261 Views)

If the fast oscillations are noise, you could filter the data.

 


@MikeBowen wrote:

  Any recomendations on how to look at the notes?  When I pull out the data I will add the notes and make that available, but it could involve a hundred or so points to look at.


I would just add the note (I assume there is only one note for each time point and time points don't contain duplicates) as a string to the cluster. Each cluster will have a time, an array of values from the various sensors, and a string for notes.

0 Kudos
Message 19 of 26
(258 Views)

@altenbach wrote:

Each cluster will have a time, an array of values from the various sensors, and a string for notes.


Here's how that could look like....

 

altenbach_0-1743352101245.png

 

Message 20 of 26
(255 Views)