23.11.2012 Views

2 Visual Components Manuals

2 Visual Components Manuals

2 Visual Components Manuals

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

This is not required for normal <strong>Visual</strong> <strong>Components</strong> operation and should only be done in conjunction with your<br />

relevant B&R support contact or application technician. The necessary parameters, along with their values, are<br />

listed here in case they are needed.<br />

3.3.8.30.1 Parameter<br />

I/O Parameter Type Meaning<br />

IN enable BOOL This function is only executed if enable is TRUE.<br />

IN VCHandle UDINT The handle returned by VA_Setup.<br />

IN Type USINT<br />

IN Parameter UDINT New parameter string<br />

Type of driver whose parameters should be changed<br />

1 Display driver<br />

2 Key driver<br />

4 Touch driver<br />

OUT Return Value UINT Not equal to 0 if error occurs<br />

The project may not be run while changing driver parameters. The correct sequence for changing driver<br />

parameters is as follows:<br />

• Stop the project with VA_StopProject<br />

• Change the driver parameter(s) with VA_SetUserParam<br />

• Start the project with VA_StartProject<br />

3.3.8.31 Shutdown − VA_Shutdown<br />

This function is no longer used in the current version of the Visapi library (V2.3), but wasn't removed from the<br />

library itself for compatibility reasons. We recommend not using this function anymore in new projects.<br />

The VA_Shutdown function should only be executed before a project is started.<br />

3.3.8.31.1 Parameter<br />

I/O Parameter Type Meaning<br />

IN enable BOOL This function is only executed if enable is TRUE.<br />

IN VCHandle UDINT The handle returned by VA_Setup<br />

OUT Return Value UINT Not equal to 0 if error occurs<br />

3.3.8.32 Requirements and Initialization − VA_Srelease<br />

The VA_Srelease function must always be called at the end of a VISAPI function in a cyclic task. Otherwise, no<br />

more VA_Saccess functions can be called.<br />

3.3.8.32.1 Parameter<br />

I/O Parameter Type Meaning<br />

IN enable BOOL This function is only executed if enable is TRUE.<br />

IN VCHandle UDINT The handle returned by VA_Setup<br />

OUT Return Value UINT Not equal to 0 if error occurs<br />

3.3.8.32.2 Example for Automation Basic<br />

(* cyclic program *)<br />

if ready 1 then<br />

VC_HANDLE = VA_Setup(1 "vga") ,<br />

VC_HANDLE if 0 then<br />

ready = 1<br />

endif<br />

endif<br />

if ready = 1 then<br />

if VA_Saccess(1,VC_HANDLE)= 0 then<br />

VA_Srelease(1,VC_HANDLE)<br />

Introduction to <strong>Visual</strong> <strong>Components</strong> 2.3<br />

166 3.3.8.30 Manual Project Control − VA_SetUserParam

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!