Alok,
I'm not sure which function you are referring to. But the AcquiredData function returns the ScaledData parameter. This parameter is an array of doubles, but it is returned as a Variant. A short example of this function follows:
Private Sub RunAcquisition_Click()
Dim Voltages As Varinat
Dim BinaryCodes As Variant
CWAI1.Configure
'Set timeout to 5 seconds
CWAI1.AcquireData Voltages, BinaryCodes, 5
CWGraph1.PlotY Voltages
End Sub
As you can see, Voltages is a Variant, but when AcquiredData is called, it returns all the numbers that were acquired into the Voltages Variant (really, an array of doubles). To extract a number you just type
Voltages(index) and that should give the number you need.
Best Regards,
Azucena Perez
Product Support Engineer
Nat
ional Instruments