Jump to content

Jon Morris

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by Jon Morris

  1. Here is what I found about controlling the acquisition rate. 

    1. Instacal must be used to set the maximum rate. This also sets the onboard filtering.
    2. LabVIEW must be completely closed and then relaunched in order to "use" the new acquisition rate
    3. The ULx timer vi may be used to run at a lower than max acquisition rate.
    4. The calculation 1/(1/(max Hz) + 640us) sets the max rate the timer vi can use for a single channel.  i.e. 1ch@ 3750Hz => 1103Hz is the max rate the ULx timer vi can use.
  2. 19 hours ago, Fausto said:

    Hello @Jon Morris.

    With a USB-2408 (and USB-2416 Series), a user must configure the channel types (whether it be voltage and/or temperature) in InstaCal.  Take a look at the LabVIEW example attached to this Reference Document.  The example can be used to measure both voltage and temperature.

    https://digilent.com/reference/daq-and-datalogging/documents/usb-2416-usb-2408-with-labview

     

    Regards,

    Fausto

    Thanks for the reply.  We did figure out to use AI voltage read rather that temperature.  However, we missed controlling the HW clock acquisition rate through LV rather than Instacal.

    We are only using one channel and so would like to get the maximum rate of 3750 Hz.  The vi errors out indicating the max rate for this device is 378 Hz.  Any suggestions here?

    USB2408 Clock Error.JPG

    USB-2408 FP.JPG

  3. Using VB6 on a legacy project with MCC USB-ctr04.  Migrating from XP to Win7.

    ULStat = cbDConfigPort(mlngBoardNum, PortNum, Direction) returns a value of 1.  Error checking shows a dialog saying "invalid board number".  Instacal identifies the board as 0 yet I still get this error.  Any suggestions?

    Relevant Code:

    ' configure and initialize DIO/ Timer board
        ' declarations
        Dim ReportError As Long, HandleError As Long
        Dim PortNum, Direction, ULStat As Long
        ReportError = PRINTALL
        HandleError = DONTSTOP
        PortNum = 1
        Direction = DIGITALOUT
        ' configure error handling
        If gblnSimulateDAQ = False Then
            ULStat = cbErrHandling(ReportError, HandleError)
            If ULStat <> 0 Then Stop
            ' configure port as digital outputs
            ULStat = cbDConfigPort(mlngBoardNum, PortNum, Direction)
            If ULStat <> 0 Then End
            ULStat = cbDOut(mlngBoardNum, PortNum, 7)
            If ULStat <> 0 Then Stop
            ULStat = cbPulseOutStop(mlngBoardNum, 0)
            If ULStat <> 0 Then Stop
        End If

    Thanks for your assistance,

    Jon Morris

    AVID Innovation

×
×
  • Create New...