In case our current hacky approach does no longer work, we can use this one:
- Make the wave global
- Display it (e.g.
Display wv)
- Call
GetWindow on it to retrieve the wave list (e.g. GetWindow Graph0, wavelist)
- Look into the third column of
W_WaveList to get a wave id

This approach has many downsides, including making the wave global and displaying it.