TDT RZ2 Manual page 132

System 3 series. rz z series
Table of Contents

Advertisement

2-36
int
Sample Code
Description:
C++
C
getLastError
Description:
C++ prototype:
C prototype:
Returns:
int
Sample Code
Description:
C++
C
Examples
The example files below are installed with the TDT drivers package.
Files: C:\TDT\RPvdsEx\Examples\PO8e\PO8eTest.rcx, PO8eTest.exe, PO8e.h
Hardware: RZ2 Real-Time Processor
Overview: PO8eTest.exe connects to any PO8e card(s) in the PC, waits for a
stream then displays the data rate that each PO8e card is receiving. PO8eTest.rcx
streams 256 channels of floats to the PO8e card at 6.1 kHz. Launch PO8eTest.exe
first, run the circuit and then set the zBusA trigger high to begin streaming.
PO8e Streaming Interface for the RZ
Size of each data sample in bytes.
This code determines how many bytes are in each sample.
int
size = card->dataSampleSize();
int
size = dataSampleSize(card);
This returns the most recent error.
int
getLastError();
int
getLastError(void* card);
The most recent error code.
This code determines how many channels are in the current
stream.
int
nChannels = card->getLastError();
int
nChannels = getLastError(card);
System 3

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RZ2 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Related Products for TDT RZ2

Table of Contents

Save PDF