Thread: SubVI Outputs
View Single Post
  #3   Spotlight this post!  
Unread 21-01-2013, 10:54
DominickC DominickC is offline
Registered User
FRC #0023 (PNTA)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 1620
Location: Boston
Posts: 435
DominickC is an unknown quantity at this point
Re: SubVI Outputs

Here is my current code.

PneuController is the "main VI' which will run the subVI.
PneuStateMachine determines which state ReqPos should pass along to PneuState. ReqPos will ensure a state is not run more than once, however I've yet to integrate this code.
PneuState sets the outputs based on the state.

Sorry for the lack of comments and the rather messy block diagrams.

EDIT for clarity: PneuStateMachine functions as expected and desired. When PneuStateMachine is put into another VI to run as a subVI, the outputs are not updated until the end of the loop.
Attached Files
File Type: vi PneuController.vi (7.8 KB, 7 views)
File Type: vi PneuState.vi (10.8 KB, 3 views)
File Type: vi PneuStateMachine.vi (17.8 KB, 6 views)
File Type: vi ReqPos.vi (6.7 KB, 3 views)

Last edited by DominickC : 21-01-2013 at 11:06.
Reply With Quote