LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

data loss

A problem I am having recently is data loss within the Labview program.  I made an oscilloscope with LabVIEW 8.1 and I take in two inputs and it works like the actual hardware... awesome!!!  But when I send the data from the "oscilloscpe" (xy plot)  to an intensity plot, it only plots half or less of the data from the oscilloscope.  Any advice?
0 Kudos
Message 1 of 6
(2,877 Views)
Perhaps I should have named this thread as how to convert data without losing any of it  via the transport adn conversion process.
0 Kudos
Message 2 of 6
(2,859 Views)
You have some errors in your code:
  • You have your for-loop set up for auto-indexing, but you also have a constant wired to the "N". Can't do both. Not sure what you want to do.
  • The tunnels in your for-loop need to be shift registers. Otherwise, the Replace Array function is always replacing the original array that the for-loop receives.
Message 3 of 6
(2,854 Views)
The data from the DAQ is like an array, well two arrays.  One for X and one for Y values for the XY plot.  But the DAQ does not simply give up one X and one Y at a time, with every cycle it plots numerous points, thus I needed an array to store them (orange lines).  In regards, to the for loop... I want to make sure I plot every single point in the arrays onto the intensity plot, but for some reason, the intensitiy plot does not display all the values shown on my XY plot.
0 Kudos
Message 4 of 6
(2,847 Views)
Thanks smercurio_fc!!!  Robot Very Happy

What do you think now?
0 Kudos
Message 5 of 6
(2,838 Views)
Well, that fixes the errors in your code, but I don't quite understand your last statements. It seems as if you're trying to build some sort of 2D histogram, but I'm not sure. I don't have whatever device you're getting data from, so I don't know what the data is supposed to look like.

One warning: since you're using the Express Build XY Graph that VI will eat up memory quite quickly with the "Reset Graph" set to false. Also, it will slow down the computer quite quickly. On my system LabVIEW jumped to 100% CPU usage iafter about 1 minute as it was trying to shuffle memory around.
Message 6 of 6
(2,828 Views)