fbpx

Controllo Luci Stadio

Interfaccia di controllo e monitoraggio accensione luci e utenze quadro per lo stadio di Ferrara.

Con questa applicazione utenze dedicate alla manutenzione o alla vigilanza, possono accedere da remoto per verificare e controllare lo stato di utenze collegate, in particolare l’impiento di illuminazione.

Vuoi sapere di più su come possiamo aiutarti nella realizzazione di sistemi IOT per il monitoraggio e controllo delle tue utenze?

Contattaci ora

How add button programmatically in RadioButton?

In the previous article you saw how customize classic radio button to have a flat button with two state.

I want create an horizontal menu bar, but it’s no easy like the list box add an item, in this case item is a button. 

Now we want know how add a button programmatically.

Vi scripting help us to do this.

First step enable vi scripting.

With script code you can do this:

Move method, has a duplicate option that create a copy of the control.

This work only in edit mode, than it’s not usable to create my menu at runtime. It’s true that’s I need to know the item before to create action for each item. But figure out you want create dynamic menu, you can use this solution.

You can use it to create quickly other button in the radio with the same flat style of the last button you’re created.

Code to copy last button

Now if you using subpanel, the menu is in a separated Vi, then before you run this you can use the move method to configure you’re menu. A simple trick is to abort and after update the menu, run the Vi.

In the sample each times “Update Menu” is pushed a button is added .

Now creating an array of string that changes the boolean text you have something like the list box menu but button based and with horizontal or vertical arrangement autosizing.

However is not completely useful add a button at run time if you don’t have piece of code that do something for new button created. I use this to create a menu from template, and with some creativity you could use the caption string or boolean text to prepare the code need in case you create this buttons, in example.

About the Move Object Method that inspire me, see this Tutorial.

User Interface – Radio Button

Radio Button is very useful for build a button with more status and when you want to see to the user the two actions of boolean separated. As a Listbox is a good way to create vertical Menu, with radio and some customization we can create both vertical or horizontal menu. The only thing is not extensible at runtime as the listbox or table.

In this article we explain how customize a classic radio button to have FLAT Button with a decalc icon and text.

Step 1: Add a radio button from classic palette.

Step 2: Change Button with Flat Square Button

Step 3: Change Property of Button.

Change the Color ON/OFF, unselect lock text in center and Multiple string.

Step 4: Use the select tool to select both the text boolean text and place to give the space for decal picture.

Step 5: Customize the single Button

Step 6: Get icon and customize.

ICON8 (icons8.com) is our favorite repository for icon, there are different kind (windows,Ios,colored ans so on), and you can customize the icon before download. In our case we search for automatic icon in windows 10 style, then customize with recolor in white and download the 64px.

Step 7: Import Picture to clipboard

Step 8: Import from clipboard as Decal

Step 9: Place Decal in wished position. Close control and confirm replace the original control.

Step 10: Repeat Step 5-9 for other button. Autosizing/Arrange Horizontally. Paint transparent the board of radiobutton container.

Your TwoButton Status is ready.

Remember to label with sense each single button.

Now the diagram, like an enum you have more readable case status, and you can add other cases to your button.

The article explain how you can change your interface, and the useful of radiobutton for user experience and readability of code. We will prepare a next article in witch you can see how you can add button programmatically.

Formula Abstraction Layer

Recently we started a new project with measure and math that have different behavior for a same output. The requirements is to have at runtime the measures and calculated data in SI (International System) and IP (Imperial/Pounds) and need to use two different standards and a customs for same conditions.

Ok, this is the place where take place the concept must used in OOP, the “Inheritance”, to create an “Asbtraction Layer” that separate the application from the specific Programming.

In the picture below the first class don’t have any formula or code inside and data inside. Only shared data with the application is accessed by Class Accessor.

It becomes convenient to use the abstraction approach, when we therefore have common data that needs to be transformed differently.

Each method under the child class is a single formula and only calculation method is overriden from the parent class. Each Method dont have terminal for data access.

Each class have own data, that is accessed by accessor vi inside the class.

Each Calculation is a method of the class overrided from the Abtsract Class. Data are exposed with accessor.

The aim of this article is to promote the advantages to use OOP in our application, for more detail about Abstraction and Inheritance you can follow the link below.

Abstraction Layer

HAL labVIEW

Inheritance in labview

CLA SUMMIT EUROPE 2019

Ogni anno National Instruments ospita il Summit Certified LabVIEW Architect (CLA) negli Stati Uniti e in Europa.
L’evento riunisce programmatori NI LabVIEW  per discutere di architetture, visualizzare in anteprima nuove funzionalità e collegarsi con altri CLA e membri di NI R & D.

Quest’anno l’evento è stato organizzato a Cracovia, una città meravigliosa e accogliente.

Abbiamo partecipato all’evento, raccogliendo un esperienza unica sia per le presentazioni molto avanzate e interessanti, sia per aver incontrato e discusso con i migliori programmatori LabVIEW(TM) in Europa.

Bytelabs si propone come vostro referente per integrare le migliori soluzioni HW e SW per il vostro sistema di Test.

Contattaci ora per raccontarci la tua applicazione di Test.

…..

Premio Cambiamenti 2018

Bytelabs si è qualificata per la partecipazione alle selezioni finali del concorso 2018.

Per noi è un riconoscimento importante, perchè valorizza la nostra idea e ci incoraggia a continuare su questa strada.

La nostra missione è aiutare le imprese a realizzare sistemi di Test.

Siamo specializzati nello sviluppo software in particolare labVIEW.

Ci stiamo specializzando nell’ integrazione di sistemi di misura e test, fornendo supporto sull’ HW e il nostro obiettivo è garantire le competenze necessarie per sviluppare soluzioni complete.

Contiamo con questa visibilità di ricevere l’interesse a discutere collaborazioni con Università e altri imprenditori locali.

Pagina del concorso

NI Summit 2018

Bytelabs parteciperà al summit National Instruments a Milano il prossimo 8 Novembre.

NISummit 2018 è il nuovo evento di NI che nasce dall’unione di NIDays e dei Forum verticali Aerospace & Defence e Automotive.
Questo evento si pone l’obiettivo di diventare l’appuntamento annuale di riferimento per manager, tecnici e professionisti del settore.

Info e registrazione : Sito National Instruments