Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Programming Error (http://www.chiefdelphi.com/forums/showthread.php?t=75181)

chinckley 24-02-2009 16:19

Programming Error
 
1 Attachment(s)
Help, We are getting the following error when attempting to run our code (which was made in Labview).

We have update it with version 3

It says on our DS 2009-10a3

Vikesrock 24-02-2009 16:29

Re: Programming Error
 
You likely need to reimage your cRIO with the image installed with Labview Update 3. As I recall the image should be v11.zip

You also should upgrade your DS firmware to the latest version which can be found (along with instructions for updating) here

chinckley 24-02-2009 17:39

Re: Programming Error
 
Quote:

Originally Posted by Vikesrock (Post 827404)
You likely need to reimage your cRIO with the image installed with Labview Update 3. As I recall the image should be v11.zip

You also should upgrade your DS firmware to the latest version which can be found (along with instructions for updating) here

We have 2009-10a3 on our DS.
Our first program works just fine - just using the joysticks to move the wheels.

When we try to RUN the new version we get this error. We did not want to put the new program on as run at startup because we want to test it for errors.

Vikesrock 24-02-2009 17:56

Re: Programming Error
 
The cRIO and the DS have independent firmware. I apologize for suggesting you update your DS, I did not examine the number you posted closely enough.

The latest version of the cRIO firmware is FRC_2009_v11.zip. You can update your cRIO by running the FRC cRIO Imaging Tool. This tool should detect the cRIO automatically and show it in the small window at the top of the tool. If it does do the following to update your cRIO firmware:

1. Select Labview as the "Development Environment". I recommend checking the box to always run deployed code at startup. This will not affect the code that you Run with the white arrow, only code that is deployed.
2. Click the "Format Controller" checkbox.
3. Select FRC_2009_v11.zip as the image.
4. In the Device name box enter "FRC-cRIO-1254" without the quotes
5. Enter your team number in the "Team ID" box.
6. Click Apply. This will start the firmware update, the process will take 5 or more minutes to complete. When it completes it will say that it is successfully updated and you may then click "Close".
7. Turn your robot off, wait ~15 sec., then turn it back on to load the new firmware into the cRIO.

After the cRIO is updated try opening Labview and running your code again. Post back on whether the error is resolved or not.

Alan Anderson 24-02-2009 19:19

Re: Programming Error
 
You're not accidentally trying to run the code on your PC rather than on the cRIO, are you? Make sure the VI is under the correct target in your project.

chinckley 25-02-2009 10:35

Re: Programming Error
 
Okay, so now we are having more trouble.

We reimaged the cRIO and that had no effect. The behavior was the same as before.

Then we loaded a different VI it deployed, but then nothing worked.
When we power cycle the robot the previous program does not come up.
Isn't there supposed to be a default code?

By deploying a VI is it possible to overwrite the non-volitile memory?

Help, we leave for TC tomorrow AM.



UPDATE: 11:02 am

We got it back so it runs the code we had in there that just uses 2 joystick to
run the wheels in tank mode.

We cannot get it to accept the new program which does that as well as runs
our chain and dumper.

HELP? Please.

chinckley 25-02-2009 11:28

Re: Programming Error
 
We are able we think to deploy another program -
it gives many pages of output and the last line it gives us is:

deploy send images to PC.vi

Did it finish?

The orange light and the jaguars are still flashing and we cannot run the joysticks.

Mark McLeod 25-02-2009 11:36

Re: Programming Error
 
Not enough information to tell.
What is PC.vi for instance? Are you streaming camera video back to your PC?
What is the many pages of output?
How do the pages of output differ from downloading your first program that just has the joysticks?

What are the buttons and menu choices you are making to download your program?
Are you using "run as startup" from the Project Explorer Build Specifications?

If you post a zip of your project that fails to download we might be able to help.

chinckley 25-02-2009 11:53

Re: Programming Error
 
1 Attachment(s)
Quote:

Originally Posted by Mark McLeod (Post 827764)
Not enough information to tell.
What is PC.vi for instance? Are you streaming camera video back to your PC?
What is the many pages of output?
How do the pages of output differ from downloading your first program that just has the joysticks?

What are the buttons and menu choices you are making to download your program?
Are you using "run as startup" from the Project Explorer Build Specifications?

If you post a zip of your project that fails to download we might be able to help.


See error file:
We get this and then it goes through and it loads 100’s of vi’s.
We press okay and then it appears to have deployed but then the robot is not responsive.

This is just joystick tank drive only, but we get the same error when we run the
program with the dumper.

All we are doing is trying to get a program onto the cRIO.

We have followed the directions step by step

We have reimaged the cRIO also and it did not change the behavior.

chinckley 25-02-2009 11:57

Re: Programming Error
 
If you "run as startup" and it does not work can you get back to the one that worked or has it overwritten non-volitile memory?

chinckley 25-02-2009 12:20

Re: Programming Error
 
1 Attachment(s)
Here is the step by step process we used and where the error appeared.

Mark McLeod 25-02-2009 12:21

Re: Programming Error
 
I see you're just using the Tank Drive Example project.
Did you create a new project after the last Update 3a was installed?

P.S. I note that in the second procedure you're using the Basic Framework.

The pop-up window with the warning messages is normal and can be ignored. Every LabVIEW program will download 100's of vi's, so that's normal too.

"run as startup" means this is the program that will run when the robot is turned on. So it would replace the default project.

Just pushing the "Run" or "Run Continuous" arrows on the top-level vi will only be temporary and won't be around after the robot gets reset or power cycled. I assume this is what you want to do, so that's okay.

So using "Run" you get "No Code" displayed on the Driver Station?
Do you let it sit for a few minutes after you see "No code"?
You will get "No code" for a brief period after the cRIO resets or is started, but then if you're restarting the cRIO then you wouldn't get to see your program running anyway.

chinckley 25-02-2009 12:27

Re: Programming Error
 
Quote:

Originally Posted by Mark McLeod (Post 827792)
I see you're just using the Tank Drive Example project.
Did you create a new project after the last Update 3a was installed?
We did create one, but we get the same thing. We get the deployment conflict warning and if you proceed past that by pressing the OK button then it deploys 100's of vi's and the robot no longer works.

The pop-up window with the warning messages is normal and can be ignored. Every LabVIEW program will download 100's of vi's, so that's normal too.

"run as startup" means this is the program that will run when the robot is turned on. So it would replace the default project.

Just pushing the "Run" or "Run Continuous" arrows on the top-level vi will only be temporary and on't be around after the robot gets reset or power cycled. I assume this is what you want to do, so that's okay. YES

So using "Run" you get "No Code" displayed on the Driver Station?
Do you let it sit for a few minutes after you see "No code"? yes
You will get "No code" for a brief period after the cRIO resets or is started, but then if you're restarting the cRIO then you wouldn't get to see your program running anyway.

Thanks

Mark McLeod 25-02-2009 12:38

Re: Programming Error
 
The "Run" button turns black and stays that way?

Do the controls on your Robot Main.vi Front Panel respond?

I'll be back in a few minutes. I have to get a root canal done...:(

chinckley 25-02-2009 12:51

Re: Programming Error
 
Quote:

Originally Posted by Mark McLeod (Post 827800)
The "Run" button turns black and stays that way? No it does not stay that way.

Do the controls on your Robot Main.vi Front Panel respond? How do we tell?


I'll be back in a few minutes. I have to get a root canal done...:(

Yuck...

Thanks


All times are GMT -5. The time now is 01:58.

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