06-29-2018 06:15 PM
Hi,
I am writing a program in labview that outputs voltages and reads current values, and the current values I read must be recorded onto an excel sheet. In order to retrieve these current values, I have used "Get Waveform Components vi," and then use "Delete from array" to delete from the array of doubles that I get from the waveform components. For some reason, when I record the data, I get arbitrary zeros in the middle of the data instead of actual current data, and I can't seem to figure out why. If you understand what the problem is or have had it before, and know how to fix it, please let me know. Attached here is an example of my current document. You can see that there are arbitrary zeros, which I do not even see on my waveform graph in the actual vi.
Thanks,
06-29-2018 06:23 PM
Delete from array doesn't seem to be applicable here, but you'll have to upload your VI to get any more detailed help.
06-29-2018 06:30 PM
Hi,
This is the vi. It is a voltage zapping program. You can ignore most of it except for the part on the bottom where "Get waveform components" is used to retrieve current data. Thank you for your willingness to help.
06-30-2018 12:02 PM
It's a bit of a mess going on there, and I've never used the dynamic data before so I can't help you there. Your zeros probably come from the array manipulation you're trying to do, you can place probes and breakpoints to see what the data going in looks like.
06-30-2018 04:00 PM
Here are some recommendations that will make your code vastly easier for both you and "naive viewers" (namely us) to understand it:
Bob Schor
07-02-2018 01:18 AM
Hi gregoryj,
Thank you for your suggestions. Do you know of an efficient way to convert waveform data into a 1D double array, and then isolate the values of that 1D array? I guess the first part of that process would be to use "Get waveform components," but how would I approach retrieving individual elements from a 1D array of doubles in the most efficient way possible? Please let me know.
Thanks,
07-02-2018 08:11 AM
@kylonia wrote:
but how would I approach retrieving individual elements from a 1D array of doubles in the most efficient way possible? Please let me know.
Index Array to get an single data point. Array Subet to get a series of data points.