‎09-11-2007 02:58 PM
I have another software (INCA from company ETAS), which I would like to control from LabView. INCA offers communication via COM (DCOM). Therefore, I need some OOP language. Is it possible to write some OOP script in LabView 7.1.?
I wrote already some scripts in Visual Basic (Visual Studio 2005). Is some possibility to call these scripts from LabView?
‎09-12-2007 01:23 AM
If I understand you correctly, you want to call some code written in some text-based prog language into (from) LabVIEW, right... ?!
@Ondrej7 wrote:
Is it possible to write some OOP script in LabView 7.1.?
If it is the other way that you want to "write" some OOP script in LabVIEW, I think you cannot; because all you can do in LV is "wire", NOT ""write" anything...
But, there is scripting in LV, which means that you can play with some hidden options & use some good features (not tested by NI completely, nor supported by them)...
Please make us clear to help you more.
See reply 7 in the below thread for more details regarding scripting in LabVIEW.
http://forums.ni.com/ni/board/message?board.id=170&message.id=79502
‎09-12-2007 03:40 AM
‎09-12-2007 04:49 AM
Hi, thanks for your answers.
I need to build a communication between software INCA and LabView (data exchange). So I'm looking for the ways how to do it.
1) my first idea was that I will write an script with OOP language and convert this script to dll and the dll I can call from LabView. I started with Visual Basic (it was the simplest way) and I used the VB with .NET framework. My program (as windows application) works and I can control INCA. However, I can ´t find out, how to convert the program to a dll. In VB, there is also possibility to create (write) a "class library". I found out that LabView could also call class libraries. However, it never works in my case.
(I am sorry, I am not familiar with OOP programming and I have just started because of this problem. So may be some expressions are not correct)
2) So next I'm looking, if I can create in LabView some VI, which could communicate with INCA. But as I read your answers, this is probably not possible..
Pls let me know, if I should explain something more clearly.
thanks
‎09-12-2007 05:40 AM
‎09-12-2007 05:52 AM
‎09-12-2007 09:05 AM
Ok, I understand that LabView can communicate with COM but I don´t know how to do it. I need to create a classes and object and everthing what I tried failed.
I already traied to create a dll from VB.net according description, which you mentioned. But such created dll I´m not able to call from LabView.
‎09-12-2007 10:45 AM
‎09-12-2007 11:21 AM
Hi Brian,
I called the dll using the Call Library Function Node. I think there is problem, that I cannot specify the function name (LabView cannot find which function are available in the dll). So I cannot start the VI (error: Call Library Function Node: no function specified).
I have some experience with calling dlls in this way (I didn't create these dlls) and it always worked.
FYI: my dll was created from VB.net with the steps describe above. I'm not sure, if it is a standard dll, which can be called with the Call library function node.
Thanks for any hint
Ondrej
‎09-13-2007 04:10 AM