We recently had this question come in and I thought I’d share some ideas, see if other OptoFans had some to add:
[INDENT]“We have some SNAP-PAC-EB2 hardware and are trying to decide between Python and C# to create GUIs.” [emphasis mine]
[/INDENT]Usually folks trying to program their PCs to communicate directly with an OptoMMP device like a SNAP-PAC-EB2 brain would be a prime candidate for:
Our [OptoMMP toolkits (like the .NET one in particular [URL="http://www.opto22.com/site/pr_selector.aspx?cid=4&qs=1005#10211057"]here](http://www.opto22.com/site/documents/doc_drilldown.aspx?aid=1875), since he mentioned C#, I don’t think we have any Python examples, as far as I know).
However, depending on what kind of GUI you’re building, you might want to consider other options. If it were me, and the ONLY Opto 22 hardware I had included brains and no controllers, I’d want to add a controller (perhaps [SoftPAC, or an upgrade of one SNAP-PAC-EB2 to a [URL="http://www.opto22.com/site/pr_details.aspx?cid=4&item=SNAP-PAC-R2"]SNAP-PAC-R2). This would greatly simplify configuring and accessing those SNAP-PAC-EB2s (no need to worry about memory map addresses/[URL="http://www.opto22.com/site/documents/doc_drilldown.aspx?aid=1875"]OptoMMP](http://www.opto22.com/lp/pc_based_controller.aspx)).
Having a controller in the mix would also increase my choices – including the ability to use:
Our free HMI software: [PAC Display Basic, which is included as part of our FREE PAC Project Basic software suite -- for use with our controllers. SoftPAC is our least-expensive controller which you can also try for free in the form of PAC Sim -- included along with PAC Project Basic in our “PAC Project Demo.” Here’s a [URL="http://www.opto22.com/players/bc_player.aspx?bctid=1488623390&bcpid=1383726118001"]video that introduces this Demo. Here’s [URL="http://www.opto22.com/site/downloads/dl_drilldown.aspx?aid=3172"]the Demo download file](http://www.opto22.com/site/pr_details.aspx?cid=1&item=PACDISPLAYBAS).
Think about the accessibility of your GUI (for example, from the web). Opto 22 has a long history of giving you lots of choices, including being able to monitor and control your hardware via the Internet. Here’s one example that dates back to the 90s (just ignore the security warnings here). http://internetio.com/pc/pc_home.php
I also strongly encourage you to subscribe to OptoNews, as we’re cooking up some even more exciting choices which will be announced soon.
Hope that helps!