40m QIL Cryo_Lab CTN SUS_Lab TCS_Lab OMC_Lab CRIME_Lab FEA ENG_Labs OptContFac Mariner WBEEShop
  40m Log  Not logged in ELOG logo
Entry  Mon Jun 3 21:03:54 2019, Milind, Update, Cameras, Steps to interact with GigE sitemap.pdf
    Reply  Tue Jun 4 22:24:45 2019, Milind, Update, Cameras, Steps to interact with GigE 
       Reply  Tue Jun 4 23:41:13 2019, gautam, Update, Cameras, Steps to interact with GigE 
          Reply  Wed Jun 5 22:30:13 2019, Milind, Update, Cameras, Steps to interact with GigE 
             Reply  Thu Jun 6 16:01:52 2019, Milind, Update, Cameras, Steps to interact with GigE terminal_medm_error.pdf
                Reply  Mon Jun 10 22:22:19 2019, Milind, Update, Cameras, Steps to interact with GigE 
                   Reply  Thu Jun 13 21:29:52 2019, Milind, Update, Cameras, Steps to interact with GigE terminal_error_server.pdf
Message ID: 14649     Entry time: Mon Jun 3 21:03:54 2019     Reply to this: 14654
Author: Milind 
Type: Update 
Category: Cameras 
Subject: Steps to interact with GigE 

The following steps summarize the steps to setting up and interacting with a GigE camera.

Launching the PylonViewerApp:

  1. Open a new terminal using Ctrl + Alt + T on the keyboard.
  2. Launch the app using the command pylon.

Using setup python scripts to interact with the GigE (a summary of the steps listed here and here)

  1. Connect the GigE camera to the ethernet cable and record its IP address. If the IP address is not printed on the GigE, launch the PylonViewerApp and navigate to the "Tools" dropdown menu and select "pylon IP configurator" to be presented with a list of all connected cameras and their IP addresses.
  2. To simply observe the camera feed, open a new terminal and run the following commands:
    1. cd /opt/rtcds/caltech/c1/scripts/GigE/SnapPy_pypylon
    2. python camera_server.py -c C1-CAM-ETMX.ini  (only one config file is present currently and more will be added as more cameras are set up. The "Camera IP" in the  .ini file must match that determined in step 1). This starts the camera server.
  3. Open a new tab (Ctrl + Shift + T on the keyboard) in the terminal. You should still be in the same directory as navigated to in step 2.1. Run the following command.
    1. python camera_client.py -c C1-CAM-ETMX.ini
  4. This should bring up a feed from the camera. Close at will.
  5. To record a video file, repeat steps 1 and 2. Open a new tab as described in step 3. Then run the following command:
    1. python camera_client_movie.py -c C1-CAM-ETMX.ini
  6. Enter the full path to the file where you wish to save the movie in the prompt that appears. Use ./your_file_name_here.avi to save the the video in the working directory. Press Ctrl + C to stop recording. The recording can be played by navigating to the location where the recording is stored and running vlc your_file_name_here.avi.
  7. To adjust the exposure setting of the camera, open a new terminal and run the command sitemap . This should bring up the medm display in Attachment #1. Click on the Video/Lights button highlighted in red and select GigE. Adjust the exposure value in the next window using the slider before starting the server in step 1. Adjusting the slider once the server is started causes the program to freeze. Also set the Snapshot channel C1:CAM-ETMX_SNAP to off as mentioned in elog 14037.

 

Upcoming updates:

  1. Automatic script to run the above steps.
  2. Pre-determining the time duration of the recorded video.
  3. Obtaining snapshots.

 

Attachment 1: sitemap.pdf  6 kB  Uploaded Tue Jun 4 00:14:47 2019  | Hide | Hide all
sitemap.pdf
ELOG V3.1.3-