Skip to main content
InSource Solutions

TN - 1158 Launching LogWin From From An Edge Application

Description

 

This article from InSource shows a couple options for launching the LogWin Utility from within a running Edge application.

  • Author: Mario Meza
  • Published: 06/16/2021
  • Applies to: AVEVA InTouch Edge 2020 and above

Details

 

For this example I added a Test Button to a screen.

Right Click and select  Properties

clipboard_e349b3e886798995911142c15c0165833.png

 

In Object Properties for the button under the OnDown tab:

clipboard_e9b7fda4a58c62975fc8f1e5afcadf513.png

 

You can use EXEC which a built in scripting function to launch the utility from command line input or from a batch file. 

 

In order for it to work in the VB script editor it must be prefaced with a ($)  

The first example uses the EXEC function by passing command line Input

The second example uses the EXEC function to execute a batch file. (update the highlightedted path to reflect the path to the batch file in your environment.)

clipboard_ebe91786ee4940ad71458a9db10d91a4d.png

'Command Line Input:
$Exec("""" & $GetProductPath() & "Bin\LogWinExt.exe"" /dsip:localhost /dsport:1234""")

'Batch File:
$Exec("CMD /C call C:\Users\dNichi\Desktop\logwin.cmd",0,0,"execHandle")
 

Batch File Contents:

start /b /d "c:\Program Files (x86)\AVEVA\AVEVA Edge 2020\Bin\" LogWinExt.exe /DSIP:192.168.0.51 /DSPORT:1234