Giter Site home page Giter Site logo

javaserialcomms's People

Contributors

nefelimet avatar

Watchers

 avatar

javaserialcomms's Issues

Change echo packets' data into csv/xlsx file instead of txt

The echo packets' response times are saved in a txt file along with the packets' info, which isn't very easy to work with when making a graph. The response times must be saved in a spreadsheet, so that we can easily use them by scripts to make graphs.

java.io.FileNotFoundException error when writing into txt file

When receiveImage() tries to write into the txt files, this error occurs:

An error occurred.
java.io.FileNotFoundException: imageWithError.txt (Δεν ήταν δυνατή η προσπέλαση του αρχείου από τη διεργασία, επειδή χρησιμοποιείται ήδη από κάποια άλλη διεργασία)
at java.base/java.io.FileOutputStream.open0(Native Method)
at java.base/java.io.FileOutputStream.open(FileOutputStream.java:291)
at java.base/java.io.FileOutputStream.(FileOutputStream.java:234)
at java.base/java.io.FileOutputStream.(FileOutputStream.java:155)
at java.base/java.io.FileWriter.(FileWriter.java:82)
at userApp.writeToFile(userApp.java:95)
at userApp.receiveImage(userApp.java:170)
at userApp.demo(userApp.java:220)
at userApp.main(userApp.java:19)

However, the program continues execution and does create the txt files correctly. The jpeg files have no problem.
I can just comment out the txt files part since we no longer need it anyway, but it would be nice to know the reason behind this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.