All Downloads are FREE. Search and download functionalities are using the official Maven repository.

devices.7.138.0.source-code.MARTE2_SIMULINK_GENERICSetup Maven / Gradle / Ivy

There is a newer version: 7.139.60
Show newest version

import javax.swing.JOptionPane;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author mdsplus
 */
public class MARTE2_SIMULINK_GENERICSetup extends DeviceSetup {

    /**
     * Creates new form MARTE2_SIMULINK_GENERICSetup
     */
    public MARTE2_SIMULINK_GENERICSetup() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // //GEN-BEGIN:initComponents
    private void initComponents() {

        deviceButtons1 = new DeviceButtons();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jScrollPane1 = new javax.swing.JScrollPane();
        jPanel4 = new javax.swing.JPanel();
        jPanel5 = new javax.swing.JPanel();
        jPanel6 = new javax.swing.JPanel();
        deviceField5 = new DeviceField();
        deviceChoice1 = new DeviceChoice();
        deviceField6 = new DeviceField();
        jPanel7 = new javax.swing.JPanel();
        deviceField7 = new DeviceField();
        jPanel8 = new javax.swing.JPanel();
        jPanel9 = new javax.swing.JPanel();
        deviceField8 = new DeviceField();
        deviceChoice2 = new DeviceChoice();
        deviceField9 = new DeviceField();
        jPanel10 = new javax.swing.JPanel();
        deviceField10 = new DeviceField();
        jPanel11 = new javax.swing.JPanel();
        jPanel12 = new javax.swing.JPanel();
        deviceField11 = new DeviceField();
        deviceChoice3 = new DeviceChoice();
        deviceField12 = new DeviceField();
        jPanel13 = new javax.swing.JPanel();
        deviceField13 = new DeviceField();
        jPanel14 = new javax.swing.JPanel();
        jPanel15 = new javax.swing.JPanel();
        deviceField14 = new DeviceField();
        deviceChoice4 = new DeviceChoice();
        deviceField15 = new DeviceField();
        jPanel16 = new javax.swing.JPanel();
        deviceField16 = new DeviceField();
        jPanel17 = new javax.swing.JPanel();
        jPanel18 = new javax.swing.JPanel();
        deviceField17 = new DeviceField();
        deviceChoice5 = new DeviceChoice();
        deviceField18 = new DeviceField();
        jPanel19 = new javax.swing.JPanel();
        deviceField19 = new DeviceField();
        jPanel20 = new javax.swing.JPanel();
        jPanel21 = new javax.swing.JPanel();
        deviceField20 = new DeviceField();
        deviceChoice6 = new DeviceChoice();
        deviceField21 = new DeviceField();
        jPanel22 = new javax.swing.JPanel();
        deviceField22 = new DeviceField();
        jPanel23 = new javax.swing.JPanel();
        jPanel24 = new javax.swing.JPanel();
        deviceField23 = new DeviceField();
        deviceChoice7 = new DeviceChoice();
        deviceField24 = new DeviceField();
        jPanel25 = new javax.swing.JPanel();
        deviceField25 = new DeviceField();
        jPanel26 = new javax.swing.JPanel();
        jPanel27 = new javax.swing.JPanel();
        deviceField26 = new DeviceField();
        deviceChoice8 = new DeviceChoice();
        deviceField27 = new DeviceField();
        jPanel28 = new javax.swing.JPanel();
        deviceField28 = new DeviceField();
        jScrollPane2 = new javax.swing.JScrollPane();
        jPanel29 = new javax.swing.JPanel();
        jPanel30 = new javax.swing.JPanel();
        deviceField29 = new DeviceField();
        deviceChoice9 = new DeviceChoice();
        deviceField30 = new DeviceField();
        deviceField31 = new DeviceField();
        deviceField69 = new DeviceField();
        jPanel31 = new javax.swing.JPanel();
        deviceField32 = new DeviceField();
        deviceChoice10 = new DeviceChoice();
        deviceField33 = new DeviceField();
        deviceField34 = new DeviceField();
        deviceField70 = new DeviceField();
        jPanel32 = new javax.swing.JPanel();
        deviceField35 = new DeviceField();
        deviceChoice11 = new DeviceChoice();
        deviceField36 = new DeviceField();
        deviceField37 = new DeviceField();
        deviceField71 = new DeviceField();
        jPanel33 = new javax.swing.JPanel();
        deviceField38 = new DeviceField();
        deviceChoice12 = new DeviceChoice();
        deviceField39 = new DeviceField();
        deviceField40 = new DeviceField();
        deviceField72 = new DeviceField();
        jPanel34 = new javax.swing.JPanel();
        deviceField41 = new DeviceField();
        deviceChoice13 = new DeviceChoice();
        deviceField42 = new DeviceField();
        deviceField43 = new DeviceField();
        deviceField73 = new DeviceField();
        jPanel35 = new javax.swing.JPanel();
        deviceField44 = new DeviceField();
        deviceChoice14 = new DeviceChoice();
        deviceField45 = new DeviceField();
        deviceField46 = new DeviceField();
        deviceField74 = new DeviceField();
        jPanel36 = new javax.swing.JPanel();
        deviceField47 = new DeviceField();
        deviceChoice15 = new DeviceChoice();
        deviceField48 = new DeviceField();
        deviceField49 = new DeviceField();
        deviceField75 = new DeviceField();
        jPanel37 = new javax.swing.JPanel();
        deviceField50 = new DeviceField();
        deviceChoice16 = new DeviceChoice();
        deviceField51 = new DeviceField();
        deviceField52 = new DeviceField();
        deviceField76 = new DeviceField();
        jScrollPane3 = new javax.swing.JScrollPane();
        jPanel38 = new javax.swing.JPanel();
        jPanel39 = new javax.swing.JPanel();
        deviceField53 = new DeviceField();
        deviceField54 = new DeviceField();
        jPanel40 = new javax.swing.JPanel();
        deviceField55 = new DeviceField();
        deviceField56 = new DeviceField();
        jPanel41 = new javax.swing.JPanel();
        deviceField57 = new DeviceField();
        deviceField58 = new DeviceField();
        jPanel42 = new javax.swing.JPanel();
        deviceField59 = new DeviceField();
        deviceField60 = new DeviceField();
        jPanel43 = new javax.swing.JPanel();
        deviceField61 = new DeviceField();
        deviceField62 = new DeviceField();
        jPanel44 = new javax.swing.JPanel();
        deviceField63 = new DeviceField();
        deviceField64 = new DeviceField();
        jPanel45 = new javax.swing.JPanel();
        deviceField65 = new DeviceField();
        deviceField66 = new DeviceField();
        jPanel46 = new javax.swing.JPanel();
        deviceField67 = new DeviceField();
        deviceField68 = new DeviceField();
        jPanel1 = new javax.swing.JPanel();
        jPanel2 = new javax.swing.JPanel();
        deviceField1 = new DeviceField();
        deviceField2 = new DeviceField();
        jPanel3 = new javax.swing.JPanel();
        deviceField3 = new DeviceField();
        deviceField4 = new DeviceField();
        jButton1 = new javax.swing.JButton();
        deviceChoice17 = new DeviceChoice();

        setDeviceProvider("spilds:8100");
        setDeviceTitle("MARTe2 Simulink Generic device");
        setDeviceType("MARTE2_SIMULINK_GENERIC");
        setHeight(400);
        setWidth(850);
        getContentPane().add(deviceButtons1, java.awt.BorderLayout.PAGE_END);

        jPanel4.setLayout(new java.awt.GridLayout(8, 1));

        jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder("Input 1"));
        jPanel5.setLayout(new java.awt.GridLayout(2, 1));

        deviceField5.setIdentifier("");
        deviceField5.setLabelString("Name: ");
        deviceField5.setOffsetNid(44);
        deviceField5.setTextOnly(true);
        jPanel6.add(deviceField5);

        deviceChoice1.setChoiceItems(new String[] {"int8", "int16", "int32", "int64", "float32", "float64"});
        deviceChoice1.setIdentifier("");
        deviceChoice1.setLabelString("Type: ");
        deviceChoice1.setOffsetNid(40);
        deviceChoice1.setUpdateIdentifier("");
        jPanel6.add(deviceChoice1);

        deviceField6.setIdentifier("");
        deviceField6.setLabelString("Dimension (0 for scalar, array otherwise):");
        deviceField6.setNumCols(4);
        deviceField6.setOffsetNid(41);
        jPanel6.add(deviceField6);

        jPanel5.add(jPanel6);

        deviceField7.setIdentifier("");
        deviceField7.setLabelString("Value: ");
        deviceField7.setNumCols(40);
        deviceField7.setOffsetNid(43);
        jPanel7.add(deviceField7);

        jPanel5.add(jPanel7);

        jPanel4.add(jPanel5);

        jPanel8.setBorder(javax.swing.BorderFactory.createTitledBorder("Input 2"));
        jPanel8.setLayout(new java.awt.GridLayout(2, 1));

        deviceField8.setIdentifier("");
        deviceField8.setLabelString("Name: ");
        deviceField8.setOffsetNid(51);
        deviceField8.setTextOnly(true);
        jPanel9.add(deviceField8);

        deviceChoice2.setChoiceItems(new String[] {"int8", "int16", "int32", "int64", "float32", "float64"});
        deviceChoice2.setIdentifier("");
        deviceChoice2.setLabelString("Type: ");
        deviceChoice2.setOffsetNid(47);
        deviceChoice2.setUpdateIdentifier("");
        jPanel9.add(deviceChoice2);

        deviceField9.setIdentifier("");
        deviceField9.setLabelString("Dimension (0 for scalar, array otherwise):");
        deviceField9.setNumCols(4);
        deviceField9.setOffsetNid(48);
        jPanel9.add(deviceField9);

        jPanel8.add(jPanel9);

        deviceField10.setIdentifier("");
        deviceField10.setLabelString("Value: ");
        deviceField10.setNumCols(40);
        deviceField10.setOffsetNid(50);
        jPanel10.add(deviceField10);

        jPanel8.add(jPanel10);

        jPanel4.add(jPanel8);

        jPanel11.setBorder(javax.swing.BorderFactory.createTitledBorder("Input 3"));
        jPanel11.setLayout(new java.awt.GridLayout(2, 1));

        deviceField11.setIdentifier("");
        deviceField11.setLabelString("Name: ");
        deviceField11.setOffsetNid(58);
        deviceField11.setTextOnly(true);
        jPanel12.add(deviceField11);

        deviceChoice3.setChoiceItems(new String[] {"int8", "int16", "int32", "int64", "float32", "float64"});
        deviceChoice3.setIdentifier("");
        deviceChoice3.setLabelString("Type: ");
        deviceChoice3.setOffsetNid(54);
        deviceChoice3.setUpdateIdentifier("");
        jPanel12.add(deviceChoice3);

        deviceField12.setIdentifier("");
        deviceField12.setLabelString("Dimension (0 for scalar, array otherwise):");
        deviceField12.setNumCols(4);
        deviceField12.setOffsetNid(55);
        jPanel12.add(deviceField12);

        jPanel11.add(jPanel12);

        deviceField13.setIdentifier("");
        deviceField13.setLabelString("Value: ");
        deviceField13.setNumCols(40);
        deviceField13.setOffsetNid(57);
        jPanel13.add(deviceField13);

        jPanel11.add(jPanel13);

        jPanel4.add(jPanel11);

        jPanel14.setBorder(javax.swing.BorderFactory.createTitledBorder("Input 4"));
        jPanel14.setLayout(new java.awt.GridLayout(2, 1));

        deviceField14.setIdentifier("");
        deviceField14.setLabelString("Name: ");
        deviceField14.setOffsetNid(65);
        deviceField14.setTextOnly(true);
        jPanel15.add(deviceField14);

        deviceChoice4.setChoiceItems(new String[] {"int8", "int16", "int32", "int64", "float32", "float64"});
        deviceChoice4.setIdentifier("");
        deviceChoice4.setLabelString("Type: ");
        deviceChoice4.setOffsetNid(61);
        deviceChoice4.setUpdateIdentifier("");
        jPanel15.add(deviceChoice4);

        deviceField15.setIdentifier("");
        deviceField15.setLabelString("Dimension (0 for scalar, array otherwise):");
        deviceField15.setNumCols(4);
        deviceField15.setOffsetNid(62);
        jPanel15.add(deviceField15);

        jPanel14.add(jPanel15);

        deviceField16.setIdentifier("");
        deviceField16.setLabelString("Value: ");
        deviceField16.setNumCols(40);
        deviceField16.setOffsetNid(64);
        jPanel16.add(deviceField16);

        jPanel14.add(jPanel16);

        jPanel4.add(jPanel14);

        jPanel17.setBorder(javax.swing.BorderFactory.createTitledBorder("Input 5"));
        jPanel17.setLayout(new java.awt.GridLayout(2, 1));

        deviceField17.setIdentifier("");
        deviceField17.setLabelString("Name: ");
        deviceField17.setOffsetNid(72);
        deviceField17.setTextOnly(true);
        jPanel18.add(deviceField17);

        deviceChoice5.setChoiceItems(new String[] {"int8", "int16", "int32", "int64", "float32", "float64"});
        deviceChoice5.setIdentifier("");
        deviceChoice5.setLabelString("Type: ");
        deviceChoice5.setOffsetNid(68);
        deviceChoice5.setUpdateIdentifier("");
        jPanel18.add(deviceChoice5);

        deviceField18.setIdentifier("");
        deviceField18.setLabelString("Dimension (0 for scalar, array otherwise):");
        deviceField18.setNumCols(4);
        deviceField18.setOffsetNid(69);
        jPanel18.add(deviceField18);

        jPanel17.add(jPanel18);

        deviceField19.setIdentifier("");
        deviceField19.setLabelString("Value: ");
        deviceField19.setNumCols(40);
        deviceField19.setOffsetNid(71);
        jPanel19.add(deviceField19);

        jPanel17.add(jPanel19);

        jPanel4.add(jPanel17);

        jPanel20.setBorder(javax.swing.BorderFactory.createTitledBorder("Input 6"));
        jPanel20.setLayout(new java.awt.GridLayout(2, 1));

        deviceField20.setIdentifier("");
        deviceField20.setLabelString("Name: ");
        deviceField20.setOffsetNid(79);
        deviceField20.setTextOnly(true);
        jPanel21.add(deviceField20);

        deviceChoice6.setChoiceItems(new String[] {"int8", "int16", "int32", "int64", "float32", "float64"});
        deviceChoice6.setIdentifier("");
        deviceChoice6.setLabelString("Type: ");
        deviceChoice6.setOffsetNid(75);
        deviceChoice6.setUpdateIdentifier("");
        jPanel21.add(deviceChoice6);

        deviceField21.setIdentifier("");
        deviceField21.setLabelString("Dimension (0 for scalar, array otherwise):");
        deviceField21.setNumCols(4);
        deviceField21.setOffsetNid(76);
        jPanel21.add(deviceField21);

        jPanel20.add(jPanel21);

        deviceField22.setIdentifier("");
        deviceField22.setLabelString("Value: ");
        deviceField22.setNumCols(40);
        deviceField22.setOffsetNid(78);
        jPanel22.add(deviceField22);

        jPanel20.add(jPanel22);

        jPanel4.add(jPanel20);

        jPanel23.setBorder(javax.swing.BorderFactory.createTitledBorder("Input 7"));
        jPanel23.setLayout(new java.awt.GridLayout(2, 1));

        deviceField23.setIdentifier("");
        deviceField23.setLabelString("Name: ");
        deviceField23.setOffsetNid(86);
        deviceField23.setTextOnly(true);
        jPanel24.add(deviceField23);

        deviceChoice7.setChoiceItems(new String[] {"int8", "int16", "int32", "int64", "float32", "float64"});
        deviceChoice7.setIdentifier("");
        deviceChoice7.setLabelString("Type: ");
        deviceChoice7.setOffsetNid(82);
        deviceChoice7.setUpdateIdentifier("");
        jPanel24.add(deviceChoice7);

        deviceField24.setIdentifier("");
        deviceField24.setLabelString("Dimension (0 for scalar, array otherwise):");
        deviceField24.setNumCols(4);
        deviceField24.setOffsetNid(83);
        jPanel24.add(deviceField24);

        jPanel23.add(jPanel24);

        deviceField25.setIdentifier("");
        deviceField25.setLabelString("Value: ");
        deviceField25.setNumCols(40);
        deviceField25.setOffsetNid(85);
        jPanel25.add(deviceField25);

        jPanel23.add(jPanel25);

        jPanel4.add(jPanel23);

        jPanel26.setBorder(javax.swing.BorderFactory.createTitledBorder("Input 8"));
        jPanel26.setLayout(new java.awt.GridLayout(2, 1));

        deviceField26.setIdentifier("");
        deviceField26.setLabelString("Name: ");
        deviceField26.setOffsetNid(93);
        deviceField26.setTextOnly(true);
        jPanel27.add(deviceField26);

        deviceChoice8.setChoiceItems(new String[] {"int8", "int16", "int32", "int64", "float32", "float64"});
        deviceChoice8.setIdentifier("");
        deviceChoice8.setLabelString("Type: ");
        deviceChoice8.setOffsetNid(89);
        deviceChoice8.setUpdateIdentifier("");
        jPanel27.add(deviceChoice8);

        deviceField27.setIdentifier("");
        deviceField27.setLabelString("Dimension (0 for scalar, array otherwise):");
        deviceField27.setNumCols(4);
        deviceField27.setOffsetNid(90);
        jPanel27.add(deviceField27);

        jPanel26.add(jPanel27);

        deviceField28.setIdentifier("");
        deviceField28.setLabelString("Value: ");
        deviceField28.setNumCols(40);
        deviceField28.setOffsetNid(92);
        jPanel28.add(deviceField28);

        jPanel26.add(jPanel28);

        jPanel4.add(jPanel26);

        jScrollPane1.setViewportView(jPanel4);

        jTabbedPane1.addTab("Inputs", jScrollPane1);

        jPanel29.setLayout(new java.awt.GridLayout(8, 1));

        jPanel30.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createTitledBorder("Output 1"), "Output 1"));

        deviceField29.setIdentifier("");
        deviceField29.setLabelString("Name:");
        deviceField29.setOffsetNid(103);
        deviceField29.setTextOnly(true);
        jPanel30.add(deviceField29);

        deviceChoice9.setChoiceItems(new String[] {"int8", "int16", "int32", "int64", "float32", "float64"});
        deviceChoice9.setIdentifier("");
        deviceChoice9.setLabelString("Type:");
        deviceChoice9.setOffsetNid(104);
        deviceChoice9.setUpdateIdentifier("");
        jPanel30.add(deviceChoice9);

        deviceField30.setIdentifier("");
        deviceField30.setLabelString("Dimension (0 for scalar, -1 to disable)");
        deviceField30.setNumCols(8);
        deviceField30.setOffsetNid(106);
        jPanel30.add(deviceField30);

        deviceField31.setIdentifier("");
        deviceField31.setLabelString("Seg. Len (0 to disable):");
        deviceField31.setNumCols(14);
        deviceField31.setOffsetNid(107);
        jPanel30.add(deviceField31);

        deviceField69.setIdentifier("");
        deviceField69.setLabelString("Stream: ");
        deviceField69.setOffsetNid(108);
        deviceField69.setTextOnly(true);
        jPanel30.add(deviceField69);

        jPanel29.add(jPanel30);

        jPanel31.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createTitledBorder("Output 1"), "Output 2"));

        deviceField32.setIdentifier("");
        deviceField32.setLabelString("Name:");
        deviceField32.setOffsetNid(112);
        deviceField32.setTextOnly(true);
        jPanel31.add(deviceField32);

        deviceChoice10.setChoiceItems(new String[] {"int8", "int16", "int32", "int64", "float32", "float64"});
        deviceChoice10.setIdentifier("");
        deviceChoice10.setLabelString("Type:");
        deviceChoice10.setOffsetNid(113);
        deviceChoice10.setUpdateIdentifier("");
        jPanel31.add(deviceChoice10);

        deviceField33.setIdentifier("");
        deviceField33.setLabelString("Dimension (0 for scalar, -1 to disable)");
        deviceField33.setNumCols(8);
        deviceField33.setOffsetNid(115);
        jPanel31.add(deviceField33);

        deviceField34.setIdentifier("");
        deviceField34.setLabelString("Seg. Len (0 to disable):");
        deviceField34.setNumCols(14);
        deviceField34.setOffsetNid(116);
        jPanel31.add(deviceField34);

        deviceField70.setIdentifier("");
        deviceField70.setLabelString("Stream: ");
        deviceField70.setOffsetNid(117);
        deviceField70.setTextOnly(true);
        jPanel31.add(deviceField70);

        jPanel29.add(jPanel31);

        jPanel32.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createTitledBorder("Output 1"), "Output 3"));

        deviceField35.setIdentifier("");
        deviceField35.setLabelString("Name:");
        deviceField35.setOffsetNid(121);
        deviceField35.setTextOnly(true);
        jPanel32.add(deviceField35);

        deviceChoice11.setChoiceItems(new String[] {"int8", "int16", "int32", "int64", "float32", "float64"});
        deviceChoice11.setIdentifier("");
        deviceChoice11.setLabelString("Type:");
        deviceChoice11.setOffsetNid(122);
        deviceChoice11.setUpdateIdentifier("");
        jPanel32.add(deviceChoice11);

        deviceField36.setIdentifier("");
        deviceField36.setLabelString("Dimension (0 for scalar, -1 to disable)");
        deviceField36.setNumCols(8);
        deviceField36.setOffsetNid(124);
        jPanel32.add(deviceField36);

        deviceField37.setIdentifier("");
        deviceField37.setLabelString("Seg. Len (0 to disable):");
        deviceField37.setNumCols(14);
        deviceField37.setOffsetNid(125);
        jPanel32.add(deviceField37);

        deviceField71.setIdentifier("");
        deviceField71.setLabelString("Stream: ");
        deviceField71.setOffsetNid(126);
        deviceField71.setTextOnly(true);
        jPanel32.add(deviceField71);

        jPanel29.add(jPanel32);

        jPanel33.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createTitledBorder("Output 1"), "Output 4"));

        deviceField38.setIdentifier("");
        deviceField38.setLabelString("Name:");
        deviceField38.setOffsetNid(130);
        deviceField38.setTextOnly(true);
        jPanel33.add(deviceField38);

        deviceChoice12.setChoiceItems(new String[] {"int8", "int16", "int32", "int64", "float32", "float64"});
        deviceChoice12.setIdentifier("");
        deviceChoice12.setLabelString("Type:");
        deviceChoice12.setOffsetNid(131);
        deviceChoice12.setUpdateIdentifier("");
        jPanel33.add(deviceChoice12);

        deviceField39.setIdentifier("");
        deviceField39.setLabelString("Dimension (0 for scalar, -1 to disable)");
        deviceField39.setNumCols(8);
        deviceField39.setOffsetNid(133);
        jPanel33.add(deviceField39);

        deviceField40.setIdentifier("");
        deviceField40.setLabelString("Seg. Len (0 to disable):");
        deviceField40.setNumCols(14);
        deviceField40.setOffsetNid(134);
        jPanel33.add(deviceField40);

        deviceField72.setIdentifier("");
        deviceField72.setLabelString("Stream: ");
        deviceField72.setOffsetNid(135);
        deviceField72.setTextOnly(true);
        jPanel33.add(deviceField72);

        jPanel29.add(jPanel33);

        jPanel34.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createTitledBorder("Output 1"), "Output 5"));

        deviceField41.setIdentifier("");
        deviceField41.setLabelString("Name:");
        deviceField41.setOffsetNid(139);
        deviceField41.setTextOnly(true);
        jPanel34.add(deviceField41);

        deviceChoice13.setChoiceItems(new String[] {"int8", "int16", "int32", "int64", "float32", "float64"});
        deviceChoice13.setIdentifier("");
        deviceChoice13.setLabelString("Type:");
        deviceChoice13.setOffsetNid(140);
        deviceChoice13.setUpdateIdentifier("");
        jPanel34.add(deviceChoice13);

        deviceField42.setIdentifier("");
        deviceField42.setLabelString("Dimension (0 for scalar, -1 to disable)");
        deviceField42.setNumCols(8);
        deviceField42.setOffsetNid(142);
        jPanel34.add(deviceField42);

        deviceField43.setIdentifier("");
        deviceField43.setLabelString("Seg. Len (0 to disable):");
        deviceField43.setNumCols(14);
        deviceField43.setOffsetNid(143);
        jPanel34.add(deviceField43);

        deviceField73.setIdentifier("");
        deviceField73.setLabelString("Stream: ");
        deviceField73.setOffsetNid(144);
        deviceField73.setTextOnly(true);
        jPanel34.add(deviceField73);

        jPanel29.add(jPanel34);

        jPanel35.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createTitledBorder("Output 1"), "Output 6"));

        deviceField44.setIdentifier("");
        deviceField44.setLabelString("Name:");
        deviceField44.setOffsetNid(148);
        deviceField44.setTextOnly(true);
        jPanel35.add(deviceField44);

        deviceChoice14.setChoiceItems(new String[] {"int8", "int16", "int32", "int64", "float32", "float64"});
        deviceChoice14.setIdentifier("");
        deviceChoice14.setLabelString("Type:");
        deviceChoice14.setOffsetNid(149);
        deviceChoice14.setUpdateIdentifier("");
        jPanel35.add(deviceChoice14);

        deviceField45.setIdentifier("");
        deviceField45.setLabelString("Dimension (0 for scalar, -1 to disable)");
        deviceField45.setNumCols(8);
        deviceField45.setOffsetNid(151);
        jPanel35.add(deviceField45);

        deviceField46.setIdentifier("");
        deviceField46.setLabelString("Seg. Len (0 to disable):");
        deviceField46.setNumCols(14);
        deviceField46.setOffsetNid(152);
        jPanel35.add(deviceField46);

        deviceField74.setIdentifier("");
        deviceField74.setLabelString("Stream: ");
        deviceField74.setOffsetNid(153);
        deviceField74.setTextOnly(true);
        jPanel35.add(deviceField74);

        jPanel29.add(jPanel35);

        jPanel36.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createTitledBorder("Output 1"), "Output 7"));

        deviceField47.setIdentifier("");
        deviceField47.setLabelString("Name:");
        deviceField47.setOffsetNid(157);
        deviceField47.setTextOnly(true);
        jPanel36.add(deviceField47);

        deviceChoice15.setChoiceItems(new String[] {"int8", "int16", "int32", "int64", "float32", "float64"});
        deviceChoice15.setIdentifier("");
        deviceChoice15.setLabelString("Type:");
        deviceChoice15.setOffsetNid(158);
        deviceChoice15.setUpdateIdentifier("");
        jPanel36.add(deviceChoice15);

        deviceField48.setIdentifier("");
        deviceField48.setLabelString("Dimension (0 for scalar, -1 to disable)");
        deviceField48.setNumCols(8);
        deviceField48.setOffsetNid(160);
        jPanel36.add(deviceField48);

        deviceField49.setIdentifier("");
        deviceField49.setLabelString("Seg. Len (0 to disable):");
        deviceField49.setNumCols(14);
        deviceField49.setOffsetNid(161);
        jPanel36.add(deviceField49);

        deviceField75.setIdentifier("");
        deviceField75.setLabelString("Stream: ");
        deviceField75.setOffsetNid(162);
        deviceField75.setTextOnly(true);
        jPanel36.add(deviceField75);

        jPanel29.add(jPanel36);

        jPanel37.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createTitledBorder("Output 1"), "Output 8"));

        deviceField50.setIdentifier("");
        deviceField50.setLabelString("Name:");
        deviceField50.setOffsetNid(166);
        deviceField50.setTextOnly(true);
        jPanel37.add(deviceField50);

        deviceChoice16.setChoiceItems(new String[] {"int8", "int16", "int32", "int64", "float32", "float64"});
        deviceChoice16.setIdentifier("");
        deviceChoice16.setLabelString("Type:");
        deviceChoice16.setOffsetNid(167);
        deviceChoice16.setUpdateIdentifier("");
        jPanel37.add(deviceChoice16);

        deviceField51.setIdentifier("");
        deviceField51.setLabelString("Dimension (0 for scalar, -1 to disable)");
        deviceField51.setNumCols(8);
        deviceField51.setOffsetNid(169);
        jPanel37.add(deviceField51);

        deviceField52.setIdentifier("");
        deviceField52.setLabelString("Seg. Len (0 to disable):");
        deviceField52.setNumCols(14);
        deviceField52.setOffsetNid(170);
        jPanel37.add(deviceField52);

        deviceField76.setIdentifier("");
        deviceField76.setLabelString("Stream: ");
        deviceField76.setOffsetNid(171);
        deviceField76.setTextOnly(true);
        jPanel37.add(deviceField76);

        jPanel29.add(jPanel37);

        jScrollPane2.setViewportView(jPanel29);

        jTabbedPane1.addTab("Outputs", jScrollPane2);

        jPanel38.setLayout(new java.awt.GridLayout(8, 1));

        jPanel39.setBorder(javax.swing.BorderFactory.createTitledBorder("Parameter 1"));

        deviceField53.setIdentifier("");
        deviceField53.setLabelString("Name:");
        deviceField53.setOffsetNid(15);
        deviceField53.setTextOnly(true);
        jPanel39.add(deviceField53);

        deviceField54.setIdentifier("");
        deviceField54.setLabelString("Value: ");
        deviceField54.setOffsetNid(16);
        jPanel39.add(deviceField54);

        jPanel38.add(jPanel39);

        jPanel40.setBorder(javax.swing.BorderFactory.createTitledBorder("Parameter 2"));

        deviceField55.setIdentifier("");
        deviceField55.setLabelString("Name:");
        deviceField55.setOffsetNid(18);
        deviceField55.setTextOnly(true);
        jPanel40.add(deviceField55);

        deviceField56.setIdentifier("");
        deviceField56.setLabelString("Value: ");
        deviceField56.setOffsetNid(19);
        jPanel40.add(deviceField56);

        jPanel38.add(jPanel40);

        jPanel41.setBorder(javax.swing.BorderFactory.createTitledBorder("Parameter 3"));

        deviceField57.setIdentifier("");
        deviceField57.setLabelString("Name:");
        deviceField57.setOffsetNid(21);
        deviceField57.setTextOnly(true);
        jPanel41.add(deviceField57);

        deviceField58.setIdentifier("");
        deviceField58.setLabelString("Value: ");
        deviceField58.setOffsetNid(22);
        jPanel41.add(deviceField58);

        jPanel38.add(jPanel41);

        jPanel42.setBorder(javax.swing.BorderFactory.createTitledBorder("Parameter 4"));

        deviceField59.setIdentifier("");
        deviceField59.setLabelString("Name:");
        deviceField59.setOffsetNid(24);
        deviceField59.setTextOnly(true);
        jPanel42.add(deviceField59);

        deviceField60.setIdentifier("");
        deviceField60.setLabelString("Value: ");
        deviceField60.setOffsetNid(25);
        jPanel42.add(deviceField60);

        jPanel38.add(jPanel42);

        jPanel43.setBorder(javax.swing.BorderFactory.createTitledBorder("Parameter 5"));

        deviceField61.setIdentifier("");
        deviceField61.setLabelString("Name:");
        deviceField61.setOffsetNid(27);
        deviceField61.setTextOnly(true);
        jPanel43.add(deviceField61);

        deviceField62.setIdentifier("");
        deviceField62.setLabelString("Value: ");
        deviceField62.setOffsetNid(28);
        jPanel43.add(deviceField62);

        jPanel38.add(jPanel43);

        jPanel44.setBorder(javax.swing.BorderFactory.createTitledBorder("Parameter 6"));

        deviceField63.setIdentifier("");
        deviceField63.setLabelString("Name:");
        deviceField63.setOffsetNid(30);
        deviceField63.setTextOnly(true);
        jPanel44.add(deviceField63);

        deviceField64.setIdentifier("");
        deviceField64.setLabelString("Value: ");
        deviceField64.setOffsetNid(31);
        jPanel44.add(deviceField64);

        jPanel38.add(jPanel44);

        jPanel45.setBorder(javax.swing.BorderFactory.createTitledBorder("Parameter 7"));

        deviceField65.setIdentifier("");
        deviceField65.setLabelString("Name:");
        deviceField65.setOffsetNid(33);
        deviceField65.setTextOnly(true);
        jPanel45.add(deviceField65);

        deviceField66.setIdentifier("");
        deviceField66.setLabelString("Value: ");
        deviceField66.setOffsetNid(34);
        jPanel45.add(deviceField66);

        jPanel38.add(jPanel45);

        jPanel46.setBorder(javax.swing.BorderFactory.createTitledBorder("Parameter 8"));

        deviceField67.setIdentifier("");
        deviceField67.setLabelString("Name:");
        deviceField67.setOffsetNid(36);
        deviceField67.setTextOnly(true);
        jPanel46.add(deviceField67);

        deviceField68.setIdentifier("");
        deviceField68.setLabelString("Value: ");
        deviceField68.setOffsetNid(37);
        jPanel46.add(deviceField68);

        jPanel38.add(jPanel46);

        jScrollPane3.setViewportView(jPanel38);

        jTabbedPane1.addTab("Parameters", jScrollPane3);

        getContentPane().add(jTabbedPane1, java.awt.BorderLayout.CENTER);

        jPanel1.setLayout(new java.awt.GridLayout(2, 1));

        deviceField1.setIdentifier("");
        deviceField1.setLabelString("Timebase:");
        deviceField1.setNumCols(20);
        deviceField1.setOffsetNid(3);
        jPanel2.add(deviceField1);

        deviceField2.setIdentifier("");
        deviceField2.setLabelString("Timebase div. (if from another thread):");
        deviceField2.setNumCols(4);
        deviceField2.setOffsetNid(174);
        jPanel2.add(deviceField2);

        jPanel1.add(jPanel2);

        deviceField3.setIdentifier("");
        deviceField3.setLabelString("Simulink module: ");
        deviceField3.setOffsetNid(13);
        deviceField3.setTextOnly(true);
        jPanel3.add(deviceField3);

        deviceField4.setIdentifier("");
        deviceField4.setLabelString("Write CPU Mask: ");
        deviceField4.setNumCols(4);
        deviceField4.setOffsetNid(101);
        jPanel3.add(deviceField4);

        jButton1.setText("Fill fields");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });
        jPanel3.add(jButton1);

        deviceChoice17.setChoiceIntValues(new int[] {0, 1, 2});
        deviceChoice17.setChoiceItems(new String[] {"0", "1", "2"});
        deviceChoice17.setIdentifier("");
        deviceChoice17.setLabelString("Verbosity:");
        deviceChoice17.setOffsetNid(7);
        deviceChoice17.setUpdateIdentifier("");
        jPanel3.add(deviceChoice17);

        jPanel1.add(jPanel3);

        getContentPane().add(jPanel1, java.awt.BorderLayout.PAGE_START);
    }// //GEN-END:initComponents

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        // TODO add your handling code here:
        String msg;
	try
	{
            msg = subtree.getString(subtree.execute("fillMarteSimulinkFields(\'" + subtree.getName() + "\', " + baseNid + ")"));
	}
	catch (final Exception exc)
	{
            msg = exc.toString();
	}
	JOptionPane.showMessageDialog(this, msg);
        update();

    }//GEN-LAST:event_jButton1ActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private DeviceButtons deviceButtons1;
    private DeviceChoice deviceChoice1;
    private DeviceChoice deviceChoice10;
    private DeviceChoice deviceChoice11;
    private DeviceChoice deviceChoice12;
    private DeviceChoice deviceChoice13;
    private DeviceChoice deviceChoice14;
    private DeviceChoice deviceChoice15;
    private DeviceChoice deviceChoice16;
    private DeviceChoice deviceChoice17;
    private DeviceChoice deviceChoice2;
    private DeviceChoice deviceChoice3;
    private DeviceChoice deviceChoice4;
    private DeviceChoice deviceChoice5;
    private DeviceChoice deviceChoice6;
    private DeviceChoice deviceChoice7;
    private DeviceChoice deviceChoice8;
    private DeviceChoice deviceChoice9;
    private DeviceField deviceField1;
    private DeviceField deviceField10;
    private DeviceField deviceField11;
    private DeviceField deviceField12;
    private DeviceField deviceField13;
    private DeviceField deviceField14;
    private DeviceField deviceField15;
    private DeviceField deviceField16;
    private DeviceField deviceField17;
    private DeviceField deviceField18;
    private DeviceField deviceField19;
    private DeviceField deviceField2;
    private DeviceField deviceField20;
    private DeviceField deviceField21;
    private DeviceField deviceField22;
    private DeviceField deviceField23;
    private DeviceField deviceField24;
    private DeviceField deviceField25;
    private DeviceField deviceField26;
    private DeviceField deviceField27;
    private DeviceField deviceField28;
    private DeviceField deviceField29;
    private DeviceField deviceField3;
    private DeviceField deviceField30;
    private DeviceField deviceField31;
    private DeviceField deviceField32;
    private DeviceField deviceField33;
    private DeviceField deviceField34;
    private DeviceField deviceField35;
    private DeviceField deviceField36;
    private DeviceField deviceField37;
    private DeviceField deviceField38;
    private DeviceField deviceField39;
    private DeviceField deviceField4;
    private DeviceField deviceField40;
    private DeviceField deviceField41;
    private DeviceField deviceField42;
    private DeviceField deviceField43;
    private DeviceField deviceField44;
    private DeviceField deviceField45;
    private DeviceField deviceField46;
    private DeviceField deviceField47;
    private DeviceField deviceField48;
    private DeviceField deviceField49;
    private DeviceField deviceField5;
    private DeviceField deviceField50;
    private DeviceField deviceField51;
    private DeviceField deviceField52;
    private DeviceField deviceField53;
    private DeviceField deviceField54;
    private DeviceField deviceField55;
    private DeviceField deviceField56;
    private DeviceField deviceField57;
    private DeviceField deviceField58;
    private DeviceField deviceField59;
    private DeviceField deviceField6;
    private DeviceField deviceField60;
    private DeviceField deviceField61;
    private DeviceField deviceField62;
    private DeviceField deviceField63;
    private DeviceField deviceField64;
    private DeviceField deviceField65;
    private DeviceField deviceField66;
    private DeviceField deviceField67;
    private DeviceField deviceField68;
    private DeviceField deviceField69;
    private DeviceField deviceField7;
    private DeviceField deviceField70;
    private DeviceField deviceField71;
    private DeviceField deviceField72;
    private DeviceField deviceField73;
    private DeviceField deviceField74;
    private DeviceField deviceField75;
    private DeviceField deviceField76;
    private DeviceField deviceField8;
    private DeviceField deviceField9;
    private javax.swing.JButton jButton1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel10;
    private javax.swing.JPanel jPanel11;
    private javax.swing.JPanel jPanel12;
    private javax.swing.JPanel jPanel13;
    private javax.swing.JPanel jPanel14;
    private javax.swing.JPanel jPanel15;
    private javax.swing.JPanel jPanel16;
    private javax.swing.JPanel jPanel17;
    private javax.swing.JPanel jPanel18;
    private javax.swing.JPanel jPanel19;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel20;
    private javax.swing.JPanel jPanel21;
    private javax.swing.JPanel jPanel22;
    private javax.swing.JPanel jPanel23;
    private javax.swing.JPanel jPanel24;
    private javax.swing.JPanel jPanel25;
    private javax.swing.JPanel jPanel26;
    private javax.swing.JPanel jPanel27;
    private javax.swing.JPanel jPanel28;
    private javax.swing.JPanel jPanel29;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel30;
    private javax.swing.JPanel jPanel31;
    private javax.swing.JPanel jPanel32;
    private javax.swing.JPanel jPanel33;
    private javax.swing.JPanel jPanel34;
    private javax.swing.JPanel jPanel35;
    private javax.swing.JPanel jPanel36;
    private javax.swing.JPanel jPanel37;
    private javax.swing.JPanel jPanel38;
    private javax.swing.JPanel jPanel39;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel40;
    private javax.swing.JPanel jPanel41;
    private javax.swing.JPanel jPanel42;
    private javax.swing.JPanel jPanel43;
    private javax.swing.JPanel jPanel44;
    private javax.swing.JPanel jPanel45;
    private javax.swing.JPanel jPanel46;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JPanel jPanel9;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JTabbedPane jTabbedPane1;
    // End of variables declaration//GEN-END:variables
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy