Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

how to send the data in tcp/ip

Hi,

 

 

    I am Thiyagarajan.S. i want to send that data (Barcode Coading) via TCP/IP Comunicaton. but I am not familiar in TCP/IP. The Sending Data is Barcode Printer Coading. Server in PC.But Clinet is Dlink Printer Server.The two devices are seperate IP Address. i followed NI Examples,ut not able to send the data.Printer server output port is Parallel Port(2).

How to slove the issue. Please do the needfull.

 

Thanks

Thanks
Thiyagarajan.S
WABCO Vehicle Control System
0 Kudos
Message 1 of 19
(5,127 Views)

Hi Thiyagarajan,

 

Please tell more about your problem. How are you connecting the printer to your computer. Which version of LabVIEW are you using. Also tell me what example you used for communication between the devices. I'll suggest you to see the exaples available in NI Example Finder >> Networking >> TCP & UDP

 

Please have a look at the Data Client.vi and Data Server.vi.

 

Regards,

Hardik

0 Kudos
Message 2 of 19
(5,108 Views)

Hello Hardik,

 

           I am using Labview 8.6 Version. Printer is Intemech make Barcode Printer. Printer Port is Parallel port. So i am Using Dlink Make Printer Server. Printer server to printer connection via Parallel Port Cable. Printer Server to Computer Connection Via Ethernet connection (CAT5 Network Cable).

 

 

ON,D
q304
S4
D10
ZB
JF
oR

N
B35,87,0,1B,3,0,80,N,"1111"
I8,A,001
A94,45,0,1,3,3,N,"1111"
A68,170,0,3,1,1,N,"11111111111"
A30,14,0,1,1,2,N,"22"
A60,14,0,1,1,2,N,"09"
A88,14,0,1,1,2,N,"09"
A50,14,0,1,1,2,N,":"
A171,14,0,1,1,2,N,"09"
A203,14,0,1,1,2,N,"05"
A236,14,0,1,1,2,N,"01"
A78,14,0,1,1,2,N,":"
A192,14,0,1,1,2,N,":"
A225,14,0,1,1,2,N,":"
A220,45,0,1,1,2,N,"856"
P1

The Above mentioned Coading was barcode Printer Coading. if one cycle completed means, i will send this data via parallel port.the printer will generate Barcode. This is current status. But now i want to move the Printer some more distance. so parallel port cable is not sufficient for this function. So i  planned to install the Local area network. I connected Dlink Printer server to pc and locall area Connection checked ok. but i dont know how to send the data to Printer server.

PC IP ADDRESS (Server): 192.168.16.0

PRINTER SERVER IP ADDRESS(CLIENT): 192.168.16.1

 

So i want any mode VI or Visual Aid. Kindly send me.

 

Please do the needfull.

 

Thanks  

 

 

Thanks
Thiyagarajan.S
WABCO Vehicle Control System
0 Kudos
Message 3 of 19
(5,099 Views)

If I read your post well you should only use the printerserver and cable and not change your program at all.

Do you really connect the old parallel port to a printerserver and lan cable?

greetings from the Netherlands
0 Kudos
Message 4 of 19
(5,080 Views)

Hi Albert,

 

           Thanks for your reply. Once again i confirm My communication setting .  Currently I  am using PC Parallel Port to Printer Parallel Port Using parallel port cable. But i want to move my Printer some more distance. So I am using Printer server. Printer Server Input port is Lan cable. Printer server output port is Parallel port cable. so now i connect PC to Printer server Input port Using Ethernet cable. And Printer server output port to Printer Parallel port connection via ParallelPort.

 Printer Server connection also checked using PING Command (DOS MODE).  I tried Data Client and Data Server.VI in VI Examles. But I dont know What is the Port no. and How i want to design my communication Vi. So kindly send any model VI .Please do the needfull.

 Thanks.

Thanks
Thiyagarajan.S
WABCO Vehicle Control System
0 Kudos
Message 5 of 19
(5,070 Views)

Hi Albert,

 

       Kindly send me the Model Vi or Screenshot. Beacuse I am not familiar this TCP/IP Communication. i Checked Data client and Data server vi.  I dont know where i want to connect my String data in server VI and Where i can check the Data receiving in client vi and IP address in required or not for This Server and Client VI.If required means where i want to enter the IP address inthis VI.

Thanks
Thiyagarajan.S
WABCO Vehicle Control System
0 Kudos
Message 6 of 19
(5,061 Views)

Hi

 

Ok now I understand your setup. It now depends on what to send exactly.

But.. You don't have to use TCP/IP vi's. You also may use VISA to send data to the printer server.

I have to look up the way to form a tcp/ip address in visa but maye someone else knows it and sends it to this board.

For now goodnight from the Netherlands

greetings from the Netherlands
0 Kudos
Message 7 of 19
(5,047 Views)


Hi Albert,

Tanks for your reply. Kindly send the Model Vi or Screen Shot.

Please do the need full.

Thanks
Thanks
Thiyagarajan.S
WABCO Vehicle Control System
0 Kudos
Message 8 of 19
(5,025 Views)

Hi

 

I searched for visa resource string syntax and found this.

Included is the tcpip string needed.

 

TCPIP::www.yahoo.com::INSTR

the lower case depends on your network settings for the printerserver.

 

for more info see the link below.

http://digital.ni.com/public.nsf/allkb/6A9285AC83C646BA86256BDC004FD4D4

greetings from the Netherlands
0 Kudos
Message 9 of 19
(5,008 Views)

Hi Albert,

 

             Thanks For your reply.As per that Web Link instruction, I created the VISA TCP/IP Resource. I Eneterd all deatils and I pressed Valiated Button I shows error.  Error was " Could not open Visa session to "TCPIP0::192.168.16.10::Printer Server::INSTR. So kindly send the root cause and After creation this connection how i made the Labview Program. kindly send any Screen shot or Model VI. 1.jpg

 

 Please do the Need Full.

 

Thanks

 

Thanks
Thiyagarajan.S
WABCO Vehicle Control System
0 Kudos
Message 10 of 19
(4,997 Views)