11/12/2023 0 Comments Gmc data logger pro registerIn the main of the plot program it is this line:ĭata = np.genfromtxt(logfile, delimiter=",", converters = ".format(x.shape, y.shape)) The log file must have precisely(!) this format: 15:51:52, 23 The linkage allows to have a consistent connection to, in this case, "/dev/gqgmc", irrespective of other devices. Like you can have different numbers at the COM ports, so one can have different numbers at the "dev/ttyUSBX" designation, which becomes relevant, when you have multiple serial devices connected. ![]() Instead of "/dev/anything" as in Linux, under Windows you would use "COMX" with X any number from 0(?),1,2. The "using serial communication via /dev/gqgmc (linked to /dev/ttyUSB0" thing is about the way Linux handles what is called "COM-Ports" under Windows. In short, byte sequences are handled as strings in P2 and as byte sequences in P3. I did explain some of the issues here in reply #3: The error you are seeing is a consequence of some of the differences. If you are not very(!) experienced in Python, I'd discourage the use of my Python2 version program and run it in Python3. My statements are "stuff-a-hobbyist-says" and not in any way professional. What does that mean? Its written on top as commentary: "using serial communication via /dev/gqgmc (linked to /dev/ttyUSB0" If i change the baudrate to 57600 even getVER(ser) does not work. I guess its some kind of data stream error. This Error comes from every other function instead getVER(ser). # into a python list of 256 int values, and returns the list # This routine converts the 256 character long string TypeError: ord() expected string of length 1, but int found Import serial # the communication with the serial portįile "C:\Users\Chaosuser\Desktop\GeigerLog\geiger_basic.py", line 134, in getCFG In its simplest, stripped down version, this is a fully functional Python data logger: ![]() ![]() Guidance for programming is acknowledged to be taken from Phil Gillaspy's C++ code for Linux, also found in the GQ download page ( ) I programmed a Python script to access my new GMC-300Eplus using Linux Ubuntu Mate 16.04. Python Script to log/plot data from Geiger Counter GQ Electronics Technical Support Forum - Python Script to log/plot data from Geiger Counter
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |