|  1 |    initial version    |  
ierr, variableNumber = psspy.mdlind(busNumber, 'machine id', 'GEN', 'VAR') psspy.var_channel([-1,variableNumber],"variableName")
Here the first command stores the first variable 'VAR' associated with GEN into the variable varname. The second command add the channel corresponding to the variable varname. You can use any this commands to get any variable associated with any components. If you want to store the second variable then, psspy.var_channel([-1,variableNumber+1],"anotherVariableName")
Hope this helps
    |  2 |    No.2 Revision    |  
ierr, variableNumber = psspy.mdlind(busNumber, 'machine id', 'GEN', 'VAR') psspy.var_channel([-1,variableNumber],"variableName")
Here the first command stores the first variable 'VAR' associated with GEN into the variable varname.
The second command add the channel corresponding to the variable varname. variableNumber. You can use any  this commands to get any variable associated with any components. 
For instance, If you want to store the second variable then, psspy.var_channel([-1,variableNumber+1],"anotherVariableName")
Hope this helps
    |  3 |    No.3 Revision    |  
 ierr, variableNumber = psspy.mdlind(busNumber, 'machine id', 'GEN', 'VAR')
 Here the first command stores the first variable 'VAR' associated with GEN into the variable varname. The second command add the channel corresponding to the variable variableNumber. You can use this commands to get any variable associated with any components.
For instance, If you want to store the second variable then,
 Hope this helps
 
                
                whit loves you.      Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.