LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Internet Toolkit <--> Labview 6.1

Hello,

I have been using the Telnet Vi's from the Internet Toolkit (ITK)
successfully to read and write commands to external instrument that has a
Telnet server using Labview 5.1.

However, on switching to Labview 6.1, and using the example Vi's
(Menu-Tools/Internet Toolkit examples/ Telnet Client) provided with the
toolkit, I see specifically that all telnet read commands that are displayed
on the VI terminal are prefixed/suffixed with unreadable characters. As a
result of these unintelligible characters, I believe that I am unable to
successfully communicate with the external instrument.

I have never seen this problem while using the ITK with Labview 5.1.

Is there some different mapping for characters being done within Labview 6.1
o
r is the Internet Tookit not compatible with Labview 6.1 .

Ajay
0 Kudos
Message 1 of 3
(2,845 Views)
Ajay,

I don't have your external instrument handy, but I just tried a couple of tests using the ITK Telnet VIs on LabVIEW 5.1 and 6.1:

1. I wrote a test 5.1 VI that uses Telnet Play Script as a subVI, and I wrote a listener VI using the regular TCP/IP functions. The listener reported the same bytes coming across regardless whether I sent them from the test VI under LabVIEW 5.1 or 6.1.

2. I wrote a test VI (attached) that opened a local telnet session to Win2K Telnet Server and sent a series of commands (username, password, dir, exit) using Telnet Play Script. Again, I got consistent behavior under 5.1 and 6.1; the commands executed successfully on the server.

I did notice some unprintable text prefixed/suffixed around the response strings from the s
erver, but I saw the same text under 5.1 and 6.1, and it didn't affect my script. My feeling is that the extra text has something to do with terminal emulation. As long as I got a reliable prompt string at the end of it, all was well.

Maybe you can do a sanity check with my test VI if you have access to another telnet server besides your instrument. Is it possible that something other than the telnet part of things might have been affected by your move from 5.1 to 6.1 and is the true root cause here?

If you really do narrow things down to the telnet part of things, you might want to unit-test portions of the telnet VI code until you isolate the problem. Maybe the Read Mode on the read VI or the Write Mode on the write VI has something to do with the misbehavior.

Hope it helps,
John Lum
National Instruments
0 Kudos
Message 2 of 3
(2,845 Views)
Another solution might be if the V5.1 Internet toolkit VIs work correctly, simply recompile them in 6.1 and continue using them.

I am currently working in 6.0, but the internet VIs I'm using originally shipped with V4. I continue using them because, while they might not have all the latest features, I know how they work (because in some cases I fixed them so they did work), they do what I need and I have confidence in them.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 3 of 3
(2,845 Views)