Examples of extractDoubleArray()


Examples of fr.esrf.TangoApi.DeviceAttribute.extractDoubleArray()

            sendMultiple("read",attr.extractBooleanArray()[i],i);
            send("size",attr.getNbRead());
            }
        }else if (type>=2 && type<=7){ //Number
          for (int i = 0; i < attr.getNbRead(); i++) {
            sendMultiple("read",attr.extractDoubleArray()[i],i);
            }
        }else if (type==8){ //String
          for (int i = 0; i < attr.getNbRead(); i++) {
            sendMultiple("read",attr.extractStringArray()[i],i);
            }
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceAttribute.extractDoubleArray()

            sendMultiple("read",attr.extractFloatArray()[i],i);
            }
        }if(type == 4) { //Double
          System.out.println("\n\n\nstart--Boolean------\n\n\n");
          for (int i = 0; i < attr.getNbRead(); i++) {
            sendMultiple("read",attr.extractDoubleArray()[i],i);
            }
        }if(type == 5) { //Long
          System.out.println("\n\n\nstart--Boolean------\n\n\n");
          for (int i = 0; i < attr.getNbRead(); i++) {
            sendMultiple("read",attr.extractLongArray()[i],i);
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceAttribute.extractDoubleArray()

                        scanPointsMatrix[row][column] = new ScanPointImpl();
                    }
                }
               
                // Times.
                double[] timesArray = sensorsTimeStampsAttribute.extractDoubleArray();
                row = 0;
                column = 0;
                for(double time : timesArray) {
                    scanPointsMatrix[row][column].setTime(time);
                    ++column;
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceAttribute.extractDoubleArray()

                        scanPointsMatrix[row][column] = new ScanPointImpl();
                    }
                }

                // Times.
                double[] timesArray = sensorsTimeStampsAttribute.extractDoubleArray();
                row = 0;
                column = 0;
                for (double time : timesArray) {
                    scanPointsMatrix[row][column].setTime(time);
                    ++column;
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceAttribute.extractDoubleArray()

    // Initialiser le device et le composant
    initFirstDevice();

    DeviceAttribute da = m_deviceProxy.read_attribute(xAttributeName);
    final double[] xData = da.extractDoubleArray();

    da = m_deviceProxy.read_attribute(yAttributeName);
    final double[] yData = da.extractDoubleArray();

    final MultiAttributeDualSpectrumChart widget = new MultiAttributeDualSpectrumChart.Builder(
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceAttribute.extractDoubleArray()

    DeviceAttribute da = m_deviceProxy.read_attribute(xAttributeName);
    final double[] xData = da.extractDoubleArray();

    da = m_deviceProxy.read_attribute(yAttributeName);
    final double[] yData = da.extractDoubleArray();

    final MultiAttributeDualSpectrumChart widget = new MultiAttributeDualSpectrumChart.Builder(
        xAttributeNameList, yAttributeNameList).jframe(jf1).build();

    Sleeper.SECONDS.sleep(2);
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceAttribute.extractDoubleArray()

        jf1 = new JFrame();

        // Initialiser le device et le composant
        initFirstDevice();
        final DeviceAttribute da = m_deviceProxy.read_attribute(attributeName);
        final double[] data = da.extractDoubleArray();

        final MultiAttributSpectrumChart widget = new MultiAttributSpectrumChart.Builder(
                attributeNameList).jframe(jf1).build();

        Sleeper.SECONDS.sleep(2);
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceAttribute.extractDoubleArray()

    private static void displayValues() {
        DeviceProxy proxy = TangoDeviceHelper.getDeviceProxy(deviceName);
        if (proxy != null) {
            try {
                DeviceAttribute xAttribute = proxy.read_attribute(xAttributeName);
                double[] xDoubleValues = xAttribute.extractDoubleArray();
                System.out.println("x values = " + Arrays.toString(xDoubleValues));

                DeviceAttribute yAttribute = proxy.read_attribute(yAttributeName);
                short[] yDoubleValues = yAttribute.extractShortArray();
                System.out.println("y values = " + Arrays.toString(yDoubleValues));
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceAttribute.extractDoubleArray()

    jf1 = new JFrame();

    // Initialiser le device et le composant
    initFirstDevice();
    final DeviceAttribute da = m_deviceProxy.read_attribute(attributeName);
    final double[] data = da.extractDoubleArray();

    final MultiAttributSpectrumChart widget = new MultiAttributSpectrumChart.Builder(
        attributeNameList).jframe(jf1).build();

    Sleeper.SECONDS.sleep(2);
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceAttribute.extractDoubleArray()

    final String[] stringValues = list.split(",");
    final DeviceAttribute attr = m_deviceProxy
        .read_attribute("double_spectrum_rw");

    // Warning : contains read and write part
    final double[] doubleValues = attr.extractDoubleArray();

    Sleeper.SECONDS.sleep(3);
    assertThat(doubleValues.length - attr.getWrittenDimX()).isEqualTo(
        stringValues.length);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.