View Full Version : LabView Dashboard Problems
brummer_13
23-01-2006, 20:28
The dashboard that is usable in LabView won't conect to my robot to recieve data from it. How do i do it?
Danny Diaz
24-01-2006, 08:48
The dashboard that is usable in LabView won't conect to my robot to recieve data from it. How do i do it? Have you used the CMUCam2 with your computer? You need to install NI-VISA (http://www.ni.com/visa) as per the instructions and select the correct COM port in the program (if you're not reading from a file). Please read the included documentation, it is very thorough.
-Danny
brummer_13
25-01-2006, 18:36
Have you used the CMUCam2 with your computer? You need to install NI-VISA (http://www.ni.com/visa) as per the instructions and select the correct COM port in the program (if you're not reading from a file). Please read the included documentation, it is very thorough.
-Danny
Yea I got the camera to work just about perfectly but i want to get feedback from my robot itself through labview and i dont know how to do it
Danny Diaz
26-01-2006, 14:16
Yea I got the camera to work just about perfectly but i want to get feedback from my robot itself through labview and i dont know how to do it Ah, I think I see what you mean. To get feedback to the driver (on things not already relayed to the driver such as PWM values, battery levels, etc...), you need to write to the user bytes within your source code. You can then see those user bytes through the Dashboard. If you're using the IFI Breaker Panel and have it connected to your Program Port, realize the Breaker Panel writes to user bytes so be careful what bytes you use - info on what the breaker panel uses is in the breaker panel documentation (sorry I don't have that info in front of me!).
-Danny
brummer_13
28-01-2006, 14:39
But how do i write to the source code? And how do i also get labview to show me the PWM values and the things already relaed to the driver?
But how do i write to the source code? And how do i also get labview to show me the PWM values and the things already relaed to the driver?
Click Window>Show Block Diagram
Fool around in the block diagram and you will get it.
brummer_13
28-01-2006, 15:00
can u give me alittle more than that, the block diagram is very confusing right now
can u give me alittle more than that, the block diagram is very confusing right now
if you look at the block diagram, the 4 selector sorta thing down, is the byte that is coming in from your OI. They are all labeled based upon what they are (pwm2, pwm3, etc.). If your looking at one of the pwm bytes that is included with the template, you can copy with what you see on the diagram inside that byte and paste it into a different pwm byte.
Hope that helps,
Matt
Chris_Elston
28-01-2006, 21:43
Ah...ok...I get it now. We aren't using the default IFI Code and MPLAB, we are using EasyC. In EasyC, the user bytes aren't being sent because there is no code written to do so (default template in EasyC). If we had installed the default IFI Code, these user bytes are already included in the default code, I believe.
Thanks guys for helping one of my programmers. He is a freshman and doing very well.
I'll see if I can give him a hand now that I understand what is going on myself. (newbie to Labview)....
brummer_13
31-01-2006, 18:29
alright now that i know what to do, how do i do it. i cant find anywhere how to change the user byte assignments
Mark McLeod
01-02-2006, 09:12
alright now that i know what to do, how do i do it. i cant find anywhere how to change the user byte assignments
In user_routines.c you’ll see this example line close to the end:User_Mode_byte = backup_voltage*10; /* so that decimal doesn't get truncated. */
You can also set the following variables anywhere before a putdata()
User_Byte1
User_Byte2
User_Byte3
User_Byte4
User_Byte5
User_Byte6
So for example: User_Byte1 = 123;
brummer_13
01-02-2006, 20:13
In user_routines.c you’ll see this example line close to the end:User_Mode_byte = backup_voltage*10; /* so that decimal doesn't get truncated. */
You can also set the following variables anywhere before a putdata()
User_Byte1
User_Byte2
User_Byte3
User_Byte4
User_Byte5
User_Byte6
So for example: User_Byte1 = 123;
where is user_routines.c though, i found the file on my comp but i cant open it with wnything. is that what u ment or is it a part of easyc or something
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.