Jump to content

TFisherIRA

Members
  • Posts

    9
  • Joined

  • Last visited

Reputation Activity

  1. Like
    TFisherIRA reacted to Fausto in DOut() DigitalPortType USB-ERB24 issue   
    MCC UL Help

     
  2. Like
    TFisherIRA got a reaction from Fausto in DOut() DigitalPortType USB-ERB24 issue   
    I resolved the issue by just using DigitalPortType.FirstPortA for bitValues 0-7 and then using DigitalPortType.FirstPortB for bitValues 8-11 when using the Dout() command.
      Private Sub OutputValue(value As Integer)         Dim ULStat As ErrorInfo         Dim PortType As DigitalPortType         ' Determine the port type based on the state of CheckBox1         If CheckBox1.Checked Then             PortType = DigitalPortType.FirstPortB         Else             PortType = DigitalPortType.FirstPortA         End If         ' Output the value using DOut(), converting it to UShort         ' Parameters:         '   PortType : The output port type         '   DataValue: The value to be written to the port         ULStat = DaqBoard.DOut(PortType, CUShort(value))         If ULStat.Value <> ErrorInfo.ErrorCode.NoErrors Then             MessageBox.Show("Error occurred while outputting value: " & ULStat.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)         End If     End Sub
  3. Like
    TFisherIRA reacted to Fausto in MccDaq.dll on Windows XP   
    Hello @TFisherIRA.
    After installing the MCC DAQ software, reference the legacy Visual Basic 6.0 examples in the C:\Users\Public\Documents\Measurement Computing\DAQ\VBWIN directory.
    Additional VB6 examples:
    https://files.digilent.com/#downloads/example_programs/Universal_Library_Apps_and_App_Notes/VB6/
    Regards,
    Fausto
  4. Like
    TFisherIRA reacted to Fausto in USB-TC Analog Data Acquisition   
    Hello @TFisherIRA.
    Which version of Visual Basic are you using, i.e. VB6, VB.NET?
    Use the MCC UL Help as a reference guide for supported functions.

     

     

     
    MCC UL examples are located in the C:\Users\Public\Documents\Measurement Computing\DAQ directory.

     
    Regards,
    Fausto
     
×
×
  • Create New...