title: How to give input parameters value while calling the function[VI.Call()] as well?
body: <ol>
  <li>I'm trying to Control LabVIEW front panel in python using by ActiveX 
  communication. </li>
  <li>I couldn't assign the input parameter values automatically in LabVIEW.</li>
  <li>If I run as follows program code it's assigning as 'zero' for both 
  inputs(Input 1, Input 2).</li>
  <li>Whenever I tried to run the program the controls taking as default value.</li>
  <li>Is there any method for assigning input values while the VI.Call() function(calling and value assigning should happen simultaneously)?.</li>
  <li>Give a conclusion for this issue.</li>
  </ol>
  
  <p>I tried VI.Call() function after set input values and the LabVIEW VI taking input values as 'zero'(0).</p>
  
  <pre><code>import win32com.client                                      # ActivX Client
  LabVIEW = win32com.client.Dispatch("LabVIEW.Application")   # Connect LabVIEW
  VI = LabVIEW.getVIReference(r'D:\New folder\LabVIEW.py')    # Get VI Reference
  VI._FlagAsMethod('Call')                                    # Call the VI
  VI.Call()
  VI.setcontrolvalue('Input 1', '56')                         # Set Input Value
  VI.setcontrolvalue('Input 2', '10')                         # Set Input Value
  result = VI.getcontrolvalue('out')                          # Get Output Value
  print(result)                                               # Print result on console
  </code></pre>
  
  <p>I expecting input values to be 56 and 53, but the actual inputs are 0 and 0(automatically assigning in LabVIEW as default).</p>
  
  <p><a href="https://i.stack.imgur.com/kV5vh.png" rel="nofollow noreferrer">Simple Addition Pgm</a></p>