I am trying to automate running "Teststand" scripts from a Windows service. So far I've accomplished the automation by calling the following from the command prompt:
C:\Program Files (x86)\National Instruments\TestStand 2013\Bin>
SeqEdit.exe /runEntryPoint "Single Pass" "c:\Users\pathtofile\MyTests.seq" /quit
I'm using Python, so I make this happen using the subprocess module. It opens, runs, saves results, and closes on its own. Perfect!!! However, because it launches the Teststand GUI, it won't work in a Windows service. I don't even need the GUI (because I don't touch it, and results stored in a folder), but I can't seem to run Teststand without it.
I've messed around with CreateProcessAsUser() using win32 but I can't seem to get anything to work. Can anyone offer a solution in Python that uses the command above to run a Teststand sequence from a Windows service (windows 10)???