04-12-2013 05:57 AM
How can I multiply array elements with their index values.
Thanks in advance.
Solved! Go to Solution.
04-12-2013 06:00 AM
04-12-2013 06:14 AM
A slightly modified version
04-12-2013 06:27 AM
Thanks GerdW,
Now I have two arrays. One contains the measurement values and the other has the time for each point. How can I combine these two to have dynamic data with time. Therefore I can filter, graph or write data to a file with time values.
Best regards,
Aksoy
04-12-2013 06:32 AM - edited 04-12-2013 06:36 AM
Hi aksoy,
when your data samples are evenly spaced in time you could use a waveform.
But as a generic answer to your generic question I would tend to "stick with your two arrays"!
- You can easily plot them using an XY graph.
- You can easily save them using WriteToSpreadsheetFile.
- You can easily filter them depening on your time array.
- You can easily attach new samples to each array.
04-12-2013 06:35 AM
You can use the build waveform function to achieve this.
04-12-2013 07:06 AM
Thanks All,
How can I convert double 2D array to waveform to generate a waveform with time values?
04-12-2013 07:09 AM
Hi aksoy,
you can't (easily) convert from 2D array to waveform.
As I mentioned before: when your samples are evenly spaced in time you might convert to a waveform: A waveform consists of start time t0, sample time dt and sample values Y. No need for an additional array with time values here...
If this doesn't apply: stick with two arrays!
04-12-2013 07:16 AM
Dear GerdW,
I think more or less my problem is clear. I have 2D array with data values. I need it with time values attached to it. Therefore I can play on it easily. Thus I am a new bei in labview. Any suggestions is wellcome.
Best Regards,
Aksoy
04-12-2013 07:17 AM