FactoryTalk SE-VBA time delay

stooperbike

Member
Join Date
Oct 2004
Location
New Hampshire
Posts
78
I am using some VBA to move a few backup files around. I have found that I need to have a time delay in place to wait for some of these steps to take place. I back up an SQL database then move it to a thumbdrive, I need to wait for the database to backup before I can move it. I keep coming up short in my attempts to make a time delay work. I did this "application.Wait Now + TimeValue("0:00:30")" but does not work. I am not sure if its because I do not have a Reference made in VBA (under tools-Reference). Can anyone point me in the right direction?
THanks!!!!
Stoop

Ohh its FE Studio 6.0 VBA version 6.5
 
try this code

Dim PauseTime, Start, Finish, TotalTime
PauseTime = 1
Start = Timer
Do While Timer < Start + PauseTime
DoEvents
Loop
Finish = Timer


'put your copy code here'

DoEvents allows the other processes to run
pause time is in seconds

I have used it for delaying events in FT5 and it works and allows other processes to run in the background. I think application.Wait halts all VBA operations

kyle
 
Last edited:

Similar Topics

I need to use a TreeView in my FactoryTalk SE project and i found it under "ActiveX Object" > "Microsoft TreeView Control 6.0 (SP4)". Everything...
Replies
0
Views
37
I'm creating an HMI that has a recipe with 288 data point. It has 3 pieces of data for 96 segments. I need help with VBA code to copy all 288...
Replies
0
Views
140
Hi everyone Is it possible to change a button image in FactoryTalk View SE (v13.00) using VBA?
Replies
0
Views
82
Hello, I am looking to use the same header on every page (global object) that has an alarm summary button on it that will go to a display with an...
Replies
4
Views
1,809
Back
Top Bottom