proficy machine edition logging
DESCRIPTION
Logging scenarios and setup in Proficy Machine edition ViewTRANSCRIPT
In Control Panel
Select Admin Tools
In Control Panel
Select Admin Tools
Select Data Sources
Select Data Sources
ADD new system DSNADD new system DSN
We will use the MS Access Driver
We will use the MS Access Driver
Enter a DSN eg: “MyLog” and then select“Create”
Keep a note of the Data Source Name you use as you will need to use this exact name to connect through your scripting
Enter a DSN eg: “MyLog” and then select“Create”
Keep a note of the Data Source Name you use as you will need to use this exact name to connect through your scripting
Enter a filename you will need to remember this to use it in your Start MS Access script and also to configure the Table within it.
Enter a filename you will need to remember this to use it in your Start MS Access script and also to configure the Table within it.
Create this script. Run it “on condtion” and “when true” by placing a button on the screen which has “touch animation” with an internal variable eg:ODBC, which is set as “momentary” you will be able to connect to your data source “MyLog”
Create this script. Run it “on condtion” and “when true” by placing a button on the screen which has “touch animation” with an internal variable eg:ODBC, which is set as “momentary” you will be able to connect to your data source “MyLog”
This scripts logs data through the connected DSN The syntax must be correct. Try one variable first just to get it working Run Periodically at 1000mS
This scripts logs data through the connected DSN The syntax must be correct. Try one variable first just to get it working Run Periodically at 1000mS
This disconnects from the DSN
This disconnects from the DSN
Create this script. Run it “on condtion” and “when true” by placing a button on the screen which has “touch animation” with an internal variable eg:access, which is set as “momentary” you will be able to start MS Access The Path to MSAccess.exe must be as written in your script which may differ from above
Create this script. Run it “on condtion” and “when true” by placing a button on the screen which has “touch animation” with an internal variable eg:access, which is set as “momentary” you will be able to start MS Access The Path to MSAccess.exe must be as written in your script which may differ from above
Don’t forget to download the Project
Don’t forget to download the Project
Open the database file you created eg “Myaccessfile.mdb”
Open the database file you created eg “Myaccessfile.mdb”
Doubleclick on the column headers to change them to match your logging script
Doubleclick on the column headers to change them to match your logging script
Click SAVEClick SAVE
Accept ,”YES”Accept ,”YES”
Select Table1 as per you logging script to check the table is ok
Select Table1 as per you logging script to check the table is ok
Close MS AccessClose MS Access
Start runtime and click on your button to run the connect script
Start runtime and click on your button to run the connect script
Click on your button to run the MSaccess script
Click on your button to run the MSaccess script
You should have logged data
You should have logged data