New Programmer- How I can wire photosensor

Hello, I’m a new programmer and I don’t know how I can wire photosensor. Best regards, waiting for your help.

In code you need to use a getDigital.vi found in the IO section of the WPI Robotics Library.
If you are referring to electrical i recommend you search CD because there are numerous threads talking about it

CD Search Feature or: How I learned to wire photosensors
Shout out to Dr. Strangelove :yikes:

Read this thread, or you can start at post 78 on this page: http://www.chiefdelphi.com/forums/showthread.php?t=88548&page=6

guys, sorry I asked wrong. My question is WHERE not How =D I wire. could you explain it or show me an image?

Is this what you are asking for? Sorry, I don’t have an image

Brown + (connected to red power connector on PDB)
Blue - (connected to black power connector on PDB)
White to the white wire of a PWM connected to the digital side car
Black nothing

Correct, with a 20 A breaker installed.

White to the white wire of a PWM connected to the digital side car

NOT correct. The white signal wire goes to a Digital I/O pin on the Digital Sidecar, not to to a PWM pin.