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
The board tests fine in instacal. typeVal returns 118. If that means anything.
Question
Rob R
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
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
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 accountSign in
Already have an account? Sign in here.
Sign In Now