Rafi Kfir wrote:
> 1)
>
>>2 options, call command line telnet.exe or ping from you CVI program.
>>Problem is you can not read/write to the process as you go. You can take
>>input from a file and dump it to another file.
>
>
> Can you elaborate on this, please? Are you refering to the Windows
> Telnet and ping program? If so, how do I activate them from CVI?
>
>
yes, just call windows telnet.exe from CVI. Problem comes that you can
not create a CVI program which will simulate a user typing commands and
reading response. You can not get a handle to the process and read/write
from/to it like a file. ActiveX control will let you do that. You can
open a connection, and then do read/write and close when done. If all
you need to do is login
to a telnet port, send something, and process
output after closing connection, you can make a command line which takes
its input from a file and redirects output to another file. You call
this command line from your CVI program, and process the output file.
What I have also found is that you can also just use low level TCP (from
CVI) and open connection to port 80 (I guess for telnet). You will get
some garbage chars which you can filter. I am doing this right now and
it works.
For ping, you can also use windows ping program. Just call it from CVI
(as system command where you redirect output to a file) or launching an EXE.
>
> 2)
>
>>Better option is use one of the third party activeX controls. I don't
>>know why NI would not include telnet control for CVI when they do same
>>for LV guys (the favorite child, I guess).
>
>
> What kind of activeX am I looking for?
> I found at www.distinct.com ActiveX for MS VC++ or DLL32 bit for MS
> c/c++.
> Will they work for me, o
r should I look for something specific for
> LabWindows/CVI?
>
> Thanks
> Rafi
I haven't used distinct tools with CVI. But they are one of the best
ones out there (I personally know the people who wrote the original code).
vishi