B&B Electronics VFG3000 - Manual User Manual
Page 337

F
UNCTION
R
EFERENCE
S
AVE
C
AMERA
S
ETUP
(
PORT
,
CAMERA
,
INDEX
,
FILE
)
R
EVISION
1
P
AGE
321
S
AVE
C
AMERA
S
ETUP
(
PORT
,
CAMERA
,
INDEX
,
FILE
)
A
RGUMENT
T
YPE
D
ESCRIPTION
port
int
The port number where the camera is connected
camera
int
The camera device number
index
int
Inspection file number in the camera
file
cstring
Path and filename for the inspection file on the Gateway
CompactFlash card
D
ESCRIPTION
This function saves the inspection file uploaded from the camera on the Gateway
CompactFlash card. The number to be placed in the
port
argument is the port number to
which the driver is bound. The argument
camera
is the device number showing in Fieldbus
Gateway Manager status bar when the camera is selected. More than one camera can be
connected under a single driver. The
index
represents the inspection file number within the
camera. The
file
is the path and filename where the inspection file should be saved on
CompactFlash card. This function will return true if the transfer is successful, false otherwise.
*Note: This function should be called in a user program that runs in the background so the
Gateway has enough time to access the CompactFlash card.
F
UNCTION
T
YPE
This function is active.
R
ETURN
T
YPE
int.
E
XAMPLE
Success = SaveCameraSetup(4, 0, 1, “\\in0.isp”)
Saves the inspection file number 1 from camera device number 0 connected on port 4
(Ethernet Protocol 1) under the name “in0.isp”.