Last active
February 13, 2022 16:05
-
-
Save jj-github-jj/184a342b710b36112ecbfa06336e57ad to your computer and use it in GitHub Desktop.
labview run active x
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# !pip install pywin32 | |
import win32com | |
labview = win32com.client.Dispatch("Labview.Application") | |
VI = labview.getvireference(vi_path) | |
print(f'Name: {VI.Name}') | |
VI.setcontrolvalue(control_name,f) # this works to set float values | |
s=(VI.getcontrolvalue(ind_name)) | |
VI._FlagAsMethod('Run') | |
VI.Run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment