LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

system exec with telnet.exe

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

 

0 Kudos
Message 1 of 7
(3,228 Views)

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.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 2 of 7
(3,209 Views)

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.Smiley Mad

 

If you mean anything else, I am all ears!

0 Kudos
Message 3 of 7
(3,201 Views)

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.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 4 of 7
(3,198 Views)

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!

0 Kudos
Message 5 of 7
(3,183 Views)

Edit: my bad 

0 Kudos
Message 6 of 7
(3,177 Views)

@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.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 7 of 7
(3,161 Views)