Questions tagged [automation]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
8 votes
1 answer
225 views

Automatic image recognition of Lissajous figures on oscilloscope

I have thousands of oscilloscope images showing Lissajous figures for example like below 4x5 image collection Define a function that can generate various Lissajous figures ...
matheorem's user avatar
  • 16.9k
2 votes
0 answers
86 views

Restart kernel after each evaluation in Table

I am trying to integrate a two-dimensional function purely numerically. For one coordinate the integrand can oscillate rapidly while for the other coordinate the integrand is not behaving in a special ...
Phenoxim's user avatar
1 vote
0 answers
37 views

StartWebSession cannot start Firefox driver

I'm trying to launch a web session using StartWebSession[] or StartWebSession["Firefox", Visible -> True] using MMA ...
RonH's user avatar
  • 281
2 votes
0 answers
55 views

Recursively create Graph from seed and Nest GraphUnion, keeping VertexStyle, EdgeLabels, VertexCoordinates, EdgeShapeFunction

TL;DR; GraphUnion does not preserve properties of the input Graphs. How do I combine two ...
rhermans's user avatar
  • 35.9k
2 votes
2 answers
174 views

Evading the fewer dependent variables than equations error

I'm writing a code that tries to solve differential equations generated from some existing code. The equations so generated are often seemingly overdetermined but actually solvable: e.g. ...
Lelouch's user avatar
  • 479
2 votes
0 answers
69 views

Automating notebook evaluation

I have several notebooks that cover various facets of our firm. Each notebook queries a database, generates graphs, and uses Export[] to produce individual graphs (...
Steven Black's user avatar
0 votes
0 answers
63 views

Can Mathematica communicate with Keysight instruments?

I am building an electronics lab with Keysight digital multimeters, power supplies, oscilloscopes, electrometers, etc. Is it possible for Mathematica to send commands from my MacBook Pro to these ...
Michael B. Heaney's user avatar
2 votes
0 answers
47 views

How to automatically name a Wolfram Notebook after the first title line of code if present?

I have a goal of somehow using Wolfram Mathematica's Notebook object functionality to program an initialization cell that will automatically save and name a new file after a title line of code ...
Peter Burbery's user avatar
3 votes
1 answer
260 views

How to select from a dropdown list in WebExecute?

After locating the dropdown using the XPath as follows: element=First@WebExecute["LocateElements"->"XPath"->"..."]; How do I ...
user13892's user avatar
  • 9,043
2 votes
2 answers
112 views

How to make a for loop to automatically make a series of m differential equations?

I'm trying to construct a series of differential equations that defines the behavior of m mutually interacting species according to the Lotka-Volterra equations. I figure there must be some clever ...
phycobilly's user avatar
1 vote
1 answer
241 views

How to use 'Join' and '& /@' : combining all .csv files in a directory into a single .csv file automatically

I would like to import all .csv files in a directory and combine them into a single file using Join. I can do this manually but when I try to automate it using <...
Drotar's user avatar
  • 107
0 votes
1 answer
119 views

concept of tangent and residual in AceFem and automation

here trying to solve the pde: ut + ux = 0 in acefem. I have two questions regarding tangent and residual. Tangent shows the s$$ and residual shows ...
user75507's user avatar
3 votes
1 answer
103 views

Is it possible to automate definitions given with TagSetDelayed?

I am using the following two lines of code relatively frequently f/:Plus[f[x_], f[y_], z___]:=f[x+y]+z f/:Times[c_, f[x_]]:=f[c x] and I was wondering if it is ...
joka's user avatar
  • 322
0 votes
0 answers
33 views

Using solved constants without manually setting them as variables

I'm really new to Mathematica and there's this assignment I can easily solve by just manually copy-pasting everything and sticking to it as I am doing right now but I'd like to start going more in-...
wobY's user avatar
  • 1
3 votes
2 answers
267 views

Creating an Array with Subscripts and Superscripts

I would like to figure out how to construct an array using subscripts and superscripts based on the following info: ...
Vegeta the Prince of Saiyans's user avatar
0 votes
0 answers
45 views

Applying same function over a list of variables

I currently have a list of variables in a column in excel, I would like to perform some analysis for each of those variables. ...
Dave's user avatar
  • 51
0 votes
0 answers
66 views

Loop function for a list of codes

I have a list of codes that start with importing column D of an excel sheet which has a hyperlink. Then, the code moves onto importing the text version of the hyperlink and further proceeds with ...
Dave's user avatar
  • 51
1 vote
1 answer
207 views

Load multiple csv files and do iterative calculation for each file

I am trying to read multiple csv files and want to plot them all together, Lets say I have 3 files, file1 , file2 and file3 I want to average 3 files, and plot them all together, So far I have set ...
Erfi's user avatar
  • 111
0 votes
1 answer
102 views

How to use module to assign functions to a set of imported text files?

I have a lot of text files in my folder (in this example I'm using only 8). I am trying to import all of them and then do calculation on each individual file; I want to use the same notebook without ...
Erfi's user avatar
  • 111
2 votes
1 answer
301 views

Automate Poisson Football Scores Prediction

I would like to automate a simple poisson football scores predictions process. I started by importing and cleaning home and away England League team tables data to work on it with Poisson ...
Nate's user avatar
  • 401
2 votes
2 answers
184 views

Running a notebook which imports and exports files repeatedly

I am trying to automate the process of running a Mathematica notebook that takes as an input a .txt file and exports another .txt file. This notebook was not written by me, and I don't fully ...
Ouroboroski's user avatar
1 vote
0 answers
95 views

Quantum Dot Absorbance Data Peakfinding

I work in a lab making quantum dots, and was recently tasked with finding a way to extract some figures of merit from old data in an automated way. In particular, I'm looking to extract the peak ...
BesselFunct's user avatar
5 votes
1 answer
393 views

Drawing finite-state automata without using VertexRenderingFunction

In the tutorial entitled "Hierarchical Drawing of Directed Graphs" in Mathematica 12, there is an example of how to draw a graph with several properties I want, but it uses an option called ...
ShyPerson's user avatar
  • 440
2 votes
0 answers
126 views

What could cause an "Uncaught Throw[$Failed,CURLLink`Utilities`Exception] returned to top level." error message?

I am running a program in Mathematica that uses web browser automation, and is also connected to my email account. The program runs fine for a while, but after a few hours, I end up getting the ...
Jmeeks29ig's user avatar
  • 1,407
0 votes
1 answer
183 views

Automatic indentation of text and equations depending on Style

I have a rule when writing text and equations. Starting from the Section environment, each text/equation that sits inside Section...
Patrick.B's user avatar
  • 1,349
2 votes
1 answer
121 views

Define Macros to automatically change keyboard input

When using Solve for example, I find myself having to use it in conjunction with other types of functions, like Flatten or ...
Patrick.B's user avatar
  • 1,349
2 votes
0 answers
40 views

Unexpected symbol::shdw warning during NotebookEvaluate

Consider the following code: ...
Lukas Lang's user avatar
  • 33.4k
1 vote
1 answer
111 views

Is there a way to automate this procedure?

I have some code which numerically solves a differential equation for a given value of the parameter $M0$ and for some initial conditions. The initial conditions will remain fixed throughout the ...
a_User_with_No_namE's user avatar
2 votes
1 answer
164 views

How can I get Manipulate[] graphics to print when batch printing notebooks?

I want to print Manipulate[] graphics while batch printing several notebooks. Here's the long version: I have several Manipulate[] graphics cells in my notebooks. The only way I know of to get the ...
Steven Thomas Hatton's user avatar
1 vote
0 answers
63 views

NotebookEvaluate within cell with CellContext->Notebook

I've encountered the following issue with NotebookEvaluate (note the grouping into 3 distinct cells): ...
Lukas Lang's user avatar
  • 33.4k
1 vote
1 answer
221 views

Automatic variable naming

I am trying to construct a complicated code in which I need to name a lot of variables and their definitions. For Example: The problem is as follow: Once I insert new variable in between two, I ...
Love Eva's user avatar
  • 168
0 votes
0 answers
155 views

Feeding Executable Arguments into Run - or using RunProcess without the kernel CPU usage

I am trying to automate the submission of many executables with variable parameter values via Mathematica on Windows 10 x64. Running the executable from Mathematica works great for executables that ...
Ghersic's user avatar
  • 1,137
0 votes
0 answers
66 views

Using WebUnit with ParallelTable

Is it possible to use OpenWebPage from WebUnit in ParallelTable? For example such as in: <...
anderstood's user avatar
  • 14.1k
2 votes
1 answer
81 views

How generalizes (automate) recursive code

This is a small version of my code (for n=2): ...
Filburt's user avatar
  • 578
2 votes
1 answer
73 views

Issue with NotebookPrint to export multiple notebooks to PDF in Mathematica 11.1

I have a number of lecture notebooks that I publish to Dropbox in PDF format. It's been working great for years, but something seems to have gone wrong in the latest version of Mathematica. My code ...
B flat's user avatar
  • 5,387
14 votes
1 answer
685 views

How to automatically do a computation, Quit[], restart and do a new computation

Related questions have been asked before (eg Where does a package have to be loaded?, https://stackoverflow.com/questions/6152023/quit-kernel-in-mathematica-by-a-command-not-using-evaluation-menu, ...
Gaius's user avatar
  • 565
6 votes
2 answers
427 views

How can I terminate a MathKernel that is running an external program after a timeout?

I'm using ParrallelDo to parallel run another program (windows executable) in 8 subkernels. Sometimes a SubKernel freezes. What I see in the task-manager is that ...
Kab's user avatar
  • 165
2 votes
0 answers
112 views

How to stop autosaving? [closed]

Is there a notebook autosave frequency configuration? I made my MMA file to autosave, it was nice for a little bit. However, now it automatically saves every 10 seconds, and try to save every time I ...
Saesun Kim's user avatar
  • 1,768
1 vote
0 answers
113 views

Evaluate .nb automatically and sequentially using external file as input

I am interested in implemented the following workflow. I have a Mathematica script that receives an input (manually), executes the algorithm based on that input, and stores output into a CSV file. ...
Fierce82's user avatar
  • 543
8 votes
1 answer
698 views

How to make a parallel auto-generated .wl package from a .nb notebook

As we know, owing to the set of SetOptions[InputNotebook[], AutoGeneratedPackage -> Automatic], a .m file will be generated automatically by the Mathematica ...
xiang's user avatar
  • 366
22 votes
2 answers
1k views

Restarting Mathematica automatically

I run a large computation in a loop. At each cycle of the loop I produce large arrays that I save on a disk. At each cycle I would like to Quit Mathematica and ...
Vadim's user avatar
  • 221
1 vote
0 answers
106 views

Automate Windows From Mathematica

Is there a feasible way to automate Windows from Mathematica? I'm thinking maybe with the .NETLink? If not maybe just mouse movements or keyborad shortcuts ? This might be a good start https://msdn....
William's user avatar
  • 7,565
3 votes
1 answer
233 views

How to omit the authentification dialog during URLRead?

When I use URLRead Mathematica will popup a window like: Actually I have given the parameters Password and ...
yode's user avatar
  • 26.1k
0 votes
2 answers
156 views

Modifying codes in a more 'Mathematica' way

I have the following codes: ...
Physicist's user avatar
  • 967
4 votes
1 answer
2k views

how to plot the dispersion curve in first brillouin zone?

Those who know some solid state physics should know what the first brillouin zone is. How do I plot the dispersion relation in the 1st brillouin zone so that the curves can 'fold back'? For instance ...
Physicist's user avatar
  • 967
7 votes
2 answers
543 views

Web Browsing Automation: how to expand all comments under a blog post?

I wish to expand all the comments under a LiveJournal post for the purposes of saving the complete thread of comments. According to LiveJournal's FAQ when a post gets more than 50 comments they are ...
Alexey Popkov's user avatar
0 votes
1 answer
248 views

How to modify a file opened by NotebookOpen [closed]

I need to run a file several times, each time with a different value for a certain variable. I use the following script to automate the process, but I have no idea how to make changes in the file ...
Marilla's user avatar
  • 165
6 votes
2 answers
451 views

UseFrontEnd is not working the same in version 10.4

I'm using batch files to run Mathematica notebooks (with saved output) but in version 10.4 the functionality has changed. Any ideas how to get it working? I use a batch file to run a .m script which ...
Chris Degnen's user avatar
  • 30.6k
0 votes
2 answers
171 views

Automatic process to replace missing values, coming from a second matrix

I have a large starting matrix with missing values in different columns. I want to replace this missing data as follow. First I have to check the group (last column in starting matrix) and go to a ...
and0r's user avatar
  • 43
1 vote
2 answers
42 views

Place Holder or Suppressing Re-ordering

Using the for loop how can I print: file0.jpg file1.jpg file2.jpg file3.jpg file4.jpg file5.jpg file6.jpg file7.jpg file8.jpg file9.jpg The closest code I came ...
user38032's user avatar