Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Labview on PC -> C++ on cRIO (http://www.chiefdelphi.com/forums/showthread.php?t=102077)

Greg McKaskle 17-02-2012 20:46

Re: Labview on PC -> C++ on cRIO
 
Sorry it took longer to respond. I overlooked the message. One of the comments on the project is that it doesn't implement transactions yet. Can you try commenting out the transaction begin and end and see if that works?

Greg McKaskle

nmg49 17-02-2012 22:37

Re: Labview on PC -> C++ on cRIO
 
I believe we tried that originally to no success. At this point, we've decided not to use this on our robot, but we still want to get it working for future use. Do you have any other ideas for us to try?

Greg McKaskle 18-02-2012 08:14

Re: Labview on PC -> C++ on cRIO
 
I haven't really had enough time to try the combo out myself, so I'm afraid I don't know the common failures. Hopefully in a week or so I'll get to it.

Greg McKaskle

nmg49 20-02-2012 13:44

Re: Labview on PC -> C++ on cRIO
 
Thanks. Please let us know if/when you find anything...

shahrukh 04-03-2012 21:48

Re: Labview on PC -> C++ on cRIO
 
Hello,

We are also using Labview on the dashboard and C++ on the robot. We were trying to use the network tables to pass data back and forth, but have had a lot of problems. It looks like we might be having some race conditions, and the data is often not written to the table properly.

As a test, we had a loop running on the robot, that wrote the values 0,1,2, and 3 in a loop once in a second to a network variable. On the receiving end, we would see that some values were skipped, so for example, we would see, 0 ->1 -> then a pause -> 3 -> 0.

Passing data from the driver station (labview) to the robot (c++) seems to be much more reliable, although we still have the occasional instance on the robot, when it tries to read a variable, and just freezes waiting for a response.

Does anyone have any sample C code successfully using the network tables? We are thinking that we might be ignoring some setup functions or something. Essentially we make a table and then use the getINT, getFloat, putInt, PutFloat etc functions as needed. Are there other timing, synchronizing functions we should be worried about. We are doing the same on the Labview side and that seems to be working fine.

Appreciate anyones help,
Shahrukh


All times are GMT -5. The time now is 20:19.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi