LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

add vb code to labview

I've created a labview application that I'd like to add some VB code to. Is it possible to run vb code from labview or do I need to convert the vb to labview?

 

I've attached the vb code.

0 Kudos
Message 1 of 5
(4,273 Views)
You need to create a dll or .NET assembly from the VB code (depending on the version of VB being used). Converting to LabVIEW would of course, be another option.
0 Kudos
Message 2 of 5
(4,264 Views)
That particular code is VB.NET so you'd need to create a .NET assembly, and use the .NET functions in LabVIEW to call the assembly. However, some of the code may give you issues, such as the stuff dealing with Forms.
0 Kudos
Message 3 of 5
(4,245 Views)
do you have any examples that you can show me, how to use the .NET assembly to run this vb code?
0 Kudos
Message 4 of 5
(4,229 Views)

Well, you first have to compile the code into a .NET assembly. Can't do this with LabVIEW. Smiley Wink You'll need to get yourself VB.NET. You can get the free Express editions from Microsoft. Then, as far as using the .NET assembly in LabVIEW, there are examples that ship with LabVIEW.

 

I am assuming you know how this particular assembly is supposed to be used. If not, then you first need to figure that out, but for this you'd need to go to where you got that source code. 

0 Kudos
Message 5 of 5
(4,227 Views)