Dataset Viewer
Auto-converted to Parquet Duplicate
conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Fix for mdaq_upgrade - still test download location\n" }, { "from": "human", "value": "function fw_ver = mdaq_latest_fw()\n try \n getURL(\"raw.githubusercontent.com/microdaq/MLink/upgrade_test/LATEST\", TMPDIR + filesep() + \"LATEST\");\n catch\n ...
scilab
chosen
[ { "from": "system", "value": "Fix simulation mode in pwm block\n" }, { "from": "human", "value": "function block=mdaq_pwm_sim(block,flag)\n global %microdaq;\n if %microdaq.dsp_loaded == %F then\n \n select flag\n case -5 // Error\n case 0 // Derivative State Up...
scilab
chosen
[ { "from": "system", "value": "Change ffmpeg command to match movie aspect ratio\n" }, { "from": "human", "value": "clear();\nclearglobal;\n\nvideo_path = uigetfile(\"*.*\",\"\",\"Select Video data\",%t);\n\ndrop = uigetdir();\n\nfor i = 1:size(video_path, 2)\n unix_s(\"mkdir -p \" + drop + \"...
scilab
chosen
[ { "from": "system", "value": "Read en write wav toegevoegd\n" }, { "from": "human", "value": "t = [0: 0.0000625: 0.02];\nN = size(t, '*');\nsin_100Hz = 2*sin(2*%pi*700*t);\nsin_1000Hz = 2*sin(2*%pi*1000*t);\nsin_5000Hz = 2*sin(2*%pi*5000*t);\ntestsign = sin_100Hz + sin_1000Hz + sin_5000Hz;\n[LD_...
scilab
chosen
[ { "from": "system", "value": "Change task object member order\n" }, { "from": "human", "value": "function %dsptlist_p(obj)\n mprintf(\"DSP task object\\n\")\n mprintf(\" .start() - starts task\\n\")\n mprintf(\" .init() - initializes DSP task\\n\")\n mprintf(\" .write() - write...
scilab
chosen
[ { "from": "human", "value": "Move animation function to a new file\n" }, { "from": "gpt", "value": "function drawStickFigure()\n scf(1);clf();\n \n data_tmp = [toes.x(1),toes.y(1);ankle.x(1),ankle.y(1);knee.x(1),knee.y(1);hip.x(1),hip.y(1);neck.x(1),neck.y(1);shoulder.x(1),shoulder.y(1)...
scilab
chosen
[ { "from": "human", "value": "Build DSP app from XCos diagram function\n" }, { "from": "gpt", "value": "function mdaq_dsp_build(diagram_file)\n \n // load Xcos libs if needed\n if isdef(\"c_pass1\") == %F then\n loadXcosLibs();\n end\n \n if isfile(diagram_file) == %F the...
scilab
chosen
[ { "from": "human", "value": "Add reference implementation of midpoint displacement\n" }, { "from": "gpt", "value": "// Author: Ali Ghahraei Figueroa\n//\n// This program is free software: you can redistribute it and/or modify\n// it under the terms of the GNU General Public License as publish...
scilab
chosen
[ { "from": "human", "value": "Add function for checking if Ext mode app is loaded\n" }, { "from": "gpt", "value": "function res = mdaqIsExtMode()\n res = []\n con = mdaqOpen(); \n result = mlink_set_obj(con, \"ext_mode\", 1);\n mdaqClose(con);\n if result == -25 then\n res =...
scilab
chosen
[ { "from": "human", "value": "Add function to delete user blocks\n" }, { "from": "gpt", "value": "function mdaq_block_delete(block_name)\n //Convert name \n name_converted = convstr(block_name,'l');\n name_converted = strsubst(name_converted, ' ', '_');\n name_converted = 'mdaq_' + na...
scilab
chosen
README.md exists but content is empty.
Downloads last month
5