Rename free waves
Fri, 10/28/2022 - 11:17 am
One of the cool IP9 features is that free waves can now have names which greatly help with debugging. But what if the free wave comes from another function so you can't decide the name yourself? Well you can leverage the power of MoveWave and give it a new name. This touches a bit the dark corners of IP though.
// create free wave with the name being the wave reference name
// prints 'mywave'
// create a free datafolder
DFREF dfr = NewFreeDataFolder()
// move the free wave into the free datafolder giving it a new name
MoveWave mywave, dfr:$"newname"
// prints 'newname'
// the wave is still free
// don't delete dfr though and just let it go out of scope
Igor Pro 9
Igor XOP Toolkit
Igor NIDAQ Tools MX