Hi, I’m having issues getting the server to run correctly after having updated. Here is the error code I get. I also cannot get the GUI to work for looking at my experiment - I keep getting a Java error
If so, try uninstalling bokeh and reinstalling bokeh (to version 0.10.0). We’ve found that for some reason, the order at which the libraries are installed matters in if it installs properly.
Thank you, that solved that. Another problem I am having is with the Evolver app. When I click EXPT MANGER, I get a completely black screen. This happened after I had to close the app due to a javascript error. I have tried deleting it and reinstalling and still have the same problem. Is there anything else I can try to fix this?
Thanks, could you scroll down in that pop up window? I’ll make an update to the file editor soon that should address this. In the meantime you can run your experiment via the command line and still view your data in the expt viewer via the GUI.
I ran into a similar javascript error when starting or stopping experiment on Mac GUI, and will follow this thread to get eVOLVER working.
As a new user, i guess the main job to do to run experiment via command line is to configure parameters for an experiment in custom_script.py, right? Is there an instruction or example of how to configure parameters for an experiment in custom_script.py?
Also, is the growth_curve function in file custom_script.py completed? I’d like to try to run growth_curve mode, any tips how to configure parameters for growth_curve mode in file custom_script.py?
@yqlancustom_script.py has comments throughout that should guide you through the process of configuring parameters. You should only need to modify a couple of variables.
And yes, the growth curve function is complete - growth curves don’t require any logic. The only parameters are stir and temp, which are set at the top of the file. Data collection and transformation is handled elsewhere in eVOLVER.py.
I’ll try to fix the javascript error soon you are both seeing soon. For now, I recommend running the scripts via the command line. @yqlan in your other post you mentioned these files were empty - if you place the files manually and do not use the File Editor, and follow the directions here, it should work. I suspect the file editor has an issue I need to resolve. Please note you must click the SAVE EXPT button on the BOTTOM RIGHT of the screen for the GUI to save the parameters.
If you still have issues let me know - I’m happy to help out over zoom if needed.
Pretty appreciate your help. The problem of generating empty files has been fixed by opening the app and creating new experiment with internet connection the first time.
Then, i tried running experiments via command line as described below, and ran into some issues.
Before the experiments, i changed to the DPU directory (~/Desktop/dpu-2.0.1/) and activated virtual environment by command source dpu-env/bin/activate, then changed to experiment directory (cd ./experiment)
Then, for the first experiment:
i created a new experiment named expt_growth_curve by copying template folder: cp -r template expt_growth_curve
changed to expt_growth_curve directory and modifed the custom_script.py by changing the vaule of variable OPERATION_MODE to ‘growth_curve’ (line 32 below) to run an experiment using growth_curve mode.
i created a new experiment named expt_turbidostat by copying template folder: cp -r template expt_turbidostat
changed to expt_turbidostat directory and modifed the custom_script.py (screen shot below, comment out line 45, 50, 51 and add line 46, 52, 53) to run a turbidostat experiment using just vial 0.
Can you post a screenshot of the server log as you run the experiment? You can access this by ssh’ing to the RPi and running sudo supervisorctl then tail -f evolver
Ok cool, so it’s pretty clear here that something is wrong in the communications between the arduinos and the RPi. Are all the arduino boards fully plugged in in the correct orientation? And did you upload the code to them yourself? If you attempt to run the pumps through the GUI do those work?
I think the arduino boards should be plugged in correctly, as i can run all the pumps through both Mac and touchscreen GUI.
and, what do you mean by uploading code to them? I just updated server following the instructions here. Do you mean i also need to upload some code for arduino? is there a post regarding this?
The pump arduino board is on a separate module from the others. The pumps working confirms that the RPi is working correctly. Can you check that the RS-485 board is plugged in snugly on the motherboard?
There is a guide for updating the arduinos located here, but first check that the RS-485 is not loose.
After discussing with @yqlan directly, it appeared like the RS-485 board had fallen out, which caused the arduinos controlling stir, heat, and OD to be unable to communicate.