Creating A list of waves
Dolbash
Is there a way to a) lengthen the number of points in a wave?
b) make a list of waves that are in a data folder in root ex. "root:NormalizedWaves:'WavesFor Stats':"
c) have each of the waves be assigned a number 1 through N (N is number of waves), and than be able to call those waves by their corresponding number so that I could
duplicate the content of that wave that was called into an existing wave?
InsertPoints
can be used to increase the number of points in a wave, or you can useConcatenate
to combine wavesb and c) Look at
WaveList
February 24, 2017 at 10:22 am - Permalink
redimension
command.Waves of waves are possible using the /WAVE flag in a
WAVE
statement... but I doubt that you want to use this (wavelist
might be better)HJ
PS: have a close look at the
$
operatorFebruary 24, 2017 at 10:25 am - Permalink
February 24, 2017 at 10:31 am - Permalink
wavelist
separated by ";") and usestringfromlist
to extract the individual names. Convert the names into a reference via$
and there you are.HJ
February 24, 2017 at 10:56 am - Permalink
DFREF MyFolder=root:NormalizedWaves:'WavesFor Stats':
// Counts the number of waves in MyFolder
Variable NumberOfWaves=CountObjectsDFR(MyFolder, 1)
// Creates a list of all waves in MyFolder
MakeO/WAVE/N=(NumberOfWaves) AllWaves=MyFolder:$GetIndexedObjNameDFR(MyFolder, 1, p)
Alternative using WaveList
DFREF MyFolder=root:NormalizedWaves:'WavesFor Stats':
// Changes the active folder to MyFolder
SetDataFolder MyFolder
// Returns a semi-colon seperated list of all waves in MyFolder
ListOfWaves=WaveList("*", ";", "")
// You can access the waves in the list using:
Wave MyWave=MyFolder:$StringFromList(index, ListOfWaves, ";")
February 24, 2017 at 11:27 am - Permalink