View Full Version : Labview Dashboard issues???
Invictus3593
21-01-2013, 18:08
So i followed the FIRST 2013 tutorial on putting stuff onto the dashboard, and i followed each step to the dot, but nothing on the dashboard responds to anything i've set it to respond to!
I used the SD read and write .vi's ("write" in the robot code and "read" inside a while loop in the dashboard main) and not one boolean LED lights up when a switch is pressed. :mad:
Is there something wrong with the way I have the read and write vi's set up in each of the attached files?
BitTwiddler
21-01-2013, 19:18
I'm learning this Smart Dashboard thing myself.
What happens if you delete the Read SD functions from the Dashboard and just put down indicators and guages labeled B1, B2, N1 on the front panel?
I don't have a robot handy to try it out but I'd sure like to know what happens.
Greg McKaskle
21-01-2013, 19:36
I didn't look at all of the code, but opened up the Dashboard. The code that you added for N1, B1, and B2 was not placed in a loop, so it runs once and never again.
The green comment at the top of the diagram describes how to add controls or indicators and connect them to variables. It seems that you are close and only need to name the controls N1, B1, and B2. You can then delete the SD functions and just leave the terminals alone.
If you actually want to compute the data on the dashboard and write it to the variable, then put your code and the SD update into either loop 1 or loop 2.
Greg McKaskle
Invictus3593
22-01-2013, 16:00
Thanks! Using a loop worked instantly! Wow, pretty stupid of me not to read the comment. ::rtm::
It seems that you are close and only need to name the controls N1, B1, and B2. You can then delete the SD functions and just leave the terminals alone.
If you actually want to compute the data on the dashboard and write it to the variable, then put your code and the SD update into either loop 1 or loop 2.
I don't fully understand what you mean by deleting the SD functions. I thought they were required to be able to get values from the Robot code to the dashboard? My brain tells me that if i delete them, it stops working, but i could be wrong!
Could you give point me to an example of a dashboard that uses maybe one number variable like mine but with out the SD function?
Greg McKaskle
22-01-2013, 20:57
The default checkboxes and slider work this way. The "magic" is that the controls in the Operation tab are automatically registered with SD using the name on the control. There is no need to use SD functions with them, but you can if you wish.
Greg McKaskle
crollison
23-01-2013, 13:21
I've been looking for such a tutorial. Where did you find it? I probably looked right over it but am really looking to edit the default dashboard. Thanks.
Greg McKaskle
23-01-2013, 14:52
The more basic tutorial is in the product. Go to the Getting Started window, click the Tutorials tab on the left and choose #6.
A more updated and helpful tutorial is locate at https://decibel.ni.com/content/docs/DOC-8923
Scroll down a bit and one is specific to the Dashboard.
Greg McKaskle
crollison
23-01-2013, 15:48
Thanks, looks like a great resource.
Invictus3593
23-01-2013, 15:49
I've been looking for such a tutorial. Where did you find it? I probably looked right over it but am really looking to edit the default dashboard. Thanks.
It's right here (https://decibel.ni.com/content/docs/DOC-26296), but it didin't help me too much except with basic "how"s and "why"s.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.