Log in

View Full Version : relay device reference?


finman
09-02-2009, 16:45
is there a way to create a relaydevref similar to joystickdevref so that i can reference the device globally?

finman
10-02-2009, 11:51
nevermind, i figured it out

EricVanWyk
10-02-2009, 12:00
nevermind, i figured it out

In that case, please share with the rest of us.

finman
10-02-2009, 16:42
there may be a better way to do this, but i was able to do so as follows(this should work for other devices as well as relays):

-place the "open relay" vi wherever you need it e.g. begin
-right click on the device reference out terminal and select create>constant
-cut and paste the block created into the global variables vi
-you should now be able to access this from the robot data in bundle

please let me know if you have more questions; having a global reference actually made the relays work for me, they had not been doing so previously

-chris

Greg McKaskle
10-02-2009, 16:56
That procedure certainly works. You can also open up one of the subVIs for relay and copy the reference control or indicator. Return to your VI, paste, and connect to the connector pane.

Greg McKaskle

Luke Pike
10-02-2009, 17:59
That procedure certainly works. You can also open up one of the subVIs for relay and copy the reference control or indicator. Return to your VI, paste, and connect to the connector pane.

I just figured that out like yesterday, until then I was doing what finman was. Oh well, as long as it works.