|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Using Sockets with the cRio in Wind River
I've been trying to use "sockLib.h" in wind river to send custom data back to my laptop. sockLib came with an html guide, but it all seems needlessly complicated. Is there an easier way to send data packets from the cRio to a laptop over the network?
|
|
#2
|
||||
|
||||
|
Re: Using Sockets with the cRio in Wind River
Its exactly the same as sockets on a normal operating system (well, mostly the same), so the difficulty is around the same.
Otherwise, you could use the dashboard class in conjunction with the labview dashboard viewer to send data that way. Something we've been doing is just writing data files to the cRio filesystem and retrieving the file via FTP. You have to call Priv_SetWriteFileAllowed(1) or something to that effect for it to allow you to write to the filesystem however. |
|
#3
|
|||
|
|||
|
Re: Using Sockets with the cRio in Wind River
Look at the exaple code for the robot and dashboard--this has some examples of how the user data function works. An important thing to keep in mind if you go ahead ande use your own protocol is that everything except the control port and the dashboard port will be firewalled at the competition.
|
|
#4
|
||||
|
||||
|
Re: Using Sockets with the cRio in Wind River
Thanks everyone, I got it working. If people would like it, I stuck it on my server here.
I also included a simple C# program to recieve from port 1027. Last edited by C222 : 25-01-2009 at 19:53. |
|
#5
|
||||
|
||||
|
Re: Using Sockets with the cRio in Wind River
can I have the source (so i don't have to decompile it, which is vvveeeerrrrrrrryyy easy w/ .net apps except the resources)?
|
|
#6
|
||||
|
||||
|
Re: Using Sockets with the cRio in Wind River
Sure, once I get home. I hope you dont mind that it's C#. You could also use a packet sniffer such as Wireshark.
|
|
#7
|
||||
|
||||
|
Re: Using Sockets with the cRio in Wind River
Quote:
|
|
#8
|
||||
|
||||
|
Re: Using Sockets with the cRio in Wind River
Here ya go. This'll just display the pure text of the packet on the screen. Ignore the "Send" button, it was originally created to be a chat client. Also, make sure you change the ports and IP addresses. I would also suggest you leave the protocol as Dgram.
This is also on my server 'cause its to big too upload to CD. Here ya go. |
|
#9
|
||||
|
||||
|
Re: Using Sockets with the cRio in Wind River
Well,
I want to be able to use this at comp, so, what port would we have to transfer data on? |
|
#10
|
||||
|
||||
|
Re: Using Sockets with the cRio in Wind River
Quote:
To send data during competition you must use the dashboard data, which is included in a control system packet, so it won't be blocked. Any other system will likely be illegal at competition. |
|
#11
|
||||
|
||||
|
Re: Using Sockets with the cRio in Wind River
Well, how do you pull the dashboard data off of the control system packets?
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Teams happy with Wind River Workbench? | gvarndell | C/C++ | 59 | 28-07-2009 21:13 |
| Using Standard Labview with cRIO | writchie | FRC Control System | 2 | 23-01-2009 13:44 |
| Problem with downloading Wind River | beemgruem | C/C++ | 0 | 21-01-2009 12:17 |
| Wind River Printing from cRio | Mr.Macdonald | C/C++ | 6 | 12-01-2009 20:42 |
| Open Wind River | excel2474 | Programming | 12 | 31-12-2008 17:36 |