Perpendicular frame to curve

hi i was trying to rotate the frame, that they are perpendicular to the curve - the curve is not flat… is there an other possibility to define that the frame is perpendicular?