Skip to content

1608GX #7

Description

@dassishot

First, thank you for this development.

Well I have a running application in C # and was trying to implement the same project in python, however've been trying to perform the same task and have received "Send failed, possibly wrong command?".

Another problem I have, I would be with the answer in relation VOLT because whenever I try something like "I {}: VALUE / VOLT or AI {}: VALUE" he returns me the same result.

There anything I can do to fix this?

I appreciate your attention.

Device = daqflex.USB_1608GX()

Device.send_message("AI:CHMODE=SE")
Device.send_message("AI:CAL=ENABLE")
Device.send_message("AI:SCALE=ENABLE")
Device.send_message("AI{6}:RANGE=BIP10V")
Device.send_message("AI{7}:RANGE=BIP10V")

temperature = Device.send_message ("?AI{6}:VALUE/VOLTS")
pressure = Device.send_message ("?AI{7}:VALUE/VOLTS")

f = open('output.txt', 'w')
f.write(u"Temperatura: %s \n" % temperature)
f.write(u"Pressao: %s" % pressure)
f.close()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions