Hi, Im having probelms getting processing to recognise the different set of data during serialEvent()
I have data coming in every 4 seconds for live graphing, when a button is pressed on my interface it sends a string to my arduino requesting different types of data,once the data is through the arduino continues sending the 4second data, I have tested it on the arduino serial monitor and its working as expected but processing is not grabbing the data and parsing it. Im having little success with this serialEvent() I have set both data packets with start and end packet markers of [] and {}.
for(int i = 0;i < 50;) { println(history_ints[i]); int t = 0; int h = 0; t = history_ints[i]; i++; h = history_ints[i]; Array_Data.addsevenval(t, h,checkStatus(0,t), checkStatus(1,h)); } } } myport.clear(); }
Hi, Just new to this forum as I was told my query might be best answered here, Id like to implement some sort of COM port changing within my program. My friends computer has his arduino on COM4, if I start my program on his comp no data will come through as my processing app is looking for COM3, id like to change the com port to suit my friends computer without having to recompile and change COM3 to COM4 within the processing IDE. All id like to do is take my app to his house, run the exe select the com port then the data will come through. How could I go about this in processing?