org.epics.pvmanager.sample.BasicExamples 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 java.util.List;
import org.epics.pvmanager.ExceptionHandler;
import static org.epics.pvmanager.ExpressionLanguage.*;
import org.epics.pvmanager.PV;
import org.epics.pvmanager.PVManager;
import org.epics.pvmanager.PVReader;
import org.epics.pvmanager.PVReaderEvent;
import org.epics.pvmanager.PVReaderListener;
import org.epics.pvmanager.PVWriter;
import org.epics.pvmanager.PVWriterEvent;
import org.epics.pvmanager.PVWriterListener;
import org.epics.pvmanager.TimeoutException;
import org.epics.pvmanager.WriteFunction;
import static org.epics.util.time.TimeDuration.*;
/**
* This is the code from the examples in the docs, to make sure it
* actually compiles
*
* @author carcassi
*/
public class BasicExamples {
public void b1_readLatestValue() {
// Let's statically import so the code looks cleaner
// import static org.epics.pvmanager.ExpressionLanguage.*;
// import static org.epics.util.time.TimeDuration.*;
// Get updates from channel "channelName" up to every 100 ms
PVReader