LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Winsockread Error in LabVIEW PDA

Hi all. I am currently trying out the VI server example given in the LabVIEW PDA toolkit but i keep getting this error "WinsockRead error Error Code: 10054.
 
The LabVIEW example project I am using is "VI Server- Pocket PC.lvproj" and I have loaded the "CallByRef Wave - Pocket PC.vi"  into the PDA. I have a WIFI connection to a PC and have manually assigned IP address to both the PDA (192.168.100.101) and PC (192.168.100.100). I have verified my WIFI connection is working by using the "ping 192.168.100.101" command on my PC.
 
Also, I am configured my VI server correctly by selecting the enabling the TCP/IP protocol and ActiveX under the VI Server Configuration. The port number I used is 3363. I have also added the PDA IP address (192.168.100.101) to the Machine Access List.
 
When I try to run the example program on the PDA with the IP address "192.168.100.100" and a port number of 3363, I will get the error. Can anyone give advice on what I have missed out or done wrongly?
 
I forgot to mention that the remote program "TargetWave.vi" on the PC is loaded in memory and opened in LabVIEW also.
 
Thanks in advance.
 
 
0 Kudos
Message 1 of 8
(3,756 Views)
D.Com,
I took a look at the example you've mentioned and it suggested either using direct connection to your computer via serial cable or using an IR transmitter receiver method. Have either of these two methods seemed to work? Let us know when you get the chance.
 
Best Regards,
 
Chris C
Applications Engineering
National Instruments
0 Kudos
Message 2 of 8
(3,749 Views)
Hi Chris,
 
Yes, I did try out the direct conection via serial cable. Its not working also. However, it gives a different error, "Operation timed out Error Code 13".
 
I have tried out the other examples given in the LabVIEW PDA toolkit like the TCP/IP and serial connection examples and they are all working well, which means that there is nothing wrong with my TCP/IP and serial connection.
 
I forgot to mention that I am using an evaluation version of the toolkit. Could it be possible that the evaluation version doesn't allow access to VI server?
0 Kudos
Message 3 of 8
(3,736 Views)
D.Com,
I just thought of something else to try. You said you are using port 3363. The program was initially set up to use Port 3865. Did you change the VI server properties (From the project, right click on the my computer icon>>properties>>VI server: Configuration) to port 3363 or just the control on the front panel of the CallByRef Wave.vi? Both must be set to the same port.
 
Secondly, you may have to open a port in your firewall if you are using WindowsXP SP2. Initially I would completely disable the firewall and see if that solves the problem. If it does, then enable the firewall and create an exception of the port you've specified (3363).
 
As for using the trial version, this should have no impact on the performance of the toolkit.
Best Regards,
 
Chris C
Applications Engineering
National Instruments
0 Kudos
Message 4 of 8
(3,726 Views)

Hi Chris,

The port settings are correct and I have also tried to disable my firewall but I am still getting the same error.

Anyway have you tried running the program on a PDA? I am suspecting that the example might not be working in the first place. Just want to make sure its not a problem with my hardware.

Anyone out there tried running this example on their PDA before also?

0 Kudos
Message 5 of 8
(3,715 Views)

Hi D.Com,

      I don't have a PDA, but do have some TCP/IP experience, and usually do initial debug with both client and server apps running on the same platform - in your case the PDA.  It would be interesting if you could access the target at 127.0.0.1:3363.  But, if the PDA won't spport this usage, forget I mentioned it. Smiley Tongue

cheers!

Message Edited by Dynamik on 01-08-2006 09:45 PM

When they give imbeciles handicap-parking, I won't have so far to walk!
0 Kudos
Message 6 of 8
(3,712 Views)

D.Com,

I just tried to run the program through its cradle over tcp and it worked well. I was using the default port of 3865 and the IP address of my computer for "VI server IP". I didn't get any errors so I believe that the example works. Have you been able to make any progress?

 

Chris C

0 Kudos
Message 7 of 8
(3,698 Views)

Hi Chris,

I am still not making any progress. It seems like I have tried everything mentioned here, using the correct IP addresses, ports, configuring VI server properly and disabling the firewall. Maybe I will try to get another PDA to try out if its nothing to do with the software itself.

Meanwhile I have switched to using simple TCP/IP to transfer data between the PDA and host computer for my application, though its more tedious this way, at least I know it is working properly.

Thanks for your suggestions and help.

0 Kudos
Message 8 of 8
(3,686 Views)