Jump to content

Graphing a 1D array


cooky

Recommended Posts

Hi everyone,

I've got a 1D array of data that updates a chart every 60 seconds (see attached JPEG).

I want the chart to show a smooth line (currently at 78 on y axis), rather than falling back to 0 between each update. Basically, I want to get rid of the 'saw tooth' effect.

At the moment, I have just wired a waveform chart to source data.

Can anyone please help me??

Cheers,

Cooky

post-1038-1108731322.jpg?width=400

Link to comment

As it seems, when you get the data from your source, you get an array with one valid value (78) and the rest 0's. Extract the valid value of your array (If you are lucky it's on first or last index of your 1D-array) and wire just this sole value to the chart.

To find where the value is in you array run your acquisition just once and wire it to your chart. The index is the x-value of your chart. Then put in your loop an Index Array from the array palette to extract the valid value.

Didier

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.