Driving Synexsis Using the Appsettings File

If you’ve read any of our other blog posts, you’ll notice the appsettings file is frequently mentioned. This json file contains the names of your devices, addressing and connection information. Synexsis reads this file and uses it to control to your devices. The syntax of Json files can be confusing at first. You’ll ask, “Where do the parenthesis and brackets go?” Or, “What should be in quotes”, and “Do I need a comma or a colon here?”.  

There are a number of Json editors and validators online, but our favorite is found at jsonformatter.org. Use it to build your appsettings file, download your Synexsis modules from NuGet, and free yourself from the tyranny of proprietary a/v control systems.

 

Thanks for reading!

Norm

Tv and Display Week at Enkadia

This week we’re demonstrating how to mix a Synexsis component to control displays from two different manufacturer-  Sharp and Samsung.

Take a look and see how Enkadia frees you from the tyranny of proprietary control systems. https://normschaeffer.github.io/Enkadia-Synexsis-Display-Test/

We’ve also started working on a module for LG TVs. If you’re working with a different display model and would like a module built out for it just let us know!

Thanks for reading!

Norm

Camera Week at Enkadia

This week we’re working on improving our Vaddio camera control module and finishing up a Visca module. Compare your A/V system camera control code to Enkadia Synexsis. 

Take a look at – https://normschaeffer.github.io/Synexsis-Camera-Testbed/

If there’s a camera you’d like us to create a module for add it to the comment field below!

Thanks for reading!

Norm

How Synexsis Accelerates Your A/V Control System Development

Improve your bottom line.  That is one of our main goals with the Synexsis software. 

We’ve worked hard to relieve you of writing the back-end code of A/V system control to complete projects quickly and to send them out the door faster.   Because Synexsis boots your development speed you are able to bill more projects every month.

If you’re looking to drive a four-channel Extron Matrix Switcher, here is the code from our Rapid Start Switcher Tutorial.  Included is just 57 lines of code – simple, clean and most of it is cut and paste.

using System;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Enkadia.Synexsis.Components.Switchers.Extron;
using Enkadia.Synexsis.ComponentFramework.Extensions;
using Microsoft.Extensions.DependencyInjection;
	namespace QuickStartSwitcher
	{
	    public sealed partial class MainPage : Page
	    {
	        int Input; //create variables for the input and output channels
	        int Output;
	        IServiceProvider serviceProvider; //Used to provide Synexsis methods to the application
	        DXPSwitcher switcher; //Initialize an Extron switcher
	        public MainPage()
	        {
	            this.InitializeComponent();
	            //setup the Collection which will contain the Synexsis components
	            serviceProvider = new ServiceCollection()
	                .AddSynexsis() //add specific Synexsis functions.
	                .AddTransient<DXPSwitcher>() //setup the switcher component
	                .BuildServiceProvider();
	            switcher = serviceProvider.GetService<DXPSwitcher>();
	        }
	        private void BtnInput1_OnClick(object sender, RoutedEventArgs e)
	        {
	            Input = 1;
	        }
	        private void BtnInput2_OnClick(object sender, RoutedEventArgs e)
	        {
	            Input = 2;
	        }
	        //For the remaining functions use an expression body as a shortcut and save keystrokes
	        private void BtnInput3_OnClick(object sender, RoutedEventArgs e) => Input = 3;
	        private void BtnInput4_OnClick(object sender, RoutedEventArgs e) => Input = 4;
	        private void BtnOutput1_OnClick(object sender, RoutedEventArgs e) => Output = 1;
	        private void BtnOutput2_OnClick(object sender, RoutedEventArgs e) => Output = 2;
	        private void BtnOutput3_OnClick(object sender, RoutedEventArgs e) => Output = 3;
	        private void BtnOutput4_OnClick(object sender, RoutedEventArgs e) => Output = 4;
	        private void BtnTake_OnClick(object sender, RoutedEventArgs e) => switcher.AVXPoint(Input, Output);
      }
}

Yes, this is a pretty elementary example as it doesn’t provide feedback (that would be another two lines of code).  However, you see how Synexsis can speed up your workflow and increase your bottom line.

Take a run at Synexsis for yourself by trying it for free: https://www.enkadia.com/licensing/

Or dig in a little deeper to what you can learn on our tutorials page: https://www.enkadia.com/tutorials/

Thanks for reading!

Norm