XPS Unified Programmer’s Manual
7.2.1.384 XYPVTLoadToMemory
Name
XYPVTLoadToMemory – Load some lines of PVT trajectory to the controller
memory.
Input tests
- Refer to section 7.1: “Input Tests Common to all XPS Functions”.
- Checks trajectory data (data length must >0 and ≤400): (-3) or (-17)
- Checks group type (must be a XY group): (-8)
- Checks group name: (-19)
- Not available in this configuration (PrecisionPlatform firmware only): (-24)
Description
This function loads some lines of PVT trajectory into XPS controller memory. Each
trajectory element must be separated by a comma. The trajectory lines are separated
between them by a “\n” (LF) character. To verify or to execute the PVT trajectory
loaded in memory, use the string “FromMemory” instead of a file name.
NOTE
All of the PVT functions, when called with the string “FromMemory” instead of a
FileName, will perform the same operation as the PVT trajectory in RAM as it
does from a disk.
Example:
XYPVTLoadToMemory(socketId,myGroup,”dT1,dX11,Vout11,dX12,Vout12\n…d
Tn,dXn1,Voutn1,dXn2,Voutn2\n”)
XYPVTVerification (socketId,myGroup,FromMemory)
XYPVTExecution(socketId,myGroup,FromMemory,1).
Prototype
int XYPVTLoadToMemory(
int SocketID,
char GroupName[250],
char TrajectoryData[400]
)
Input parameters
SocketID int Socket identifier gets by the
“TCP_ConnectToServer” function.
GroupName char * Group name.
TrajectoryData char * Trajectory data lines.
Output parameters
None.
563 EDH0373En1023 — 01/18