LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

So you hate^D^D^D^D extremely dislike the manual DSC tag configuration...

If you need to configure the DSC to use large numbers of tags, but you don't know what those tags will be before your program is running, I believe www.autohotkey.com will help. AutoHotKey is a GPL'd macro/script recorder for Windows, and its scripts can be compiled to .exe's to take command line arguments. The format of the .txt file that can be manually exported is pretty easy to generate (especially if you don't need alarms or anything like that, just memory tags), and you can launch the TCE from a .VI, so...a script that waits for the TCE to open, then sends the necessary commands should be doable.
0 Kudos
Message 1 of 2
(2,517 Views)
The attached AutoHotKey script takes 2 command line arguments. The first is the .txt file you wish to import, the second is the .scf file you want to save as. It assumes the TCE has already been invoked, takes over the mouse and keyboard, then:
- creates a new file with Process Name: MyAppName
- Imports your .txt file (you should provide the full path as a command line argument).
- Saves the file as your .scf file (again, provide the full path).
- Closes the TCE, but does not exit LabVIEW.

This script also works as compiled to an EXE, you'll need AutoHotKey to do that.

You'll probably want to rename the file to have a .ahk extension, I had to rename it to .txt to get it to attach.)


0 Kudos
Message 2 of 2
(2,501 Views)