3.2 Continuous Simultaneous acquisition and Readout (CSR)
46
U5303A User's Manual
Code example
Program examples with streaming can be found in here:
For IVI-C
C
1
:\Program Files\IVI Foundation\IVI\Drivers\AqMD3\Examples\IVI-C
For IVI.NET
C:\Program Files\IVI Foundation\IVI\Drivers\AqMD3\Examples\IVI.NET
Output data format
About output data format, note that each int32 data returned by the function
FetchDataInt32
contains 2 samples (Int 16) in normal mode and 4 samples (int 8) if the Data Truncation is enabled
(DataTruncationEnabled = true). Hereafter is an example of data interpretation in normal mode (16-
bit mode).
long* pDataA;
SafeArrayAccessData(psaWfmDataA, reinterpret_cast<void**>(&pDataA));
for (long i = (long)FirstValidElementsA; i < (long)(FirstValidElActualElementsA);
i++)
{
_int16 s1 = pDataA[i] & 0xFFFF;
_int16 s2 = (pDataA[i] >> 16) & 0xFFFF;
printf("%d\n%d\n",s1,s2);
}
SafeArrayUnaccessData(psaWfmDataA);
CSR Configuration
The interfaces/methods/properties (functions/attributes) listed below are provided by the Acqiris MD3
driver.
CSR acquisition mode may be enabled or stopped.
The different streams are implemented as instances of Stream "repeated capabilities".
There are several type of Stream "repeated capabilities". Detailed help may be found in AqMD3 IVI
Driver Help (Please refer to
AqMD3.chm
(IVI-C) or
Acqiris.AqMD3.Fx40.chm
(IVI.NET)).
IVI-C
Function
AqMD3_StreamFetchDataInt32
This function returns a stream of Elements. The ElementSizeInBits and the meaning of each Ele-
ment depend on the StreamType.
1
Or the alternative drive letter where the Acqiris MD3 Software has been installed on your machine.