Shooter Question

:ahh: ok so we’re having a problem with our software for this shooter that erin’s brother decided that we needed. we keep getting an error message. Error 1004 the vi is attached.

ShooterVI.vi (40.2 KB)


ShooterVI.vi (40.2 KB)

I am not sure of what you are trying to do. I looked up error 1004 and it said that it is because the VI could not be found. If you said what you are trying to do then I could try to help.

Well yes, we made the VI. LabVEIW said that there were no errors. Then we tried to run it and it showed that it had an error. We have two motors that control a lazy susan with a shooter mechanism on the end. Those two motors attatch to the joystick that control the left and right swivel and up and down motion. Then there is another motor to control the shooter wheel, which ‘shoots’ the moon rocks. We’re feeding the watchdog. this is the error message that pops up when we try to highlight execution: Error 1004 occurred at Open VI Reference in NI_FPGA_Interface.lvlib:NIFPGA System.lvlib:Start Async Agent.vi->NI_FPGA_Interface.lvlib:NIFPGA System.lvlib:Get.vi->NI_FPGA_Interface.lvlib:NIFPGA DIO.lvlib:WritePWMPeriod.vi->DigitalModule.lvlib:Open.vi->PWM.lvlib:Open & Configure.vi->MotorControl.lvlib:Open Victor.vi->ShooterVI.vi
THANK YOU! :smiley:

Well yes, we made the VI. LabVEIW said that there were no errors. Then we tried to run it and it showed that it had an error. We have two motors that control a lazy susan with a shooter mechanism on the end. Those two motors attatch to the joystick that control the left and right swivel and up and down motion. Then there is another motor to control the shooter wheel, which ‘shoots’ the moon rocks. We’re feeding the watchdog. this is the error message that pops up when we try to highlight execution: Error 1004 occurred at Open VI Reference in NI_FPGA_Interface.lvlib:NIFPGA System.lvlib:Start Async Agent.vi->NI_FPGA_Interface.lvlib:NIFPGA System.lvlib:Get.vi->NI_FPGA_Interface.lvlib:NIFPGA DIO.lvlib:WritePWMPeriod.vi->DigitalModule.lvlib:Open.vi->PWM.lvlib:Open & Configure.vi->MotorControl.lvlib:Open Victor.vi->ShooterVI.vi
THANK YOU! :smiley:

I have attached the changes I have made to your VI. Hopefully this works, I am saying that because I am new to labview (but not to programing) and I have yet to download any code to the robot (my team is way behind schedule). If someone else out there could double check to see if it is right would help. Hopefully this will solve that error too.

ShooterVI2.vi (40.9 KB)


ShooterVI2.vi (40.9 KB)

THANK YOU SO MUCH! Ok now we are getting another error. Error -44085 occurred at Loaded FPGA has incorrect version or revision. Library expecting Version 2009, Revision 1.0.0. I will try and figure it out. Any ideas? THANKS AGAIN!!!

Try redoing the VI because I don’t have the update for Labview/CRio on my laptop so I did it with the old version and you probably have the newer version.

Alright so I re-wrote it on the updated program. I got another error: Error -44085 occurred at Loaded FPGA has incorrect version or revision. Library expecting Version 2009, Revision 1.0.0. I am searching the FIRST website and Chief Delphi to figure it out. :cool:

That’s the error I get when I try to “open” something that dosn’t exist… are you actually plugged in where you say you are in the code?

I’m not understanding your statement. We re-wrote the Vi on a blank Vi from an example. Could you explain what you’re saying? :cool: :smiley:

This error can happen if you accidentally try to run your robot program on your PC instead of on the cRIO. Make sure you’re opening the .lvproj and not just the .vi file.

:smiley: :slight_smile: Thank you we will fix that :cool: :smiley: :cool: