Jump to content

Remove a zero array


Recommended Posts

Posted

Hello,

I am aquiring data from 8 channels (4 devices) so in order to plot them I added a build array (see attached picture) and created a 2d array. If one or more devices are switched off or disconnected this will create an array full of zeros (column H).

How can I avoid this?

post-20867-0-68213900-1336573819_thumb.j

Posted

Quick answer could be something like this :

post-7452-0-69302900-1336576110_thumb.pn

But maybe you could change your whole application to only acquire the data you're going to plot.

Can you show how you setup your data acquisition?

Hope this helps

Posted

Don't turn the device off? You should describe what your ideal outcome is. What you probably should do is conditionally disable plots on your graph.

Posted

Thank you all for your replies,

Ton's idea works but I notice a "display delay" when the waveform array data appear on the chart. When the 2d array is connected to the chart the data appear to move faster.

Darren's article is very interesting, how do I plot an array of clasturs of arrays into a chart?

Antoine's idea creates zero columns like 1 & 2 where as I would like to create columns like 3 & 4:

  • 1 month later...

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.