找回密码
 注册
查看: 5513|回复: 4

Logging multiple units?

[复制链接]

1

主题

1

回帖

19

积分

Newbie

积分
19
发表于: 25-06-2019 14:21:23
| 显示全部楼层 |阅读模式
Hello,

I recently purchased the CT-2. It works well. I am very pleased with it.

I would like to use one PC to log data from 10 CT-2 units at the same time.
Can the KotomiApp do this?
If not, how can this be accomplished?
Can you expose a python library so that I can write my own scripts to handle the data?

回复

使用道具 举报

1

主题

45

回帖

207

积分

Moderator

积分
207
发表于: 26-06-2019 07:23:35
| 显示全部楼层
Yes, you can open multiple KotomiApps to different CT-2s.

If you're not satisfied with opening multiple apps, ask me for protocol.
回复

使用道具 举报

1

主题

1

回帖

19

积分

Newbie

积分
19
 楼主| 发表于: 03-07-2019 18:24:51
| 显示全部楼层
May I please have the protocol?
回复

使用道具 举报

1

主题

45

回帖

207

积分

Moderator

积分
207
发表于: 07-07-2019 08:49:50
| 显示全部楼层
For reading current & voltage, sending "Get Meter Data" in ASCII to the virtual usart port. Baudrate can be anything. It will sends you back a data packet a couple of dozens of milliseconds later, with data structure:
    public class USBMeterData_t
    {
        [FieldOffset(0)]
        public float Voltage;
        [FieldOffset(4)]
        public float Current;
        [FieldOffset(8)]
        public float Power;
        [FieldOffset(12)]
        public float VolatgeDP;
        [FieldOffset(16)]
        public float VoltageDM;
    }
回复

使用道具 举报

0

主题

1

回帖

4

积分

Newbie

积分
4
发表于: 12-07-2019 11:26:21
| 显示全部楼层
I wrote a program that can read the data in Python: https://gitlab.com/bobobo1618/kt001-reader/tree/master
It works perfectly on Linux, I haven't tried it on Mac or Windows but it should work there too.

It logs to a binary format right now but you can easily add CSV or JSON or something.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archive|手机版|小黑屋|AVHzY Forum

GMT-8, 19-04-2024 12:45 , Processed in 0.092289 sec., 16 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

Release 20231001, © 2001-2024, Tencent Cloud.

MultiLingual version, Rev. 4300, © 2009-2024 codersclub.org

快速回复 返回顶部 返回列表