ftrobopy - problem with voltage inputs in TransferArea Mode
Verfasst: 12 Jan 2021, 18:17
Hi @Torsten,
I found some problem with ftropbopy 1.94 - it works only with outputs. When I tried to read Input value it returns 0. My test code is simple:
Console output:
By the way, If I use “use_TransferAreaMode=False” it works fine:
Is there any problems with Input voltage reading in current ftrobopy release (1.94) ?
I found some problem with ftropbopy 1.94 - it works only with outputs. When I tried to read Input value it returns 0. My test code is simple:
Code: Alles auswählen
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
import ftrobopy
import time
txt = ftrobopy.ftrobopy('localhost', use_TransferAreaMode=True)
inp = txt.voltage(1)
for x in range(5):
inp_voltage = inp.voltage()
print("inp_voltage: ", inp_voltage)
time.sleep(1.0)
Code: Alles auswählen
$ python test-02.py
IO-1
StartTxtDlPrg-4 Thrd-Run
Connected to TXT TransferAreaMode firmware version not detected
inp_voltage: 0
inp_voltage: 0
inp_voltage: 0
inp_voltage: 0
inp_voltage: 0
MenueBase::Finished: ROBOProDisplayPseudoMenue not active or was activated by ROOT
By the way, If I use “use_TransferAreaMode=False” it works fine:
Code: Alles auswählen
$ python test-02-a.py
Connected to TX2013 firmware version 4.6.6
inp_voltage: 4220
inp_voltage: 4227
inp_voltage: 4229
inp_voltage: 4225
inp_voltage: 4222
MenueBase::Finished: ROBOProDisplayPseudoMenue not active or was activated by ROOT