LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

interfacing LabVIEW 7.0 with VB.NET

Ok so here is the problem. I have a program written in VB.NET that will use Microsoft Access 2000 to look up and display information from a database for the user. It is very simple code however I need this application to be able to interact with a LabVIEW 7.0 program. The goal is for the user to interface only with .NET but have a button that starts the LabVIEW program and then compares the results from the LabVIEW test with those stored in the database. Is it possible for VB.NET to communicate with LabVIEW 7.0 or should I try a differnt method?

Any information would be very helpful. Thank you,

xc_smooth
0 Kudos
Message 1 of 6
(3,338 Views)
Sure you can do this. THe best way would be to create a DLL in LV that you can call directly from VB. You can pass inputs and outputs to and from the DLL also.
You will need the application builder toolkit and be sure to define your function prototype the same way you do in VB. Hope this helps.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 2 of 6
(3,338 Views)
Try using code similar to this:

Private Declare Sub FUNCTIONNAMEINDLL Lib "C:\TEMP\DLLPATH.DLL" (Function Prototype)

This will allow you to call a specific function in the DLL.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 3 of 6
(3,338 Views)
Can you clarify this more? We don't know how to even write a dll yet.
0 Kudos
Message 4 of 6
(3,338 Views)
Hello,

Thank you for contacting National Instruments.

You can create a DLL in LabVIEW from a VI. To do this simply:
Click Tools >> Build Application or Shared Library.
Select "Shared Library" from the "Build Target" pull down menu.
Select a target name, destination directory, and a support file directory.
Click on the "Source Files" Tab.
Select "Add Top Level VI"
Then select the VI you would like to make into a DLL.

Let me know if I can be of more help.

Sean C.
Applications Engineer
National Instruments
0 Kudos
Message 5 of 6
(3,338 Views)
Sounds simple but what about passing array and clusters?
Don't you need the Labview memory functions for this and what about memory alignment?.

When are we going to get sample code to cover these points.
Thanks
Colin
0 Kudos
Message 6 of 6
(3,338 Views)