LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

win32com method to GET control's value

Solved!
Go to solution

Hello,

 

I'm familiar with the procedure of how to set a control value in LabView with win32com.

import win32com.client

labview = win32com.client.Dispatch("LabView.Application")
VI = labview.getvireference(r'c:\Users\path\to\my\vi\something.vi')
VI.setcontrolValue('setx','0')

 But how do I read out that value?

0 Kudos
Message 1 of 3
(2,108 Views)

Someone? 😕

0 Kudos
Message 2 of 3
(2,073 Views)
Solution
Accepted by topic author THunter

I found the solution:

 

VI.getcontrolvalue('name of the control')

The naming is not consistent, because when I have to set a control value, its with a capital 'V', but when reading it, its with a small 'v', that is what caused the problem..

I hope this will save some time to whoever reads this.

0 Kudos
Message 3 of 3
(2,027 Views)