Configuring HWS to get image in CentOS ---------- 9:34AM - Dalsa 1m60 turned on ---- $ /opt/EDTpdv $ ./serial_cmd %%this starts the serial communications device in the EDT FG but it isn't configured. $./camconfig You don't have permission to write the file ./pdvload. You need to either change the permission on the file, or or run this program as superuser. %% need to be a superuser - NEED to change this!! # su root %% login as root # ls -l pdvlo* -rwxr-xr-x 1 root root 143 May 3 09:39 pdvload -rw-rw-rw- 1 root root 0 May 3 09:39 pdvload.out %% change the file permissions on pdvload # chmod 775 pdvload -rwxrwxr-x 1 root root 143 May 3 09:39 pdvload %% does this work in controls? %% no! # chmod 777 pdvload $ ./camconfig %% this works for controls!! $ ./camconfig Enter a number, or for more, b to go back > 331 selected Dalsa Pantera 12 bit single channel camera link for PCIDV unit 0 init unit 0 pantera11m4fr.cfg.... %% note that the camera was set to number 331 ./serial_cmd works!! ------ 9:48 AM - now try and get an image - oooh, it's loading the configuration file pantera11m4fr.cfg when i select 331 - interesting $ cd pdv_flshow %%change directory to /opt/EDTpdv/pdv_flshow %% start pdvshow $ ./pdvshow %% in the GUI menu select the following Camera->Continuous Capture %% nothing happened when i first tried this but when i restarted the program it worked okay and now i see an image where the pattern is not written back correctly - the number of horizontal pixels are wrong somehow $ /opt/EDTpdv/serial_cmd svm 2 (black) - but gcp says this is "Test Pattern Right Side" svm 1 - interlaced image - gcp says this is "Test Pattern Left Side" svm 0 - (black) - gcp says this is "Normal Operating mode" svm 3 - (interlaced) - gcp says this is "Test Pattern Both Sides" - okay, let's look at the 11m4fr.cfg configuration file /opt/EDTpdv/camera_config/pantera11m4fr.cfg ------ 10:03AM - actuall, i'll try and get it started with the default 1m60.cfg file, which number though? 10:27AM - there are 659 camera configuration files in the camera_config directory but no indication of how they are sorted. 10:49AM - cannot find any camera in the ./camconfig list that corresponds to the Dalsa 1M60. Also there are only about 460 cameras in the ./camconfig list versus the 659 in the directory - changing permissions on the files in the /camera_config directory chmod 766 * %% have to su root %% the name of the camera as it appears in the list in ./camconfig is the first line in the configuration file: # CAMERA_MODEL "Dalsa Pantera 12 bit single channel camera link" %% i tested this in the usual purile way by adding an expletive to the name and then running ./camconfig to confirm that it came up. %% noticed from a ./camconfig error message that ./camera_select is not complied ---- 11:00AM - the dalsa_1m60.cfg file does not have a CAMERA_MODEL line # CAMERA_MODEL "Dalsa 1m60 config file (freerun)" %% edited the first line to the above %% it appears in the list now. %% have selected it %% try pdvshow %% success!! of sorts. I'm getting an image but the camera is in external trigger mode. The demodulation of the input signal is correct though. I'm getting a stable image of the test pattern on the right side (and it's set to "Test Pattern Right Side") Also there is a white bar down the right side - what is this? %% set exposure mode to 2 - free running (sem 2) %% am definitely seeing an image now - but it's sort of offset by (50, 130) pixels- image size in configuration file? %% Ah - running the Configuration in pdvshow and then hitting "cancel" causes a segmentation fault. - hmmm %% restarted pdvshow and image is displaying correctly now. - perfect but why did it not work before? %% capture single image %% saved it to: /cvs/users/abrooks/notes/lab_notes_Aidan/2010-05_notes_for_May/2010-05-03_dalsa1m60_image_test_pattern_right_side.tif ----------- 11:21AM - trying it all over %% ran ./camconfig and loaded a different model %% camera is off %% camera is now ON $ ./camconfig %% select number 53 (which is the Dalsa 1M60) $ ./serial_cmd > vt Camera Temperature on Digitizer Board: 36.0 Celsius Camera Temperature on Sensor Board: 28.9 Celsius %% serial communications works $ cd pdv_flshow/ $ ./pdvshow %% am seeing an image that is correctly demodulated but it is Test Pattern Both Sides. Check the camera parameters %% it is in exposure mode 2 but it is set to "Test Pattern Both Sides" > svm 0 %% the image in pdvshow changes to the the actual image. pdvshow says itis 1024,1024 and that frames per second = 57.46. %% capture an image /cvs/users/abrooks/notes/lab_notes_Aidan/2010-05_notes_for_May/2010-05-03_dalsa1m60_image_full_image.tif %% captured correctly!! yay!! ----- 11:29AM - try one more restart to see what video mode it starts in ... $ ./camconfig - select 331 $ ./camconfig - select 53 (1M60) $ pdv_flshow/pdvshow %% camera is free-running in exposure mode 0 (normal operating mode) ----- %% need to check whether any changes in the camera parameters come up when i boot pdvshow or run ./camconfig (i.e. make it deterministic and set the default values to be what I want them to be) %% illuminated HP with a torch and set the expsoreu time to 500 usec. saved the image of the spots and test pattern on the left hand side /cvs/users/abrooks/notes/lab_notes_Aidan/2010-05_notes_for_May/2010-05-03_dalsa1m60_image_test_pattern_and_spots.tif