Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

sbRIO TCP/IP transfer port-related errors

I'm having a lot of difficulty transfering data from my sbRIO9632 to my computer via TCP.  I've written up as thorough an explanation (with pictures!) as I could and attached it as a pdf.  The long and short, however are:

 

I used exercise 15 from this site:

http://zone.ni.com/devzone/cda/tut/p/id/7783

 

I modified it slightly to work with my sbRIO but it is very unhappy with ports and network addresses.  I'm sure the problem is just setting related, but I don't know which settings to mess with.  Thank you so much for the help!  Be sure to check out the attached pdf and let me know if you'd like any more information.

0 Kudos
Message 1 of 6
(5,268 Views)
Hi Snively, you configured your VI Server to listen at port 5280, that will block the port and no other TCP/IP listener can use it. The VI Server is used to connect to your running LabVIEW application instance, not for TCP/IP connections you are using by yourself. Reset the VI server port to 33xx as it was, restart LabVIEW and you should be able to start a listener on port 5280 (if no other application is using this one). Swen
0 Kudos
Message 2 of 6
(5,252 Views)

Ok, here's what I changed:

1)  From the receiver VI I clicked tools -> options -> VI Server: Configuration  and then changed the port to 3363.

2)  I right clicked my sbRIO in the project tree and clicked properties -> VI Server: Configuration  and enabled the port (3363).

3)  I ran my main VI (has the FIFO write block)

4)  Ran receiver (port 5280)

5)  Ran sender (port 5280, same IP as sbRIO)

6)  I received error 63 (in the attached pic).

 

Steps to take from here?

0 Kudos
Message 3 of 6
(5,236 Views)

Hi Snively,

 

Which VI are you running first?  The receiver VI, should run first if possible, and then the sender.  Try this and see if it produces the same problem.

 

Also, did you try running the example without modification?  If not, try that if you still see the problem.

Jared S.
Applications Engineering
National Instruments
0 Kudos
Message 4 of 6
(5,209 Views)

jareds-

 

I've been running the receiver VI first each time.

 

I tried running the example just by itself (using simulated FPGA I/O since the sbRIO in the example isn't the one I'm using) and I get a whole new set of issues that I couldn't fix (pic attached, it highlighted the initialization block when I clicked "Show Error" but I couldn't find any obvious mistakes).

 

Thank you so much for your help, I know this is solvable somehow!

0 Kudos
Message 5 of 6
(5,203 Views)

Hi,

you are acquiring data on the sbRIO. You want to send this data to your PC. So the sbRIO is the sender and your PC is the receiver. TCP/IP listener should be running on PC, sender on sbRIO.

But


@Snively wrote:

5)  Ran sender (port 5280, same IP as sbRIO)


the sender process should point to the IP of your PC, the listener. Not to the IP of the sbRIO.

Try the following:

- Start ypur receiver on your PC

- Open a windows command prompt on another PC in your local network

- type "telnet <IP of your PC> 5280

 

This should open a  TCP/IP connection to your receiver on the given port. If it doesn't work you may have some network related problems like an activated firewall. If it works you should be able to connect from your sbRIO sender, too.

 

0 Kudos
Message 6 of 6
(5,186 Views)