Ejemplo n.º 1
0
    void Start()
    {
        if (useRecordedFile)
        {
            csvP = new TestCSVParser("Assets/TestFiles/" + testFileName);
        }

        else
        {
            unicornDevice = new Unicorn("UN-2019.02.86");
            print(unicornDevice.GetDeviceInformation().DeviceVersion);
            FrameLength = 1;
            uint numberOfAcquiredChannels = unicornDevice.GetNumberOfAcquiredChannels();
            print(numberOfAcquiredChannels);
            receiveBuffer       = new byte[FrameLength * sizeof(float) * numberOfAcquiredChannels];
            receiveBufferHandle = GCHandle.Alloc(receiveBuffer, GCHandleType.Pinned);

            unicornDevice.StartAcquisition(false);
        }

        ps = GetComponent <ParticleSystem>();

        for (int i = 0; i < 8; i++)
        {
            arrays.Add(new float[60]);
        }
    }
Ejemplo n.º 2
0
 private void initTestFileParser()
 {
     csvP = new TestCSVParser("Assets/TestFiles/" + testFileName);
 }