summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authoryash11122017-07-07 21:20:49 +0530
committeryash11122017-07-07 21:20:49 +0530
commit3f52712f806fbd80d66dfdcaff401e5cf94dcca4 (patch)
treea8333b8187cb44b505b9fe37fc9a7ac8a1711c10 /demos
downloadscilab2c-3f52712f806fbd80d66dfdcaff401e5cf94dcca4.tar.gz
scilab2c-3f52712f806fbd80d66dfdcaff401e5cf94dcca4.tar.bz2
scilab2c-3f52712f806fbd80d66dfdcaff401e5cf94dcca4.zip
sci2c arduino updated
Diffstat (limited to 'demos')
-rw-r--r--demos/Filter.dem.sce21
-rw-r--r--demos/LinearRegression.dem.sce19
-rw-r--r--demos/Symbols.dem.sce20
-rw-r--r--demos/TrigonometricIdentity.dem.sce21
-rw-r--r--demos/analog_in_out_volt.dem.sce7
-rw-r--r--demos/analog_out.dem.sce7
-rw-r--r--demos/blink.dem.sce7
-rw-r--r--demos/dc_motor.dem.sce7
-rw-r--r--demos/digital_in.dem.sce7
-rw-r--r--demos/master_write.dem.sce7
-rw-r--r--demos/scilab2c.dem.gateway.sce27
11 files changed, 150 insertions, 0 deletions
diff --git a/demos/Filter.dem.sce b/demos/Filter.dem.sce
new file mode 100644
index 00000000..100b37b3
--- /dev/null
+++ b/demos/Filter.dem.sce
@@ -0,0 +1,21 @@
+//
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2010-2010 - DIGITEO - Bruno JOFRET
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+//
+//
+lines(0);
+
+global SCI2CHOME
+editor([SCI2CHOME+"/tests/unit_tests/test004_Filter/scilabcode/main.sci";
+ SCI2CHOME+"/tests/unit_tests/test004_Filter/scilabcode/high_pass.sci"]);
+
+scilab2c(SCI2CHOME+"/tests/unit_tests/test004_Filter/scilabcode/main.sci", TMPDIR, SCI2CHOME+"/tests/unit_tests/test004_Filter/scilabcode");
+
+editor([TMPDIR+"/main.c";
+ TMPDIR+"/d2d0d0d0high_passd2.c"]);
diff --git a/demos/LinearRegression.dem.sce b/demos/LinearRegression.dem.sce
new file mode 100644
index 00000000..5c3a20c2
--- /dev/null
+++ b/demos/LinearRegression.dem.sce
@@ -0,0 +1,19 @@
+//
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2010-2010 - DIGITEO - Bruno JOFRET
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+//
+//
+
+lines(0);
+global SCI2CHOME
+editor(SCI2CHOME+"/tests/unit_tests/test001_LinearRegression/scilabcode/mainfunction.sci");
+
+scilab2c(SCI2CHOME+"/tests/unit_tests/test001_LinearRegression/scilabcode/mainfunction.sci", TMPDIR);
+
+editor(TMPDIR+"/main.c"); \ No newline at end of file
diff --git a/demos/Symbols.dem.sce b/demos/Symbols.dem.sce
new file mode 100644
index 00000000..5339b988
--- /dev/null
+++ b/demos/Symbols.dem.sce
@@ -0,0 +1,20 @@
+//
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2010-2010 - DIGITEO - Bruno JOFRET
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+//
+//
+
+lines(0);
+
+global SCI2CHOME
+editor(SCI2CHOME+"/tests/unit_tests/test002_Symbols/scilabcode/mainfunction.sci");
+
+scilab2c(SCI2CHOME+"/tests/unit_tests/test002_Symbols/scilabcode/mainfunction.sci", TMPDIR);
+
+editor(TMPDIR+"/main.c"); \ No newline at end of file
diff --git a/demos/TrigonometricIdentity.dem.sce b/demos/TrigonometricIdentity.dem.sce
new file mode 100644
index 00000000..a2c47c1e
--- /dev/null
+++ b/demos/TrigonometricIdentity.dem.sce
@@ -0,0 +1,21 @@
+//
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2010-2010 - DIGITEO - Bruno JOFRET
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+//
+//
+
+lines(0);
+
+global SCI2CHOME
+editor(SCI2CHOME+"/tests/unit_tests/test000_TrigonIdentity/scilabcode/mainfunction.sci");
+
+scilab2c(SCI2CHOME+"/tests/unit_tests/test000_TrigonIdentity/scilabcode/mainfunction.sci", TMPDIR);
+
+editor(TMPDIR+"/main.c");
+
diff --git a/demos/analog_in_out_volt.dem.sce b/demos/analog_in_out_volt.dem.sce
new file mode 100644
index 00000000..ca6da611
--- /dev/null
+++ b/demos/analog_in_out_volt.dem.sce
@@ -0,0 +1,7 @@
+lines(0);
+
+global SCI2CHOME
+
+scilab2c(SCI2CHOME+"/tests/unit_tests/testArduino/analog_in_check_volt.sci", TMPDIR, SCI2CHOME+"/tests/unit_tests/testArduino", "All", "make" ,"Arduino", "uno");
+
+editor([TMPDIR+"/setup_arduino.cpp";TMPDIR+"/loop_arduino.cpp"]);
diff --git a/demos/analog_out.dem.sce b/demos/analog_out.dem.sce
new file mode 100644
index 00000000..65a1e279
--- /dev/null
+++ b/demos/analog_out.dem.sce
@@ -0,0 +1,7 @@
+lines(0);
+
+global SCI2CHOME
+
+scilab2c(SCI2CHOME+"/tests/unit_tests/testArduino/analog_check.sci", TMPDIR, SCI2CHOME+"/tests/unit_tests/testArduino", "All", "make" ,"Arduino", "uno");
+
+editor([TMPDIR+"/setup_arduino.cpp";TMPDIR+"/loop_arduino.cpp"]);
diff --git a/demos/blink.dem.sce b/demos/blink.dem.sce
new file mode 100644
index 00000000..b01d3dae
--- /dev/null
+++ b/demos/blink.dem.sce
@@ -0,0 +1,7 @@
+lines(0);
+
+global SCI2CHOME
+
+scilab2c(SCI2CHOME+"/tests/unit_tests/testArduino/blink_13.sci", TMPDIR, SCI2CHOME+"/tests/unit_tests/testArduino", "All", "make" ,"Arduino", "uno");
+
+editor([TMPDIR+"/setup_arduino.cpp";TMPDIR+"/loop_arduino.cpp"]);
diff --git a/demos/dc_motor.dem.sce b/demos/dc_motor.dem.sce
new file mode 100644
index 00000000..36c0badd
--- /dev/null
+++ b/demos/dc_motor.dem.sce
@@ -0,0 +1,7 @@
+lines(0);
+
+global SCI2CHOME
+
+scilab2c(SCI2CHOME+"/tests/unit_tests/testArduino/board_test_release2.sci", TMPDIR, SCI2CHOME+"/tests/unit_tests/testArduino", "All", "make" ,"Arduino", "uno");
+
+editor([TMPDIR+"/setup_arduino.cpp";TMPDIR+"/loop_arduino.cpp"]);
diff --git a/demos/digital_in.dem.sce b/demos/digital_in.dem.sce
new file mode 100644
index 00000000..2eb4c3a0
--- /dev/null
+++ b/demos/digital_in.dem.sce
@@ -0,0 +1,7 @@
+lines(0);
+
+global SCI2CHOME
+
+scilab2c(SCI2CHOME+"/tests/unit_tests/testArduino/digital_in_check.sci", TMPDIR, SCI2CHOME+"/tests/unit_tests/testArduino", "All", "make" ,"Arduino", "uno");
+
+editor([TMPDIR+"/setup_arduino.cpp";TMPDIR+"/loop_arduino.cpp"]);
diff --git a/demos/master_write.dem.sce b/demos/master_write.dem.sce
new file mode 100644
index 00000000..cdf522db
--- /dev/null
+++ b/demos/master_write.dem.sce
@@ -0,0 +1,7 @@
+lines(0);
+
+global SCI2CHOME
+
+scilab2c(SCI2CHOME+"/tests/unit_tests/testArduino/i2c_master.sci", TMPDIR, SCI2CHOME+"/tests/unit_tests/testArduino", "All", "make" ,"Arduino", "uno");
+
+editor([TMPDIR+"/setup_arduino.cpp";TMPDIR+"/loop_arduino.cpp"]);
diff --git a/demos/scilab2c.dem.gateway.sce b/demos/scilab2c.dem.gateway.sce
new file mode 100644
index 00000000..38f7fdc7
--- /dev/null
+++ b/demos/scilab2c.dem.gateway.sce
@@ -0,0 +1,27 @@
+//
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2010-2010 - DIGITEO - Bruno JOFRET
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+//
+//
+
+demopath = get_absolute_file_path("scilab2c.dem.gateway.sce");
+
+subdemolist = ["Trigonometric Identity" , "TrigonometricIdentity.dem.sce";
+ "Linear Regression" , "LinearRegression.dem.sce";
+ "Symbols", "Symbols.dem.sce";
+ "High Pass Filter", "Filter.dem.sce";
+ "Arduino blink", "blink.dem.sce";
+ "Arduino digital input", "digital_in.dem.sce";
+ "Arduino analog voltage i/o", "analog_in_out_volt.dem.sce";
+ "Arduino analog output", "analog_out.dem.sce";
+ "Arduino DC motor", "dc_motor.dem.sce";
+ "Arduino Master write", "master_write.dem.sce";
+ ];
+
+subdemolist(:,2) = demopath + subdemolist(:,2);