Commit 55ba7bac authored by reza's avatar reza

Update README.md

parent ee7a2073
......@@ -14,10 +14,8 @@ This dll requires the following packages to work fine.
### Prerequisites
Use pip script to install `scipy` , `numpy`and `pythonnet` . These packages are used to read .dll files writen in C# and calculate some anticipated data.
Use pip script to install `pythonnet` . These package(s) are used to read .dll files writen in C# and calculate some anticipated data.
```
pip install scipy
pip install numpy
pip install pythonnet
```
......@@ -43,28 +41,41 @@ First of all, you should plug your device into your PC, and also install `ST mic
After that type in the `Connect` method
```
myAwsomeHolyShitImDyingForThisDevice.Connect()
myAwsomeHolyShitImDyingForThisDevice.connect()
```
If device is successfully connected to the PC, you can use the following methods and properties to retrieve Device information, or send a command/ recieve data to/from the device:
```
# Info
myAwsomeHolyShitImDyingForThisDevice.name
myAwsomeHolyShitImDyingForThisDevice.channelsnumber
myAwsomeHolyShitImDyingForThisDevice.info
myAwsomeHolyShitImDyingForThisDevice.ReadStatus()
# status
myAwsomeHolyShitImDyingForThisDevice.getStatus()
return:
{"mode":dataGathering_flag, "cnt":sample_count, "buff_len":newData_count}
# info
myAwsomeHolyShitImDyingForThisDevice.getInfo()
returns:
{"name":device_name, "version":firmware_version, "id":unic_ID, "flash":flash_data}
# get data
myAwsomeHolyShitImDyingForThisDevice.Start()
myAwsomeHolyShitImDyingForThisDevice.GetData()
myAwsomeHolyShitImDyingForThisDevice.Stop()
myAwsomeHolyShitImDyingForThisDevice.Leadoff()
myAwsomeHolyShitImDyingForThisDevice.start()
myAwsomeHolyShitImDyingForThisDevice.getData()
myAwsomeHolyShitImDyingForThisDevice.stop()
# write setting
myAwsomeHolyShitImDyingForThisDevice.Set()
mysetting = Settings()
mysetting.test_signal = 234
mysetting.sampling_rate = 885.5
mysetting.leadoff_mode = False
mysetting.channels_on[7] = False
mysetting.gain = 3
myAwsomeHolyShitImDyingForThisDevice.writeSetting(mysetting)
returns: True or False
```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment