LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing front Panel in VB

Hello
I want to access the LabVIEW front panel in VB how it is possible ?

0 Kudos
Message 1 of 8
(3,431 Views)

hi there

LV acts as an ActiveX server, there should be a LV COM-object registered on your computer. you should be able to open a reference to this object and from there on to VIs and controls.

 

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 2 of 8
(3,425 Views)
You also need to enable the ActiveX server in the options dialog.

___________________
Try to take over the world!
0 Kudos
Message 3 of 8
(3,421 Views)
There's an Excel example that ships with LabVIEW that you can take a look at. It's in the "C:\Program Files\National Instruments\LabVIEW 7.1\examples\comm" directory. Open the spreadsheet called "freqresp.xls".

Also, attached is a crude VB example done is VS.NET 2003 (you didn't specify which VB version)

0 Kudos
Message 4 of 8
(3,408 Views)
Can you please send/post the API?
I will be using VB.net 2003 with LabView 8.0 for CF 6004.


0 Kudos
Message 5 of 8
(3,361 Views)


@Mayu wrote:
Can you please send/post the API?
I will be using VB.net 2003 with LabView 8.0 for CF 6004.

In LV 8.0 there is a class browser which shows the object hierarchy for LV. I don't think there is a proper displayable version anywhere.

If you're using a PDA, however, this won't help you, because an LV PDA application would not have this interface. To pass data between programs written in different languages you will probably need to either create a DLL and call it from your LV program or create a protocol and communicate between the programs using TCP.


___________________
Try to take over the world!
0 Kudos
Message 6 of 8
(3,356 Views)

Actually, can I go without using LabView and just directly call the dll from VB.net?

Can I have the API for NiDAQmx.dll?

If there are class libraries already written for Compact Framework (PPC 2003 or Windows Mobile 5.0), that'll be great.

 

0 Kudos
Message 7 of 8
(3,353 Views)

I haven't done any DAQ work on the PDA, so I don't know exactly how that works, but I expect you should be able to do this. I don't know if the function definitions are published anywhere (I would try the Measurement Studio boards), but even if not, you can probably go into the VIs (or maybe the equivalent functions if you have MS) and see how the DLL functions are called.

Note that there may be some differences in the way the DAQ DLLs for the PDA, so I would test this before building a whole application.


___________________
Try to take over the world!
0 Kudos
Message 8 of 8
(3,350 Views)