@@ -31,71 +31,40 @@ clr.AddReference(the absolute path of i8.dll file)
# for example: clr.AddReference('C:/Users/i8-tech/Desktop/csharp_dlls/infinite8dll/I8Library1/bin/Debug/I8Library1.dll')
```
### instance from main class of i8devices
Just import `Device` class, And then you can use it by declaring an instance of `Device` class.
```
just import `Device` class, And then you can use it by declaring an instance of `Device` class.
from I8Devices import Device
myAwsomeHolyShitImDyingForThisDevice = Device()
```
## How to Use
First of all, you should plug your device into your PC, and also install `ST micro COM Port Package` from `Device Manager`.
After that
First of all, you should plug your device into your PC, and also install `ST micro COM Port Package` from `Device Manager` (it should be installed itself if your connected to internet).
Use the following methods to retrieve class information:
If device is successfully connected to the PC, you can Use the following methods and properties to retrieve Device information or send a command to it:
```
# trial data
file_base.get_subject_id()
file_base.get_protocol_name()
file_base.get_task_name()
file_base.get_description()
file_base.get_sequence()
file_base.get_project()
file_base.get_timestamp()
file_base.get_filename()
# output data
file_base.get_output_raw_data()
file_base.get_output_channel_count()
file_base.get_output_sample_count()
file_base.get_output_sample_rate()
# extra data
file_base.get_extra_raw_data()
file_base.get_extra_channel_count()
file_base.get_extra_sample_count()
file_base.get_extra_sample_rate()
# brain data
file_base.get_brain_raw_data()
file_base.get_brain_channel_count()
file_base.get_brain_sample_count()
file_base.get_brain_sample_rate()
file_base.get_brain_quality()
# device and sensor
file_base.get_device_info()
file_base.get_sensor_name()
# reaction data
file_base.get_feedback_data()
file_base.get_label_data()
file_base.get_reaction_data()
# Info
myDevice.name
# get data
myDevice.StartDataAcquisition()
myDevice.get_data()
myDevice.StoptDataAcquisition()
```
## Built With
*[numpy](https://pypi.org/project/numpy/) - Used to calculate quality of data
*[scipy](https://pypi.org/project/scipy/) - Used to calculate quality of data
This project is licensed under the MIT License - see the [kemitchell.com](https://writing.kemitchell.com/2016/09/21/MIT-License-Line-by-Line.html) website for details.
\ No newline at end of file
This project is licensed under the I8 Co. License - see the [Infinite8 website](https://infinite8.tech) website for details. (you wish there will be some information but I gotta tell you there is not )