Closed naynt closed 4 years ago
What happens if you add
import os
print('CWD:', os.getcwd())
to your script? Is the working directory the one you expected it to be? Your csv files most probably end up there. You could try to specify full path for your output files (or use __file__
to put them near your script).
I see. The csv file is being sent to /home/robot (the brick) instead of my PC.
You can use the ev3dev device browser in VS Code to upload it back to your computer.
Awesome, thanks for the help guys!
Hello,
Aim: To collect data from EV3 and NXT sensors via ev3dev2 and export to csv file
Problem: While running script via ev3.dev2 python, csv file fails to generate despite no errors being received.
Example1
output:
However no csv file is generated
Example 2 - SIMPLIFIED
OUTPUT
The same above, but with different values and no CSV file is generated.
When I attempted to run the above script in python by itself (not via ev3dev2), a csv file was generated.
Question
Is their anyway I can successfully create a csv file within the ev3dev2 framework?
Windows 10 Visual Studio Code with ev3.dev device browser extension (August 2019 version 1.38) Image file: ev3dev-stretch-ev3-generic-2019-03-03 Kernel version: 4.14.96-ev3dev-2.3.2-ev3 Brickman v0.10.0