You are not logged in.

#1 2019-08-20 20:00:55

amac26
Member
Registered: 2019-07-02
Posts: 6

Python Guide

Hello,

I have worked in python in the past, and I was wondering if anyone had some kind of guide to writing python script specifically for NanoDLP? I understand that python can be used to do calculations and output gcode, but I am unsure where to start. Any tips would be greatly appreciated! Thank you!

Offline

#2 2019-08-22 05:14:17

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,541

Re: Python Guide

There are two ways of modifying values on nanodlp during printing. [[Net ]] and [[Exec ]] keywords check out on-screen help for code boxes.
NanoDLP could call external program or communicate through port and put result inside gcode box for further calculation and etc.

Offline

#3 2019-08-23 19:20:36

amac26
Member
Registered: 2019-07-02
Posts: 6

Re: Python Guide

Shahin,

Thank you for your response! I have a few more questions regarding starting the code.

1. I understand the [[Exec]] command requires a python file name. Does this file have to be saved in a specific location? I am currently using a Raspberry Pi 3 b+, so would I have to save the python file on the SD card?
2. Is there any chance you have a simple example of a python code that can be read by NanoDLP? I am unsure how to request variables from NanoDLP in Python, as my knowledge of Python is very limited.

Any help you could offer would be greatly appreciated! Thanks again!

Offline

#4 2019-08-24 17:22:03

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,541

Re: Python Guide

1. No not important just put correct path: python interpreter + py file

Offline

Board footer

Powered by FluxBB