![]() |
ROBOT C and the LabVIEW Dashboard
So, we want to use the LabVIEW software to create a dashboard, but our robot is currently coded in ROBOT C. Does anyone know the function call to get the data to the dashboard display?
P.S. When using ROBOT C, we have to load with program mode NOT enabled, otherwise it can't find the RC. In addition, instead of the pressure switch equaling zero for the compressor to turn on, it must NOT equal zero for that to work, even though the switch is giving back the correct values. Any help on these issues would be appreciated as well. |
Re: ROBOT C and the LabVIEW Dashboard
I havent used the LabVIEW dashboard yet, but I have used IFI Dashboard. It is really nice. It tells you everything going on in the RC and the OI. Not at the same time though. Here is the link if you want it.
http://www.ifirobotics.com/dashboard_viewer.shtml Good luck, Jacob |
Re: ROBOT C and the LabVIEW Dashboard
As for the dashboard, we have not tested using ROBOTC with the Labview dashboard. I seem to recall it works with the IFI supplied dashboard software.
Please post a link to where I can find the Labview dashboard and I'll take a look at it's ROBOTC compatibility. Do you get the source for the dashboard or just a compiled application? Per the download: It's not a bug, it's how it was designed. ROBOTC does not send the entire firmware image down every time you load a new program, only when you load the ROBOTC VM firmware. So to make life a little easier than running over to the robot, holding down the PROG button and sending the new program over... you can start/stop programs and send new programs from your computer. In ROBOTC, a closed digital sensor returns a "1" value, and an open digital sensor returns a "0" value. Hence why you need to use the != when writing your pneumatics shutoff valve code. |
Re: ROBOT C and the LabVIEW Dashboard
Even with IFI Dashboard, I can't get an analog input, something I need (pressure sensor). Anyone know how to use a user byte in ROBOT C?
|
Re: ROBOT C and the LabVIEW Dashboard
The pressure sensor from the KOP is a digital input.
AS for sending data to the OI the data you need to send is called a "User Byte" |
Re: ROBOT C and the LabVIEW Dashboard
There are 6 user bytes that get sent back to the OI, along with the PWM information for PWM outputs 1-16. A few other things get sent back as well; take a look at the packet spec to get all the details.
To set a user byte, you do something like Code:
User_Byte_1 = 243;This LabVIEW code is a great place to start: http://www.chiefdelphi.com/forums/sh...71&postcount=8 |
| All times are GMT -5. The time now is 10:59. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi