All Tech Notes and KBCD documents and software are provided "as is" without warranty of any kind. See the Terms of Use for more information.
Topic#: 000981
The tagname.avl file contains a Height-Balanced Binary Search Tree, so that InTouch can quickly find out if a specific tagname exists in the application database and what the corresponding tag handle is.
Height-Balanced Binary Search Trees are called AVL trees after their Russian inventors, Adelson-Velskii and Landis.
I want to print a file from my InTouch application. How can I do this?
You can use the FileCopy script function as in the following example:
status = FileCopy("c:\autoexec.bat","lpt2", Monitor.Name);
This prints the autoexec.bat file on printer LPT2 and uses the Integer tag Monitor as the DoneTag.
Note: You can also use the FilePrint function that is part of the Technical Support script function library which is available on the Wonderware Knowledge Base.
Why can't I delete an SPC data set in InTouch version 6.0?
If WindowViewer is running in the background (i.e., you switch from Runtime to Development), then the SPC data sets cannot be deleted. Exit WindowViewer before you delete an SPC data set.
How do I create a timer in InTouch?
The following is an example of a Condition script:
Counter = Counter + 1;
IF Counter >= 5 THEN
Trigger = 1;
ENDIF;
Why doesn't my Wonderware Serial server work with Microsoft Windows for Workgroups version 3.11?
There is a problem using Windows for Workgroups (WFW) version 3.11 with the Wonderware TSRs and 16550 UART chips. WFW 3.11 turns the FIFOs on by default and this gives the Wonderware TSRs problems. Use the following switch in your system.ini file to solve the problem:
[386enh]
Com1FIFO=0
If the server failed due to this problem, then you must reboot your computer. The TSRs get locked and they must be reloaded to work properly.
MSD /P REPORT.MSD
- This will run MSD and write a full report to the file, report.msd.
In the [Dr. Watson] section of your win.ini file, enter the following lines:
ShowInfo=dis loc mod
DisStack=100
This will tell Dr. Watson to generate the information you need to assist Wonderware Technical Support if you have a GPF on your system.
Open Microsoft Developer Studio and deselect the "just in time debugging" option.
There are two ways you can use InfoFile to see if a file exists each minute.
InfoFile ("MYFILE.TXT", 1, $Minute)
- Each minute the value of $Minute will change.
- This will cause the InfoFile expression to be re-executed.
- If the file exists, then the condition script is executed.
IF InfoFile( "MYFILE.TXT", 1, 0) THEN
{SendKeys, etc....}
ENDIF;
In this example, the Trigger can equal any value and it will not be used in the body of script.
How do I toggle a Discrete Tag from a script?
Try the following:
Discrete = 1 - Discrete;
or
Discrete = NOT( Discrete );
Enter this line in the [Windows] section of your win.ini file:
DefaultQueueSize = 120
Note: Do not set this value higher than 120. Doing so will cause severe problems.
Also, if you are writing your own I/O Server or client application to run with an InTouch application, enter this line in your code:
SetMessageQueue (64)
Yes, there is. Aladdin Knowledge Systems supplies a device called the AladdinCARD. The AladdinCARD is a standard Parallel Port card; however, the port faces the inside of the computer. There is a short patch cable included which allows you to secure the key and still use the card as a standard parallel port.
Contact Aladdin Knowledge Systems at 800-223-HASP (516-424-5100 if you are located outside the U.S.). Their fax number is 516-424-8300.
FAQs are published occasionally by Wonderware Technical Support. Publisher: Invensys Systems, Inc., 26561 Rancho Parkway South, Lake Forest, CA 92630. There is also technical information on our software products at www.wonderware.com/support/mmi