Jump to content

ganeshkumar1989

Members
  • Posts

    5
  • Joined

  • Last visited

LabVIEW Information

  • Version
    LabVIEW 2010
  • Since
    2010

ganeshkumar1989's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Tim, Thank you for your reply. The requirement is, given any Exe name, the VI that we develop must be able find out the port number that the Exe is using. Hence the solution to this problem must be independent of any other appication. The reason why we are looking for the port number is that we need to open the application reference. V I Engineering, Inc., Thanks for your reply. The option of using iphlpapi.dll may be a good one. But the functions may go unsupported in the newer versions of Windows. For example, AllocateAndGetTcpExTableFromStack method in this DLL is not availalbe from Windows Vista. That is the reason why we will have to re-think. I have one more question. In case, for an application, if the web server is also enabled, we would get 2 port numbers for the same application (when we try to find the ports used by the application using any method like netstat). Assuming we have no control over the application being developed, how do we find out as to which port corresponds to the Web Server and which one corresponds to VI server? Thank you, Ganesh Kumar
  2. Hi, What is the best method to get the VI server port used by any Exe in execution, whose process name is known (How can the process name be mapped to the port number (VI server) used by that process)? We are currently using netstat to find the port number. The iphlpapi.dll system DLL methods also work by getting the entire list of Process ids and ports. But there might be a better method to achieve the same functionality (A method that directly maps the process name to the port without getting a list of all processes and their ports). Is there a better method to get this functionality? Thank you, Ganesh Kumar
  3. Hi, When an Exe is built using application builder, an ini file is created in the same location as that of the Exe with the same name. This ini file contains some settings to be used by the Exe and is read by the Exe whenever it is run. There is an option to specify the ini file using the command promt using the command line argument 'pref'. A shortcut may also be used for the same purpose (as explained in the Labview wiki). The settings are read from the specified ini file by the Exe. Everything is fine until "Pass all command line arguments to application" option in the 'Advanced' catagory is enabled while building the Exe. If this option is enabled, the command line arguments (in this case the ini file) are not interpreted by the Exe and hence it uses the settings in the default ini file (LabVIEW.ini). Is there any way by which the ini file, to be used for the settings, can be mentioned programmatically? Thank you, Ganesh Kumar
  4. Jcarmody, This is exactly what I wanted and your snippet will exactly fit in to my application. Thank you very much.
  5. Hi, In one of my projects, I have to check if a control is a Sequence context control. This cannot be done using any properties like the 'Classname' of the control. Hence I am converting the control reference to variant and using 'Variant to Flattened String' to get the 'type String' array which describes the type. I see that the first two element of this array varies for each control and the remaining elements are the same for controls of the same ActiveX class type. Please tell me if this is the best way of doing it. I have attached the snippet for reference. Thank you. Ganesh Kumar
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.