Jump to content
  • 0

A USB/PMD-1024HLS was not assigned to Board 0


Rob R

Question

I get this error message when trying to run the sample code for this device.  The board number assigned in instacal is 0.  If I change it to 1, I have the same problem:

Here is the offending code snippet:

        BoardNum = 0
        DaqBoard = New MccDaq.MccBoard(BoardNum)   '<======this is the default board number
        'change it to what InstaCal has assigned for your USB/PMD-1024HLS

        ULStat = DaqBoard.BoardConfig.GetBoardType(typeVal)  ' Get the typeVal property from the MccBoard object
        If typeVal <> 0 Then
            If typeVal <> 127 Then  'Code for USB/PMD-1024HLS is 127
                MyMessage = "A USB/PMD-1024HLS was not assigned to Board " & BoardNum & " in InstaCal." & VB.vbLf _
                        & "Please run InstaCal to verify the board number and/or " & VB.vbLf _
                        & "change BoardNum = " & BoardNum & " in the frmDataDisplay_Load event" & VB.vbLf _
                        & " to the correct board number.  Then re-run this program."
                r = MsgBox(MyMessage, vbExclamation, "USB/PMD-1024HLS not detected.")
                End
            End If
        End If

image.png.b151cae2bbaaade2596739659a9ded24.png

The board tests fine in instacal.  typeVal returns 118.  If that means anything.

What's wrong?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

That example was written for a specific model device, the USB/PMD-1024HLS

Per InstaCal the device you have is a USB-1024LS - NO  H

This is why you get that error.  It is also why you get a device ID of 118 (Hex 76)  the test program was written for the HLS.  It's device ID is 127 (HEX 7F)

If you want to use the above syntax, 

change

 If typeVal <> 127 Then  'Code for USB/PMD-1024HLS is 127

to

 If typeVal <> 118 Then  'Code for USB/PMD-1024LS is 118

Regards,

Jeffrey

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...