03-21-2013 07:20 AM - edited 03-21-2013 07:22 AM
I am trying to execute the windows program telnet.exe from the system exec function but I only get error 2 back. I am aware that it indicates that the path of the program is not correct. However when I do the same with notepad.exe which is in the same folder (c:\windows\system32\) it works fine.
Any ideas?
/martin
03-21-2013 09:39 AM
Why not use the TCP primatives available in LabVIEW? It would make your communication much easier then trying to use the command line telnet. You can look at the examplesthat ship with LabVIEW for how to implement a basic telnet session.
03-21-2013 10:55 AM
Are you talking about the Internet toolkit? This is what I tried at first with splendid result. It is just that it is not sold any longer and the trial version I had ran out.
If you mean anything else, I am all ears!
03-21-2013 11:01 AM
No, I am referring to the TCP primitives. They can be found on the Data Communications->Protocols->TCP pallet. Basically all you should need is teh open, read, write and close VIs.
03-22-2013 01:40 AM
Hi again Mark
I was looking among the examples but I don't seem to find what you are refering to. Could you please direct me!
03-22-2013 04:11 AM - edited 03-22-2013 04:14 AM
Edit: my bad
03-22-2013 10:33 AM
@Rollerboy wrote:
Hi again Mark
I was looking among the examples but I don't seem to find what you are refering to. Could you please direct me!
You could search for TCP using the example finder. They have basic examples of servers and clients. Do you have all of your palletes visble? You can view more by selecting additional palletes. View the Functions pallete (View->Functions Pallete) and select the Customize tab. From there make sure you are displaying the Data Communication pallete.