07-27-2008 05:35 PM
import win32com.clientIt's got to be simple....
labview = win32com.client.Dispatch("Labview.Application")
VI = labview.getvireference(r'MyTest.vi')
VI.setcontrolvalue(''Setting_1,'5')
07-27-2008 05:58 PM
07-28-2008 11:52 AM
07-29-2008 06:13 PM
VI.setcontrolvalue('CtlName', newValue)Is there a way to get a refrence to the control rather than haveing to address it by name every time? I'm not that experienced with COM so I'm not sure what the limitations are. The way it works now is just fine with me all the details are hidden in a Python class so I can just do....
myVI.SetButton1(True)This has solved my current need for scripting test sequences and makes it much easier to log data to a database.
userInput = myVI.GetUserVal()
07-30-2008 11:58 AM