org.epics.pvmanager.sample.JCALargeArrays Maven / Gradle / Ivy
/**
* Copyright (C) 2010-12 Brookhaven National Laboratory
* All rights reserved. Use is subject to license terms.
*/
package org.epics.pvmanager.sample;
import org.epics.pvmanager.PVManager;
import org.epics.pvmanager.PVReader;
import org.epics.pvmanager.jca.JCADataSource;
import static org.epics.pvmanager.ExpressionLanguage.*;
import org.epics.pvmanager.PVReaderEvent;
import org.epics.pvmanager.PVReaderListener;
import org.epics.vtype.VDoubleArray;
import org.epics.vtype.VShortArray;
import static org.epics.util.time.TimeDuration.*;
/**
*
* @author carcassi
*/
public class JCALargeArrays {
static long start = System.currentTimeMillis();
public static void main(String[] args) throws Exception {
System.setProperty("com.cosylab.epics.caj.CAJContext.max_array_bytes", "1");
// System.setProperty("gov.aps.jca.jni.JNIContext.max_array_bytes", "10000000");
JCADataSource source = new JCADataSource();
source.getContext().printInfo();
PVManager.setDefaultDataSource(source);
final PVReader