Air Player - how to add hardware?
Re: Air Player - how to add hardware?
Wait, now I’m confused...how do you make the hardware assignment when you run the instrument standalone in Create/Edit tab?
I assumed it picked up the assignments from the last time I ran the instrument in a panel (from Panel tab, where I can set the hardware assignment). But for the code with named hardware, it shouldn’t matter.
Also, my cunning plan to try a different PC for Air Display is running into trouble. If I plug the boards into that Pc they connect as Com3 and Com4, but when I flashed them on the AM PC they are Com2 and Com3. How do I configure this?
I assumed it picked up the assignments from the last time I ran the instrument in a panel (from Panel tab, where I can set the hardware assignment). But for the code with named hardware, it shouldn’t matter.
Also, my cunning plan to try a different PC for Air Display is running into trouble. If I plug the boards into that Pc they connect as Com3 and Com4, but when I flashed them on the AM PC they are Com2 and Com3. How do I configure this?
Re: Air Player - how to add hardware?
We'll discuss this one tomorrow. I'll also have a better look at your script.
- Keith Baxter
- Posts: 4685
- Joined: Wed Dec 20, 2017 11:00 am
- Location: Botswana
Re: Air Player - how to add hardware?
Hi
Here for Named Hardware. Hardware properties.
When you are testing. Are yo shutting down AM then restarting after moving the arduino around?
Does the arduino show in the devices tab?
AM3.7
AM4. beta (build14) Keith
AMD RYZEN 9 5950X CPU, Corsair H80I cooler, ASUS TUF GAMING B550-PLUS AMD Ryzen Mother Board, 32Gb ram Corsair Vengeance 3000Mh, MSI GTX960 4G graphics card
Re: Air Player - how to add hardware?
Ah ok, got it. I see what happened - that hardware tab goes away if you use the call with parameters for hw_id, it’s smart enough to know they are set in code.
I’m not shutting down AM routinely, but I have done on occasion, I can try again now. The Arduino shows in the AM tab when connected to that machine. Greyed out when I disconnect. It does not show anywhere when I plug into the AP machine (unless I run another copy of AM on the AP machine, then it does show as a connected device.)
I’m not shutting down AM routinely, but I have done on occasion, I can try again now. The Arduino shows in the AM tab when connected to that machine. Greyed out when I disconnect. It does not show anywhere when I plug into the AP machine (unless I run another copy of AM on the AP machine, then it does show as a connected device.)
Re: Air Player - how to add hardware?
So I close down AM and AP on each machine. Restarted AP then AM.
Still get the same “illegal argument list” error.
Still get the same “illegal argument list” error.
- Keith Baxter
- Posts: 4685
- Joined: Wed Dec 20, 2017 11:00 am
- Location: Botswana
Re: Air Player - how to add hardware?
Hi,
OK I think Ralph or Corjan will get involved tomorrow. You have ticked all the boxes so it must be something else.
Sorry I did not solve it, but there is enough information for them to go on.
Keith
OK I think Ralph or Corjan will get involved tomorrow. You have ticked all the boxes so it must be something else.
Sorry I did not solve it, but there is enough information for them to go on.
Keith
AMD RYZEN 9 5950X CPU, Corsair H80I cooler, ASUS TUF GAMING B550-PLUS AMD Ryzen Mother Board, 32Gb ram Corsair Vengeance 3000Mh, MSI GTX960 4G graphics card
Re: Air Player - how to add hardware?
Thanks for your help Keith. I am guessing it is something specific to the PC running AP, so my next step is to try a different machine, but I need to work out now to do the COM port numbering for the boards first.
Re: Air Player - how to add hardware?
Once the Arduino is flashed the COM port number is irrelevant. In AM world once it’s flashed as a given channel it will be referenced as that channel regardless of the COM port number allocated by the OS.
Did you try Keith’s suggestion of not using a named id?
Tony
Did you try Keith’s suggestion of not using a named id?
Tony
Air Manager panels at https://www.experimentalsimavionics.com
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D
Youtube Channel https://www.youtube.com/channel/UC8ZqXX ... kfZMq5BKig
Air Manager API Tutorial Video Series https://youtube.com/playlist?list=PLNr0 ... baT4gJKg5D
Re: Air Player - how to add hardware?
@Tony - don’t understand what not using a named id means, sorry? Happy to try whatever that is if you could point me in the right direction!
- Keith Baxter
- Posts: 4685
- Joined: Wed Dec 20, 2017 11:00 am
- Location: Botswana
Re: Air Player - how to add hardware?
Hi,
"Named" is where you assign the I/O pin in the console.
Code: Select all
hw_button_add("Power button", button_pressed, button_released)
Code: Select all
hw_button_add("ARDUINO_MEGA2560_A_D4", button_pressed, button_released)
Keith
AMD RYZEN 9 5950X CPU, Corsair H80I cooler, ASUS TUF GAMING B550-PLUS AMD Ryzen Mother Board, 32Gb ram Corsair Vengeance 3000Mh, MSI GTX960 4G graphics card