@JoseECalderon Why does it say "Error opening port COM8" in the Arduino IDE? Are you sure you have the correct specification of the port?
The only thing I can think of is that the specification of "COM8" in Mathematica is incorrect and needs to be something else.
I guess this is Windows you are using, right? Unfortunately, I cannot help there because I'm on Linux and I have neither Mathematica nor Arduino IDE installed on my Windows partition.
@halirutan Yes , it was corrected. The error showed because I tried to open the IDE monitor before executing DeviceClose[]. This was corrected and the monitor displayed the data. But the Mathematica code fails to read. I don't think Linux OS has anything to do with this. The reason is that I tried reading another port serving data from a a second sensor that sends one data interger perline.
@taritgoswami by definition, F.S. only can be used on periodic functions. See the definition here mathworld.wolfram.com/FourierSeries.html The first step in finding F.S. is to define the function you are trying to find its F.S. and what is its period.
That is why they invented Fourier transform, to use for non-periodic functions.
@halirutan I may have confused you with my use of terminology. I have 2 Arduino attached to computer COM8 and COM9. I was using the IDE serial monitor to see the data send by the serial ports. Arduino in COM8 sends each carried returned line with 7 data points separated by comas. COM9 sends just one data point per carried returned line.
Hello to all in the chat! How is a picture pasted in a chat post? I will like sometimes display a screenshot and do not have a clue how this is done.
But it should cover most features. Anyways, the Raspberry Pi version cannot substitute the commercial version simply for the reason that the MKL libraries are not available for ARM. This is why most numerical code will execute much slower.
Also graphics related things are pretty slow (but work in the end if the graphics are not too complex), probably because (i) Raspberry Pi does not feature a strong graphics card and (ii) graphics routines are probably not optimized for the Pi's graphics hardware.
See the post that I linked. IIRC somebody was complaining that this was not features in version 10.x. But maybe WRI has included this feature in the meantime.
@JoseECalderon In Mathematica, your call DeviceExecute[dev, "SerialReadyQ"] returns False which means that there is no data available. I suspect that "COM8" needs to be specified differently in Mathematica, but I cannot test it here.
As I said, I'm on Linux and here, the serial port is something with "/dev/tty...".
@JoseECalderon The documentation to DeviceOpen clearly states that "COM8" should be right and it should work.
@JoseECalderon Yes. With almost 1000 reputation points, you can do many things. Maybe it's best to ask your question on the main site as there are other users with Arduinos who might have had the same problems.
@JoseECalderon The chat belongs to the Stack Exchange network so the reputation you see here is the sum of all your reputation across all Stack Exchange communities that you are a member of.