I have been able to get the data and plot it, but on its own it's pretty useless as PlotY (in the documentation demo) only plots the values against the scan number.
How can I create a second array of time values to pass to PlotXY with the data?
I tried using a for loop to create the time array. This worked, I then created another array as follows:
xyData = Array(times,AcqData)
where AcqData is from the Read Function and Times is my array of times.
I was sure this would work, but I got the error message 'Array Dimension Mismatch'.
In my code:
CWAI1.Read 96000, AcqData, ReadSpec
and the time array is made using:
TimeInterval = 1 / 96000
ReDim Times(96000)
Times(0) = 0
For t = 1 To 96000 - 1
Times(t) = t * TimeInterval
Next t
xyData = Array(Times, AcqData)
Does anyone know what this is happening?