Hi Ryan,
You are correct. I was fooled because it works fine in demo mode but the latencies are different for actual spectrometers. This should work better:
For motor% = 1 To NumberOfTunableSpecs%
If Not bdone(motor%) Then
Call RealTimeGetCounts(motor%, motor%, counts!(motor%), counttime!, bdone(motor%))
If ierror Then Exit Sub
If Not bdone(motor%) Then alldone = False
End If
Next motor%
john