35 lines
466 B
Java
35 lines
466 B
Java
package org.hwo.pulscounter;
|
|
|
|
import java.io.RandomAccessFile;
|
|
import java.util.ArrayList;
|
|
import java.util.Date;
|
|
import java.util.List;
|
|
|
|
public class PulsCounterInterface {
|
|
|
|
|
|
public PulsCounterInterface(String portName)
|
|
{
|
|
}
|
|
|
|
public List<Integer> readCounter()
|
|
{
|
|
ArrayList<Integer> counter = new ArrayList<Integer>();
|
|
|
|
/*
|
|
if (port.open())
|
|
{
|
|
port.close();
|
|
}
|
|
*/
|
|
for (int i=0;i<32;i++)
|
|
counter.add( i * i);
|
|
|
|
return counter;
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|