|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Refnum Defining
Because the RefNum Get is outside the case structure, it seems it should be getting called - and the error makes me think it is. One thing to try might be to actually make a copy of the "Sensor" text constant wired to the RefNum Set, and wire that into the RefNum Get. This would be just to make sure the names are identical and there isn't some hidden or nonprintable text.
|
|
#2
|
||||||
|
||||||
|
Re: Refnum Defining
Quote:
Last edited by Joe Ross : 20-01-2010 at 12:19. |
|
#3
|
|||
|
|||
|
Re: Refnum Defining
Quote:
Attached is my code and a picture of the error message. ![]() Last edited by Pausert : 20-01-2010 at 14:33. |
|
#4
|
|||
|
|||
|
Re: Refnum Defining
UPDATE: I have reinstalled LabVIEW with the update and it has not solved the issue. Additionally, I tried another laptop and that gave me the same error.
|
|
#5
|
|||||
|
|||||
|
Re: Refnum Defining
How are you running the code? I don't see a Robot Main vi window open anywhere.
|
|
#6
|
|||
|
|||
|
Re: Refnum Defining
From the teleop loop. Should I be running it from main? i thought that running it from teleop wouldn't be a problem as the other refnums didn't return errors...
|
|
#7
|
|||||
|
|||||
|
Re: Refnum Defining
If you don't run the Robot Main vi, the Begin vi doesn't get called. I think that should adequately explain the problem you've been having.
|
|
#8
|
|||
|
|||
|
Re: Refnum Defining
Quote:
Also your indicator is going to appear in the teleop front pannel not the driver station or robot main front pannels. You can have these front pannels open when the program is running though without any problems |
|
#9
|
|||
|
|||
|
Re: Refnum Defining
Thanks for all the help. That seems to have fixed it.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| refnum registry location | Wendy Holladay | NI LabVIEW | 1 | 17-01-2010 22:11 |
| Defining a joystick | dr_jack3l | National Instruments LabVIEW and Data Acquisition | 1 | 12-02-2009 09:59 |
| Defining First code? | mormannoob | Programming | 4 | 17-01-2008 23:36 |
| Defining Leadership | Bomberofdoom | General Forum | 8 | 17-09-2007 14:58 |
| Defining file name? | Mike | Programming | 2 | 08-02-2006 17:28 |