GithubHelp home page GithubHelp logo

dcc-lab / grin_axicon Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 3.28 MB

CODE V macro to model a GRIN-axicon and python scripts to fit the GRIN-axicon parameters to an existing axicon's parameters

Python 100.00%

grin_axicon's Introduction

GRIN_Axicon

CODE V macro to model a GRIN-axicon and python scripts to fit the GRIN-axicon parameters to an existing axicon's parameters. Make sure to read the intership overview (IntershipRport.pdf) for further details about the GRIN-axicon.

GRIN-axicon configurator setup

Intallation process:

  1. Install the GUI_GRIN-axicon.py file
  2. Open the Python GRIN-Axicon configurator folder in the GRIN-axicon repo on any python IDLE (like VS Code)

Configuring a GRIN-axicon

  1. When running the GUI_GRIN-axicon.py file, an interface should pop up, start by entering the axicon parameters in the Axicon configuration pannel.
  2. Play with the GRIN-axicon sliders to match the input beam diameter to the output beam diameter (if you don't necessarily want an exact copy of the axicon, you can play around until you find your desired GRIN-axcion setup)

Macro setup

Intallation process:

  1. Install the GRIN-axicon_macro.seq file
  2. Copy the sequence file into the working directory
  3. For ease of use, when first opening CODE V and, using the Macro Manager, assign the macro to a desired menu
  4. Install the modified version of usergrn.seq
  5. In the local repository where the built-in CODE V macro are saved, delete the original usergrn.seq and replace it by the modified one (in my case, C:\CODEV112_SR1\macro).

Creating a GRIN

  1. Open CODE V
  2. Run the GRIN-axicon_macro.seq either by a menu shortcut, the Macro Manager or by typing in GRIN-axicon_macro
  3. Type the desired grin glass name
  4. Select the desired mode (theo vs exp: when using the experimental mode, make sure that the file is in the working directory)
  5. Run macro with the desired parameters

Also, when using the experimental mode, make sure to format the refractive index profile correctly using this Python progam (if you are not in the DCC Lab team, copy the code to your own Google Collab file and change the file names): https://colab.research.google.com/drive/1K1_1UN_SLIXMgnj2FgyKjVjrnuUiGcWT?usp=sharing

grin_axicon's People

Contributors

tl70o avatar dccote avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.