Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Programming Case Structure for Kinect Code (http://www.chiefdelphi.com/forums/showthread.php?t=103109)

davincirobotics 17-02-2012 20:37

Programming Case Structure for Kinect Code
 
I am trying to create a case structure in my Kinect Code that will check to see if a kinect is connected. If it is, it will run the TRUE code in the case structure running the Kinect Code and if FALSE it will run a different autonomous code. Does anybody know the block I would wire to the case structure allowing me to do this?

Mark McLeod 17-02-2012 21:10

Re: Programming Case Structure for Kinect Code
 
Most of the Kinect vi's have a "success" output that should be usable for this.

Joe Ross 17-02-2012 21:56

Re: Programming Case Structure for Kinect Code
 
Quote:

Originally Posted by Mark McLeod (Post 1129119)
Most of the Kinect vi's have a "success" output that should be usable for this.

According to the LabVIEW help, success means it got data from the kinect server (which implies it would return success even if the kinect isn't plugged in). Have you tested the success flag with and without the kinect plugged in?

Another option would seem to be the Kinect Header vi which returns the number of players.

Mark McLeod 17-02-2012 22:06

Re: Programming Case Structure for Kinect Code
 
Good point, I looked at it early on, but don't remember when success was true or when it was false.
# players=0 sounds good.

Inspect the available outputs to see which one will work for you.

Greg McKaskle 17-02-2012 22:17

Re: Programming Case Structure for Kinect Code
 
I believe it is the Kinect header that returns the Version String. A numeric value indicates that all is well and otherwise the string contains messages such as No Power.

Greg McKaskle


All times are GMT -5. The time now is 11:14.

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