This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| In [1]: n = 10000000 | |
| In [2]: x = rand(n) | |
| In [3]: X = fft(x) | |
| In [4]: rms_flat(x) | |
| Out[4]: 0.57731639149367697 | |
| In [5]: rms_flat(ifft(X)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Text; | |
| using System.IO.Ports; | |
| namespace Modbus_Poll_CS | |
| { | |
| class modbus | |
| { | |
| private SerialPort sp = new SerialPort(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import time, signal | |
| import paho.mqtt.client as mqtt | |
| client = None | |
| mqtt_looping = False | |
| class mqtt_client_program(): | |
| def __ini__(self,): | |
| pass | |
| def on_connect(self,mq, userdata, rc, _): |