-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Driver does not support FP-25 air quality monitors #30
Comments
Can you add a command = '{addr}\r'.format(addr=self.address)
line = self._write_and_read(command, retries)
spl = line.split()
address, values = spl[0], spl[1:]
++print(values) It looks like this flowmeter may be returning a date, which I haven't seen before. unfortunately, I don't have one at hand to test. |
Also, what's the serial number? Alicat tech support can tell you exactly what that model will output over serial. Sometimes @marinapalese lurks in this repo, also. |
Sn: 278608
It's a FP-25BT
…On Fri, Dec 2, 2022, 13:23 Alex ***@***.***> wrote:
Also, what's the serial number? Alicat tech support can tell you exactly
what that model will output over serial. Sometimes @marinapalese
<https://github.com/marinapalese> lurks in this repo, also.
—
Reply to this email directly, view it on GitHub
<#30 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALQY2DIFVUNICBEVMJBWEN3WLJSDPANCNFSM6AAAAAASRESRMU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
it doesn't support just reading the outputs? isn't it a mass flow meter? |
OK, that's interesting. Didn't even know this device existed! This repository does not support anything other than the M- and MC-series differential pressure flow meters/controllers. I would merge a PR extending to other devices, but cannot provide support for other devices we don't have. The manual is provided here: https://documents.alicat.com/manuals/Alicat_FP-25_Calibrator_Manual.pdf Page 42 lists the serial communications format. Note the date/time at the front of the data frame, and pressure source/humidity at the end. Those are what's confusing the existing driver, which does not know about them. |
I have been using the serial lines directly before using this library but the putout shifts with time. Thank you for the help. |
I'm sorry I can't help directly. I think you have a couple of options. I'm happy to review / merge any code generated by the above strategies. Good luck :) |
I will probably just make my own library for the project I am working on, was just trying to use what was already available. Or maybe I will do as you suggest and branch this library for my project, it is an in-house script so I have no plans to sell or distribute it. |
As for the device, we just ordered these maybe 2 years ago, and are the standard we have in the office. I'm surprised you are unaware of them. Are these some kind of special meters? |
After adding the print line I get this now: the string is output but so is the error about it not being formated right |
I don't work for Alicat, we just buy (some of) their equipment. We use another vendor for humidity logging. |
Oh, my bad. They linked to you so I thought you worked for them. |
I got it to work, somewhat, but commenting out the lines 114-127. |
Use the manual (or screenshot I posted above) to update this code: Line 40 in 5cbe7ae
|
Pushing a stable version of the Alicat-Python was actually my last hurrah with Alicat but I'm still around and happy to support the library as I can. Bill Nick at Alicat is currently the caretaker for the program though in case issues like this pop up on the future. As Alex has said, updating the self.keys list to include the time and date information should resolve this. Alternatively, the other library should dynamically retrieve the keys when the program does initialization for the first time for the device. |
Again, thank you for all your help. |
All I am trying to do is get a reading:
from cal import Old_tables
from alicat import FlowMeter
flow = FlowMeter(port="/dev/ttyUSB0")
value = flow.get()
print(str(value))
and I get the error message:
Traceback (most recent call last):
File "test.py", line 6, in
value = flow.get()
File "/home/pi/.local/lib/python3.7/site-packages/alicat/serial.py", line 127, in get
for k, v in zip(self.keys, values)}
File "/home/pi/.local/lib/python3.7/site-packages/alicat/serial.py", line 127, in
for k, v in zip(self.keys, values)}
ValueError: could not convert string to float: '2022-12-01'
The text was updated successfully, but these errors were encountered: