Started this thread as I didnt want to jump on the thread viewtopic.php?f=36&t=35973#p349764 by simone04.
I have managed to get the Arduino to talk to FG via win10 after much trials, testing and various examples on the net. I eventually used the example control test on the wiki but had to change some things.
Every example I have come across for windows has had --generic=serial,in,30,(port),(baud), file.xml. or some slight variation on it. After reading the thread above I started playing around and found that if I put \com9 for port9 \\.\com10 for port 10 I could connect to FG, but only if I had run this terminal program from https://sites.google.com/site/terminalbpp/. I dont know what difference this make to unpluging the arduino after viewing the serial monitor but for me FG would freeze at finalising display. Running the terminal program shoed that the arduino was sending the correct info to FG and after closing the terminal prog FG started normally and I could see the switch for strobe working on the a/c panel.
The throttle didnt work so I had a re-read on simone04 thread and read about the engine protocol. Changed the protocol to read engine/current engine/throttle</node> and lo and behold the throttle responded to the turn of my test pot.
So far I have to use the following procedure to get FG and arduino to work, on my setup it is:
after loading program to arduino and viewing serial monitor disconnect arduino and close ide.
start FG and enter into settings --generic,serial,in,30,\com9,9600,controltest (note there is no fullstop before the backslash for com), If using com port above 9 then use \\.\com(port number)
close FG
run terminal program verify data is being sent, close terminal program.
run FG.
Your --generic,serial,in might be different from mine if you use a different com port speeds and .xml file
I would love it someone would confirm this works on their computer and not just on mine. I would use linux but my FG install in linux is giving me a hard time and I want to keep this specific to windows.
Edited to add Arduino to title