|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
Re: Creating a Dashboard
Quote:
|
|
#2
|
|||
|
|||
|
Re: Creating a Dashboard
Quote:
My team used Network Tables last season, and personally, I found them inefficient and inaccurate (which was probably more because of the bandwith problems rather than poor design), half of the time the data never was recieved... Hopefully Network Tables 2.0 will be better (the FirstForge page makes them sound so). On the note of Qt, sockets, and c++: I actually got a system to send and recieve data values to the robot up and running in about an hour (with pretty much zero knowledge of socket programming). The TCPHelper functions really make it easy on the robot side... On the laptop side it's pretty much just socket.connectToHost(), then socket.write(), or socket.read() (without error checking, of course). TL;DR: You can probably get by using NetworkTables, but don't be afraid of sockets... |
|
#3
|
|||
|
|||
|
Re: Creating a Dashboard
Thanks to everyone! I would prefer to go with the option that has the least amount of work involved, and produces acceptable results--so I think we might just use LabView. Thanks Alan/Rapture for suggesting that--I wasn't sure if they were compatible with each other. I don't have much experience building a dashboard (Though I would assume it's all pre-packaged in the 'Build Dashboard Project' option in LabView; I'm sure it won't be too hard to extend the ready-made code). Are there any finer points to deal with connecting to such a dashboard in C++? And would I just use the functions provided in the Dashboard class? The Dashboard.AddType() functions (in Dashboard.h)? I guess Labview will have similar options for reading, and writing back.
However, what functions would I use for listening to the Dashboard from the CRio? Once again, thanks! |
|
#4
|
||||||
|
||||||
|
Re: Creating a Dashboard
Quote:
If two way communication is important, I would suggest starting with the SmartDashboard, which supports two way communication natively. I think that managing the datatype using the Dashboard class to communicate with the LabVIEW dashboard is a pain, but that isn't necessary with SmartDashboard. |
|
#5
|
|||
|
|||
|
Re: Creating a Dashboard
While I won't discourage you from learning the lower level packing functions that are provided for sending stuff to the dashboard, a beta quality set of VIs that implement the SmartDashboard protocol were released last year.
The 2.0 version should make it far easier to mix and match languages and to allow for two-way communications. So perhaps you want to wait until more of that is available. Greg McKaskle |
|
#6
|
|||
|
|||
|
Re: Creating a Dashboard
That first link describing how to use the Labview dashboard with C++ seems to have been deleted. Is this still possible to do?
|
|
#7
|
||||
|
||||
|
Re: Creating a Dashboard
Probably, but the SmartDashboard has been more then sufficient for any task I've had for it. Unless your concerned about aesthetics, I don't see any reason to not use the SmartDashboard.
|
|
#8
|
|||
|
|||
|
Re: Creating a Dashboard
It is still possible to do. Communicating to the LV or Java SmartDashboard from C++ is identical. Simply write to a SmartDashboard variable.
Building the dashboard visuals is different and both tools have a variety of ways to accomplish it. Greg McKaskle |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|