LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Client Server system implementation using socket programming in Windows 7

Hello,

 

I am working on developing a GUI application where client is a microcontroller and server is a GUI running on Win 7 32-bit machine. I have implemented a sample application running on XP and communicates with the microcontroller using socket programming. I am trying to do the same with Win 7 32-bit machine but its not

working. This sample app will just echo back the string sent by the microcontroller.

 

I have attached the sample GUI to run on XP machine and an .exe file which simulates as a microcontroller. 

 

Command for simulating microcontroller is: TCP.exe <Server IP> <Echo Word> <Port Number>

 

Need help on this. Thanks.

Download All
0 Kudos
Message 1 of 5
(3,873 Views)

Greetings,

 

Are you having some sort of error when you attempt it on Windows 7? Or is it just not echoing?

 

Thanks,

James Duvall

Applications Engineer

National Instruments

Product Support Engineer
National Instruments
0 Kudos
Message 2 of 5
(3,856 Views)

Thank you James for your reply.

No error messages from the server side but on the client side it times out while connecting.

0 Kudos
Message 3 of 5
(3,853 Views)

Hello James,

 

I found out that my windows firewall was blocking the port. Now it works fine.

Thanks.

 

Sandeep

0 Kudos
Message 4 of 5
(3,849 Views)

Excellent, I'm glad to hear it.

Product Support Engineer
National Instruments
0 Kudos
Message 5 of 5
(3,833 Views)