Commit 1bd50230 authored by Massimo Lucano's avatar Massimo Lucano
Browse files

v - FPGA printing mode setup finished and tested

parent 68140768
Pipeline #65440 failed with stages
in 13 seconds
......@@ -17,7 +17,9 @@ imaging:
- iprint-fpga:
enable: true
name: fpga
frequency_master: True # tells if print system of trigger is the master for the frequency. If True, we expected that printing could be interrupted by stopping the trigger
# MPL True -> internal frequency dropping mode False -> encoder connected to output printing mode
# tells if print system of trigger is the master for the frequency. If True, we expected that printing could be interrupted by stopping the trigger
frequency_master: False
support_burst_trigger: False # tells if the trigger is able to fire a given amount of drop only
port: 'COM4'
baudrate: 115200
......
......@@ -26,6 +26,10 @@ if __name__ == '__main__':
timeout -= polling
print(f'{timeout}')
"""
# commente out by MPL; replace with code for printing
# execute only if configuration iprint-fpga: frequency_master: True
# prepare acquisition parameters (i.e. flash delay, duration, ...)
param = AcquisitionParameters(led_delay_us=10, led_duration_us=0.5, jetting_frequency=1000) # all the specified parameters will be set together. The others are ignored (= not updated)
......@@ -41,6 +45,8 @@ if __name__ == '__main__':
# start again, but with sending pulses to print system too (= jetting). And only with camera 0
imaging.acquisition.start_trigger(camera=0, print_enable=True)
# stop jetting and stop module
# stop jetting
imaging.acquisition.stop_trigger()
"""
# stop module
imaging.stop()
......@@ -697,10 +697,10 @@ class IprintTrigger(Trigger):
self._reg_led_drops_per_trigger[i] = 1
# Temp: trigger for Polytype print system on second CAM port:
self._reg_cam_settings[1] = 0x0 | IprintTrigger.CameraTriggerSettings.ENABLE_BIT
self._reg_cam_delay[1] = 0 # 0us
self._reg_cam_duration[1] = 500 # 5us
self._reg_cam_drops_per_trigger[1] = 1
#self._reg_cam_settings[1] = 0x0 | IprintTrigger.CameraTriggerSettings.ENABLE_BIT
#self._reg_cam_delay[1] = 0 # 0us
#self._reg_cam_duration[1] = 500 # 5us
#self._reg_cam_drops_per_trigger[1] = 1
def init_FPGA_printing_mode(self):
"""
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment