Simple script for transferring serial data from Picarro gas composition sensor over UDP
Windows Defender is flagging some install attempts as malware. There are at least two ways to get around this: A. Just run the .py file from terminal or IDE and start it manually each time (safer and recommended option) B. Take the original .py file and recompile it on your own device using pyinstaller. The command to run is: pyinstaller -F picarro_serial_udp.py
- Attach a null modem 9-pin serial cable to the back of the Picarro analyzer between the COM1 and COM2 ports
- Start the picarro_serial_udp.py to confirm that the program is properly collecting data
FOR AUTOMATIC STARTUP
- Run the included .exe file and start it to ensure it has the same output as the .py file (the .py file will need to be stopped so that the serial port is free)
- In file explorer, navigate to C:\Users\username\Appdata\Roaming\Microsoft\Start Menu\Programs\Startup
- Place the .exe file in the Startup folder
- Restart the machine to ensure that data is collected and transferred properly
TO EDIT AUTOMATIC STARTUP FILE
- Remove file from Startup folder
- pip install pyinstaller
- Edit .py file
- pyinstaller picarro_serial_udp.py
- .exe file can be found in 'dist' folder in same directory