|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Compressor
Thanks.
I know what I am looking for now, I just cannot find it. Where are the DIO and Relay channels in labview (for putting on block diagram) I have spent loads of time trying to find it but have failed epicly...(classmate for the win ) |
|
#2
|
|||||
|
|||||
|
Re: Compressor
DIO:
WPI Robotics Library -> IO -> Digital Input (etc)Relay: WPI Robotics Library -> Actuators -> RelayHere's a menu tree from last year (It's missing a few 2012 additions). It might help finding some buried things. |
|
#3
|
|||||
|
|||||
|
Re: Compressor
Are you trying to tell the Compressor Open function which channels to use? Just right-click on the terminal you want to wire to and choose "Create -> Constant" from the pop-up menu. LabVIEW will place the appropriate enumerated constant for the terminal you choose.
|
|
#4
|
|||
|
|||
|
Re: Compressor
![]() ![]() Those are images from my periodic tasks and begin vi. I am not getting the compressor to work. Am I doing something wrong, or is it the wiring? I hit enable on the periodic tasks loop for the compressor and then added the code. |
|
#5
|
|||||
|
|||||
|
Re: Compressor
The code looks normal.
Do you have anything else defined as DIO 1 or Relay 1? If the code is working correctly you should be able to produce a green LED by Relay 1 on the Sidecar when you short across the pressure sensor leads (or connect Signal to Ground on DIO1). |
|
#6
|
|||
|
|||
|
Re: Compressor
I am not with the robot anymore, but when I hit run in Robot Main.vi I get two error messages. Both are about being unable to locate a certain vi...I cannot remember the exact thing though....it had to do with jaguar for one and compressor for the other.
I have nothing set to DIO 1 or Relay 1 other than the compressor. |
|
#7
|
||||
|
||||
|
Re: Compressor
Does it matter that the Start is after the Set Refnum? I haven't played around with the compressor code at all this year, so I wouldn't know..
Also, make sure your pressure switch is wired correctly. One side needs to be hooked to ground, and the other side to the signal wire. |
|
#8
|
|||
|
|||
|
Re: Compressor
I don't think that would matter, but I could try changing it tomorrow.
Thanks. |
|
#9
|
|||
|
|||
|
Re: Compressor
Error 7 occurred at Call Library Function Node in NetComm_UsageReport_report.vi:1->WPI_MotorControlOpen Jaguar.vi->WPI_RobotDriveOpen2MotorWithJaguar.vi->Begin.vi->Robot Main.vi
Error 7 occurred at Call Library Function Node in NetComm_GetModulePresence.vi->WPI_DigitalModuleDIOCache.vi->WPI_DigitalModuleDIOAllocator.vi->WPI_DigitalInputOpen.vi->WPI_CompressorOpen.vi:1->Begin.vi->Robot Main.vi That is the error I am getting. Last edited by Hebrew : 07-02-2012 at 16:24. |
|
#10
|
|||||
|
|||||
|
Re: Compressor
That looks like an interrupted, incomplete, or partially corrupted LabVIEW installation.
Error 7 means the library files it lists are missing. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|