Simulator (only for pc simulator), Simulator, Copyfiletoterminal – Argox PA-20 Programming Guide User Manual

Page 107: Backupdatafiletopc, Sim_setscannertype

Advertising
background image

PT-20 Programming Guide

105

Simulator

(Only for PC Simulator)

CopyFileToTerminal

Purpose:

Use BackupDataFiletoPC to copy data file to C:\Data directory in PC.

Syntax:

void CopyFileToTerminal(char *pssPCFileName, char *pssPDTFileName);

Example call:

CopyFileToTerminal("..\\Lookup\\MenuLook.dat",

"D:\\Lookup\\MenuLook.dat");

Includes:

#include “SDK.h”

Description:

The CopyFileToTerminal function copies the PC file path specified by

pssPCFileName pointer to the simulator path specified by

pssPDTFileName pointer.

Returns:

None

BackupDataFiletoPC

Purpose:

Use BackupDataFiletoPCA to copy data file to any disc in PC.

Syntax:

void BackupDataFiletoPC(char *pTerminalFile, char *pPCFileName);

Example call:

BackupDataFiletoPC("c:\\data\\test1.dat","f:\\sample\\test1.dat ");

Includes:

#include “SDK.h”

Description:

The BackupDataFiletoPC function copies the simulator datafile path

specified by pTerminalFile to the pFileName in PC, and you need to store

with the same file name.

Returns:

None

Sim_SetScannerType

Purpose:

To setting scan module type.

Syntax:

void Sim_SetScannerType(int type);

Example call:

Sim_SetScannerType(1); //Scan module type is Laser

Includes:

#include “SDK.h”

Description:

“type” is an integer variable indicating the scan module type.

type

Meaning

0

CCD module

1

Laser module

Returns:

None

Advertising