NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Calling .seq files from Python

Solved!
Go to solution

Plzz anyone from tou can explain the code line by line alson when i excuted this code .i had receive a error :

the code and the results are in two pictures 

 

Download All
0 Kudos
Message 1 of 4
(1,945 Views)
Solution
Accepted by topic author tidalos

The Motherboard Demo uses LabVIEW adapter to call VIs.  It looks like you don't have LabVIEW installed or your LabVIEW adapter isn't set up correctly for the version of LabVIEW you have.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 2 of 4
(1,927 Views)

i think the same idea .the problem is that i'm not the person who installed Teststand and LabVIEW in my pc .i have question can i download Teststand LabVIEW for my personnal pc is that a free licence or not ?

0 Kudos
Message 3 of 4
(1,914 Views)

i found anothor method and i tried it and look the result in the picture :

############      ################

import win32com.client
import os

cwd = os.getcwd()

tsEngine = win32com.client.Dispatch("TestStand.Engine.1")
print "TestStand %s.%s ready" % (tsEngine.MajorVersion, tsEngine.MinorVersion)

sequencePath = os.path.join(cwd, 'MySequence.seq')
seqFile = tsEngine.GetSequenceFileEx(sequencePath)
execution = tsEngine.NewExecution(seqFile, "MainSequence", None, False, 0)
execution.WaitForEndEx(60000)

print 'out of TestStand code'

0 Kudos
Message 4 of 4
(1,900 Views)