Jump to content

Chandana Narayan

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by Chandana Narayan

  1. Hi, I am using the USB daq 1024 LS and the time taken to read all ports once is around 400+ ms. Is there any way to reduce this time for one cycle?
  2. I was trying to read values from Ports A, B and C using the DBitIn program from the C library example code provided. Configuring the port is done using this function. err = getDioInfoFirstSupportedPortType(daqDeviceHandle, &portType, portTypeStr); Here by default the portType is read as FIRSTPORTA. So I have externally given portType values as FIRSTPORTB / FIRSTPORTCL/ FORSTPORTCH to get the ports configured. To read the bits,this function is used,err = ulDBitIn(daqDeviceHandle, portType, bitNumber, &data[bit_counter]). My requirement is to read all the port values at once. So to do that, I am first configuring FIRSTPORTA, then reading its bits. Later configuring FIRSTPORTB, then reading. Similarly for PORTC. Is this the only way to do it, or any better way to read all at once? Doing it port to port is tedious. Attaching my code for reference , how I implemented it. DBitIn.c
  3. Hi, I was trying to read digital input values using sample code provided for the USB 1024LS DAQ. The example code by default only reads the inputs from Port A (8 pins). I would like to read inputs from Port B and Port C pins as well. Guidance regarding what steps should be followed / changes should be made to sample code will be of great help !!
×
×
  • Create New...