added python simulation script

main
Dylan Missuwe 2022-11-09 12:28:35 +01:00
parent c4490ee2c8
commit 1c6ef8a83f
4 changed files with 53 additions and 12 deletions

11
.project Normal file
View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Ultrasonic_phased_array</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>

View File

@ -7,7 +7,7 @@ When we power up the system, the transducers start emitting ultrasonic sound wav
## Working principle ## Working principle
Lets consider an example where we want to send a single pulse of airpressure to a certain point in space. We have an array of transducers we can work with. If we time the pulse at each transducer correctly, we can make all the waves arrive at that point simultaniously. Lets consider an example where we want to send a single pulse of airpressure to a certain point in space. We have an array of transducers we can work with. If we time the pulse at each transducer correctly, we can make all the waves arrive at that point simultaniously.
Since the waves travel in a sphere around the transducer, we can use the distance from the point to each transducer in combination with the wavelength to time the pulse correctly. Since the waves travel in a sphere around the transducer, we can use the distance from the point to each transducer in combination with thew wavelength to time the pulse correctly.
[<img src="img/gifsmos_single_focus.gif" width="250px"/>](img/gifsmos_single_focus.gif) [<img src="img/gifsmos_single_focus.gif" width="250px"/>](img/gifsmos_single_focus.gif)

View File

@ -19,3 +19,36 @@ timestamp=[2022-10-07 15:04:01], mode=BUILD, duration=0:00:04.813, duration_ms=4
timestamp=[2022-10-07 15:04:07], mode=PLATFORM_GENERATION, duration=0:00:05.856, duration_ms=5856, data={name=phased_array_platform} timestamp=[2022-10-07 15:04:07], mode=PLATFORM_GENERATION, duration=0:00:05.856, duration_ms=5856, data={name=phased_array_platform}
timestamp=[2022-10-07 15:04:08], mode=BUILD, duration=0:00:00.378, duration_ms=378, data={name=phased_array_system, configuration=Debug, clean_build=true} timestamp=[2022-10-07 15:04:08], mode=BUILD, duration=0:00:00.378, duration_ms=378, data={name=phased_array_system, configuration=Debug, clean_build=true}
timestamp=[2022-10-07 15:04:16], mode=BUILD, duration=0:00:07.985, duration_ms=7985, data={name=phased_array_system, configuration=Debug, clean_build=false} timestamp=[2022-10-07 15:04:16], mode=BUILD, duration=0:00:07.985, duration_ms=7985, data={name=phased_array_system, configuration=Debug, clean_build=false}
timestamp=[2022-10-17 19:34:26], mode=WORKBENCH_START, duration=0:00:06.512, duration_ms=6512, data={}
timestamp=[2022-10-17 19:34:26], mode=WORKBENCH_UI_INIT, duration=0:00:00.453, duration_ms=453, data={editors_count=0, platform_editors_count=0, projects_count=0, platform_projects_count=0, active_platform_editor=false, projects=}
timestamp=[2022-10-17 19:34:28], mode=PLATFORM_REPOSITORY_INIT, duration=0:00:00.680, duration_ms=680, data={}
timestamp=[2022-10-17 19:36:11], mode=WORKBENCH_START, duration=0:00:05.655, duration_ms=5655, data={}
timestamp=[2022-10-17 19:36:11], mode=WORKBENCH_UI_INIT, duration=0:00:00.525, duration_ms=525, data={editors_count=0, platform_editors_count=0, projects_count=1, platform_projects_count=0, active_platform_editor=false, projects=RemoteSystemsTempFiles}
timestamp=[2022-10-17 19:36:13], mode=PLATFORM_REPOSITORY_INIT, duration=0:00:00.443, duration_ms=443, data={}
timestamp=[2022-10-17 19:37:26], mode=WORKBENCH_START, duration=0:00:05.360, duration_ms=5360, data={}
timestamp=[2022-10-17 19:37:27], mode=WORKBENCH_UI_INIT, duration=0:00:00.525, duration_ms=525, data={editors_count=0, platform_editors_count=0, projects_count=1, platform_projects_count=0, active_platform_editor=false, projects=RemoteSystemsTempFiles}
timestamp=[2022-10-17 19:37:28], mode=PLATFORM_REPOSITORY_INIT, duration=0:00:00.394, duration_ms=394, data={}
timestamp=[2022-10-17 19:38:31], mode=WORKBENCH_START, duration=0:00:06.131, duration_ms=6131, data={}
timestamp=[2022-10-17 19:38:31], mode=WORKBENCH_UI_INIT, duration=0:00:00.655, duration_ms=655, data={editors_count=0, platform_editors_count=0, projects_count=1, platform_projects_count=0, active_platform_editor=false, projects=RemoteSystemsTempFiles}
timestamp=[2022-10-17 19:38:33], mode=PLATFORM_REPOSITORY_INIT, duration=0:00:00.518, duration_ms=518, data={}
timestamp=[2022-10-17 19:39:22], mode=WORKBENCH_START, duration=0:00:06.944, duration_ms=6944, data={}
timestamp=[2022-10-17 19:39:23], mode=WORKBENCH_UI_INIT, duration=0:00:00.695, duration_ms=695, data={editors_count=0, platform_editors_count=0, projects_count=1, platform_projects_count=0, active_platform_editor=false, projects=RemoteSystemsTempFiles}
timestamp=[2022-10-17 19:39:25], mode=PLATFORM_REPOSITORY_INIT, duration=0:00:00.556, duration_ms=556, data={}
timestamp=[2022-10-17 19:48:01], mode=WORKBENCH_START, duration=0:00:04.805, duration_ms=4805, data={}
timestamp=[2022-10-17 19:48:01], mode=WORKBENCH_UI_INIT, duration=0:00:00.501, duration_ms=501, data={editors_count=0, platform_editors_count=0, projects_count=1, platform_projects_count=0, active_platform_editor=false, projects=RemoteSystemsTempFiles}
timestamp=[2022-10-17 19:48:02], mode=PLATFORM_REPOSITORY_INIT, duration=0:00:00.392, duration_ms=392, data={}
timestamp=[2022-10-17 19:48:26], mode=WORKBENCH_START, duration=0:00:04.797, duration_ms=4797, data={}
timestamp=[2022-10-17 19:48:26], mode=WORKBENCH_UI_INIT, duration=0:00:00.469, duration_ms=469, data={editors_count=0, platform_editors_count=0, projects_count=1, platform_projects_count=0, active_platform_editor=false, projects=RemoteSystemsTempFiles}
timestamp=[2022-10-17 19:48:27], mode=PLATFORM_REPOSITORY_INIT, duration=0:00:00.401, duration_ms=401, data={}
timestamp=[2022-10-17 19:52:25], mode=WORKBENCH_START, duration=0:00:05.029, duration_ms=5029, data={}
timestamp=[2022-10-17 19:52:25], mode=WORKBENCH_UI_INIT, duration=0:00:00.482, duration_ms=482, data={editors_count=1, platform_editors_count=0, projects_count=1, platform_projects_count=0, active_platform_editor=false, projects=RemoteSystemsTempFiles}
timestamp=[2022-10-17 19:52:27], mode=PLATFORM_REPOSITORY_INIT, duration=0:00:00.381, duration_ms=381, data={}
timestamp=[2022-10-17 19:54:34], mode=WORKBENCH_START, duration=0:00:05.044, duration_ms=5044, data={}
timestamp=[2022-10-17 19:54:34], mode=WORKBENCH_UI_INIT, duration=0:00:00.435, duration_ms=435, data={editors_count=1, platform_editors_count=0, projects_count=1, platform_projects_count=0, active_platform_editor=false, projects=RemoteSystemsTempFiles}
timestamp=[2022-10-17 19:54:35], mode=PLATFORM_REPOSITORY_INIT, duration=0:00:00.404, duration_ms=404, data={}
timestamp=[2022-10-17 19:55:31], mode=WORKBENCH_START, duration=0:00:05.148, duration_ms=5148, data={}
timestamp=[2022-10-17 19:55:31], mode=WORKBENCH_UI_INIT, duration=0:00:00.415, duration_ms=415, data={editors_count=1, platform_editors_count=0, projects_count=1, platform_projects_count=0, active_platform_editor=false, projects=RemoteSystemsTempFiles}
timestamp=[2022-10-17 19:55:32], mode=PLATFORM_REPOSITORY_INIT, duration=0:00:00.443, duration_ms=443, data={}
timestamp=[2022-10-17 20:00:03], mode=WORKBENCH_START, duration=0:00:05.099, duration_ms=5099, data={}
timestamp=[2022-10-17 20:00:03], mode=WORKBENCH_UI_INIT, duration=0:00:00.439, duration_ms=439, data={editors_count=2, platform_editors_count=0, projects_count=1, platform_projects_count=0, active_platform_editor=false, projects=RemoteSystemsTempFiles}
timestamp=[2022-10-17 20:00:05], mode=PLATFORM_REPOSITORY_INIT, duration=0:00:00.402, duration_ms=402, data={}

View File

@ -1,14 +1,11 @@
2022-10-07T15:04:02.048629800255-15:04:02 **** Build of project phased_array_platform **** 2022-10-17T20:23:30.117922400255-20:23:30 **** Build of project phased_array_platform ****
000-buildplatform.bat 54488 phased_array_platform 000-buildplatform.bat -1 phased_array_platform
000-XSDB Server Channel: tcfchan#1 000-No connection could be made because the target machine actively refused it
000-Reading the platform : "phased_array_platform" 000- while executing
000-Failed to generate the platform. 000-"error $message"
000-Reason: Error: Qemu arguments File given /hddisk/Xilinx/Vitis/2021.2/data/emulation/platforms/zynq/sw/a9_standalone/qemu/qemu_args.txt do not exist 000- (procedure "connect" line 143)
000- invoked from within 000- invoked from within
000-"::tcf::eval -progress {apply {{msg} {puts $msg}}} {tcf_send_command tcfchan#0 xsdb eval s es {{platform active phased_array_platform; platform generate }}}" 000-"connect -u TCP:localhost:$XSDB_PORT"
000- (procedure "::tcf::send_command" line 4)
000- invoked from within
000-"tcf send_command $::xsdb::curchan xsdb eval s es [list "platform active $PLATFORM_NAME; platform generate $target"]"
000- invoked from within 000- invoked from within
000-"if { $iswindows == 1 } { 000-"if { $iswindows == 1 } {
000- 000-
@ -18,5 +15,5 @@
000- set lastind..." 000- set lastind..."
000- (file "C:/Xilinx/Vitis/2022.1\scripts\vitis\util\buildplatform.tcl" line 11) 000- (file "C:/Xilinx/Vitis/2022.1\scripts\vitis\util\buildplatform.tcl" line 11)
00255- 00255-
15:04:07 Build Finished (took 5s.666ms) 20:23:34 Build Finished (took 4s.288ms)