05-16-2013 06:03 AM
Hi,
Ive developed a simple code to automate testing of some units built at our site. I developed the app using LabView 2009 on a Win 7, 32bit machine. I have created the executable and an installer (including Labview 2009 runtime and VISA runtime. The executable installs OK onto a win XP machine. However, when I run the application it fails to read the COM port.
Does anyone have any ideas?
Steve
05-16-2013 06:27 AM
Can you give more details about the fail? It's a reading timeout?
Are you using a serial to USB converter?
Regards,
Marco
05-16-2013 06:33 AM
What is the error message and error number you are getting. Put one error out and check.
Put your code also it will be easy to debug. Do you have COM port in your PC ? Becasue now a days there is no COM port ?
Please make sure of that.
Thanks
05-16-2013 06:46 AM
I can confirm that there is a com port. I tested my code in development and it works fine. I even installed the executable on my machine(which I used for development) and that worked OK as well. The only error my executable shows is that there is a write error, basically there is no connection to the com port.
I guess I'll have to put in some error reports to my front panel.
It looks to me that there is something missing. Am I correct in saying that all I need to include is labview 2009 runtime and visa runtime for my code to read the com port. Is there anything else I need to add as additional installers?
I'm afraid I can't post the code as its restricted 😞
Thanks for the help.
Steve
05-16-2013 07:04 AM
But atleast you can put your code snapshot ?
05-16-2013 07:08 AM
In the same PC your EXE file is not detecting COM port ?
05-16-2013 07:09 AM
What is VISA version ?
05-16-2013 07:14 AM
I have attached the subvi, which is pretty much the NI example. Unfortunatly, I can divulge anything further. But this is certainly the problematic area.
Thanks,
Steve
05-16-2013 07:16 AM
Rajeet, I'm not sure I understand your question regarding the PC and EXE.
The Visa runtime is 4.6.2.
Thanks,
Steve