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. ...@@ -14,10 +14,8 @@ This dll requires the following packages to work fine.
### Prerequisites ### 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 pip install pythonnet
``` ```
...@@ -43,28 +41,41 @@ First of all, you should plug your device into your PC, and also install `ST mic ...@@ -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 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: 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 # status
myAwsomeHolyShitImDyingForThisDevice.name myAwsomeHolyShitImDyingForThisDevice.getStatus()
myAwsomeHolyShitImDyingForThisDevice.channelsnumber return:
myAwsomeHolyShitImDyingForThisDevice.info {"mode":dataGathering_flag, "cnt":sample_count, "buff_len":newData_count}
myAwsomeHolyShitImDyingForThisDevice.ReadStatus()
# info
myAwsomeHolyShitImDyingForThisDevice.getInfo()
returns:
{"name":device_name, "version":firmware_version, "id":unic_ID, "flash":flash_data}
# get data # get data
myAwsomeHolyShitImDyingForThisDevice.Start() myAwsomeHolyShitImDyingForThisDevice.start()
myAwsomeHolyShitImDyingForThisDevice.GetData() myAwsomeHolyShitImDyingForThisDevice.getData()
myAwsomeHolyShitImDyingForThisDevice.Stop() myAwsomeHolyShitImDyingForThisDevice.stop()
myAwsomeHolyShitImDyingForThisDevice.Leadoff()
# write setting # 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