Jump to content

Nihaal

Members
  • Posts

    3
  • Joined

  • Last visited

Nihaal's Achievements

Newbie

Newbie (1/4)

0

Reputation

  1. Hi, that makes sense. For my program, I first take the output (high signal) and then once that's sent out, another device sends a High Signal back to the USB-1024LS device(input). So I can't really initialize it once as it keeps changing based on the states. When I do test it, it fails and doesn't give me expected results, also the voltage increases to 3.3V instead of going down to 0V What would a good way to fix/initialize this be?
  2. Hi, Thank you for your reply. So would you recommend switching "d_bit_in" with "d_in" and "d_bit_out" with "d_out"? Where can I find documentation for the MCCULW library? Best Nihaal
  3. Hi I'm trying to write a program in python that takes in the input from the DIO port B0(pin 32), when I do this it gives me an error. Below is the Pinout for the MC USB-1024LS DAQ device. I downloaded the MCCULW package(v1.0.0) using pip from the MCCDAQ GitHub. These are the packages I imported; When I configure the port as PORT A with Pin A0 (pin 21), it works alright [port_name = DigitalPortType.FIRSTPORTA], but as soon as I configure the port as PORT B[port_name = DigitalPortType.FIRSTPORTB] with Pin B0 (pin 32), it gives me "Error 11: Invalid digital port number". Attaching screenshot of code for DigitalPortType.FIRSTPORTA and DigitalPortType.FIRSTPORTB below. My guess is that FIRSTPORTB is not the correct way to configure Port B on the board. Also attaching the enum class that I imported to call those functions below; To check if Port B is not supported by the hardware, I tested it with DAQami application by Digilent, and the output is as expected [I used a switch and toggled the input to High and Low]. Below is the screenshot for that as well. Could someone help me out on this?
×
×
  • Create New...