To be certain, you should:
1. Consult your owner's manual: This is the best source for the precise location on your specific truck.
2. Look at a repair manual or online diagrams: Many websites (like Chilton or Haynes) offer repair manuals with diagrams showing the location of various components. Search for "1997 Chevy Silverado [your engine size] oil pressure sending unit"
3. Visually inspect the engine: With the engine cool, carefully examine the area around the oil filter. The sending unit is usually a small, cylindrical device with one or two wires connected to it. It might have a single wire for just the gauge, or two wires if it also controls a warning light.
Caution: Be careful when working around hot engine components. Allow the engine to cool completely before attempting any inspection or repair.