08-16-2014 07:58 PM
hello, everyone
I could use the example in library to read mpu6050 normally when I connected with one uno in my one pc
I want to use three uno with mpu6050 in one pc ,but I could not read data when I exerted three uno in my pc at the same time
I think that it maybe exist a problem in decide which one com port to read , so if I can change some block diagram that it decided which com port to read automatically to replace it by a method to determine which com port I wnat to read manually.
please talk me some suggestions how to remedy and how to work, thanks
I use the basic example in the file which downloaded from lib in this web
08-16-2014 10:38 PM
You simply need to make three independent sets of Arduino code (each having their own Init, Close, etc) making sure to specify the three unique COM ports for the VISA Resource Input. You can find the COM ports in the Windows Device Manager.
08-22-2014 09:17 PM
thanks for your response
but I still dont have idea ,what do you mean about "make three independent sets of Arduino code" ?
I change block diagram like the photo which be uploaded by me , is it right?
If you mean like my block diagram , why I only read one com port when I start the project ?
I already change com port respectively use Windows Device Manager.
Can I choose whichcom port I want to read manually ?
Now my project only read one port when I insert 3 uno and I cant change which port I want to read ,it will read the first port I insert innitially.
please help
08-22-2014 09:24 PM
That is exactly what I meant. You need to manually specify the COM port for each Arduino. Simply right click on the "VISA Resource" input and choose "Create > Constant". This will give you a drop down list of all the available COM ports. Do that for each Init.vi selecting the appropriate COM port.