Jump to content

Translating VB Code to LabView


Recommended Posts

I'm Building a production tester that uses a Melexis chip programmer. It came with and Active X toolkit but all the examples are written in VB.

I was able to interpret all the VB code except one part.

The code below scans for connected devices and returns a "Collection pointer"

Sub CreateDevice()

Dim PSFMan As MLX90251PSFManager, DevicesCol As ObjectCollection, I As Long

On Error GoTo lError

Set PSFMan = CreateObject("MPT.MLX90251PSFManager")

Set DevicesCol = PSFMan.ScanStandalone(dtSerial)

If DevicesCol.Count <= 0 Then

MsgBox ("No PTC-04 programmers found!")

Exit Sub

End If

' Dev is a global variable of type MLX90251PSFDevice

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.