If you use batch file to create the datamat file, you can use the following commands to check and change the orientation. As a matter of fact, button in PLSgui to "check image orientation" when generating datamat file use the same commands to do so. Assuming your raw image file name is "scan.img", here're the commands:
nii=load_nii('scan.img');
view_nii(nii);
Now, check whether your image orientation is in neurological convention. If not, click "Convert to RAS orientation" item under "Edit" command, and make the change. Then go to "File" menu to save the displayed image.
If your image is only in 3D, and you don't want to do this one by one, you can use "collapse_nii_scan" to combine all 3D images in the run to one 4D image. Type: help collapse_nii_scan to learn how to use this command.