The first reply is correct But you need to set the camera to it's sync speed, usually around 1/60th sec on a horizontal travel shutter.
Most cameras will have these indicated with a lightning bolt or SS in blue.