Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   relay device reference? (http://www.chiefdelphi.com/forums/showthread.php?t=74013)

finman 09-02-2009 16:45

relay device reference?
 
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

Re: relay device reference?
 
nevermind, i figured it out

EricVanWyk 10-02-2009 12:00

Re: relay device reference?
 
Quote:

Originally Posted by finman (Post 817904)
nevermind, i figured it out

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

finman 10-02-2009 16:42

Re: relay device reference?
 
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

Re: relay device reference?
 
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

Re: relay device reference?
 
Quote:

Originally Posted by Greg McKaskle (Post 818058)
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.


All times are GMT -5. The time now is 02:20.

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