LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do i create waveformarrays to be used by waveform vis??

I haven't been able to find resonable documentation on using waveform datatypes, such as creating waveformarrays. The only method i've found is to create a waveform within a for loop with indexing. But this is not satisfactory. Building an array of waveforms using the buildarray function doesn't work. Creating an indicator for a waveformarray and using replace array subset function doesn't work.

Can you suggest a good reference for specific examples of how to read, write, ceate, rearrange, waveformarrays of the waveform datatype?
0 Kudos
Message 1 of 4
(2,862 Views)
Try this:

Look at the components of the waveform. They are: Y, t0, dt. So, to build one, you need to create those elements. You can easily create an array of Y using the methods you tried for waveforms, so then all you have to do is bundle in the other two elements and you have a waveform.
0 Kudos
Message 2 of 4
(2,862 Views)
LVG: Thanks for the quickness of your response.

Let me restate the question: I already have waveforms created and now want to create a waveformarray.

Do you mean that Y can be a multidimensional array? In a single waveform i have not been able to make Y a multidimensional array. An indicator of the non-indexed o/put from a for loop looks like an array of waveforms, but i am having problems accessing the waveformarray using the standard array functions.
0 Kudos
Message 3 of 4
(2,862 Views)
> Let me restate the question: I already have waveforms created and now
> want to create a waveformarray.
>


The array of waveform is truly like any other array. If you are having
problems accessing them, it might be because you are using both the loop
and indexer to get at a one dimensional array. Remember to turn off the
loop indexing if you wish to have random access. If you want sequential
access, no need to use an indexer, just turn indexing on for the loop
tunnel.

If this isn't the problem, please be more specific as to what problem
you are having.

Greg mcKaskle
0 Kudos
Message 4 of 4
(2,862 Views)