From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Binding to LabView from c/c++

Hello, group.

I would like to bind to a LabView application/vi that acts as a server, by
writing a client in C/C++. How do I do it in C/C++? LabView doesn't create
type library, so is there another way of binding to an OLE server?

Thank you,

Boaz.

--
____________________________________________________________________________
________________________________________________
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you re
ceived
this in error (whether inadvertently addressed to you, or if forwarded to
you by a recipient), please contact the sender and delete the material from
any computer.
0 Kudos
Message 1 of 5
(6,604 Views)
You can't write VIs to create your own OLE server. Instead, LabVIEW 5.0
itself
is an Automation Server. A type library is installed that allows you to get
interfaces
to Applications and VIs. This is similar to programmatically controlling LV
on
the diagram with VI references and property nodes.

Any environment that provides COM support (Visual C/C++, VB, VJ++) will be
able to
get interfaces to VIs. So you can write a set of VIs and call them from
C/C++ passing
parameters to and fro...

There should be some examples of this somewhere....

Ray

Boaz Sommer wrote in message <7h9855$mj9$1@news.netvision.net.il>...
>Hello, group.
>
>I would like to bind to a LabView application/vi that acts as a server, by
>writing a client in C/C++. How do I do it in C/C++? LabView doesn't cre
ate
>type library, so is there another way of binding to an OLE server?
>
>Thank you,
>
> Boaz.
>
>--
>___________________________________________________________________________
_
>________________________________________________
>The information transmitted is intended only for the person or entity to
>which it is addressed and may contain confidential and/or privileged
>material. Any review, retransmission, dissemination or other use of, or
>taking of any action in reliance upon, this information by persons or
>entities other than the intended recipient is prohibited. If you received
>this in error (whether inadvertently addressed to you, or if forwarded to
>you by a recipient), please contact the sender and delete the material from
>any computer.
>
>
>
0 Kudos
Message 2 of 5
(6,604 Views)
I work with National Instruments in helping people with their
instrumentation needs. We provide several examples in regards to OLE and
Labview.

When in need of example programs, please visit our support page at:
www.natinst.com/support/
There you will find pull-down menus asking for the specific software you
are using and what type of support you are needing (Examples,
Application Notes, or FAQ). For the search field, type in ole and
labview.

If you have any questions, feel free to contact myself at 1-800-433-3488
x30133.

Regards,
Monico Reyna
Technical Engineer
National Instruments
1-800-433-3488 x30133
monico.reyna@natinst.com

In article ,
"Ray" wrote:
> You can't write VIs to create your own OLE server. Instead, LabVIEW
5.0
> itself
> is an Automation Server. A type library is installed that allows you
to get
> interfaces
> to Applications and VIs. This is similar to programmatically
controlling LV
> on
> the diagram with VI references and property nodes.
>
> Any environment that provides COM support (Visual C/C++, VB, VJ++)
will be
> able to
> get interfaces to VIs. So you can write a set of VIs and call them
from
> C/C++ passing
> parameters to and fro...
>
> There should be some examples of this somewhere....
>
> Ray
>
> Boaz Sommer wrote in message <7h9855$mj9$1@news.netvision.net.il>...
> >Hello, group.
> >
> >I would like to bind to a LabView application/vi that acts as a
server, by
> >writing a client in C/C++. How do I do it in C/C++? LabView doesn't
create
> >type library, so is there another way of binding to an OLE server?
> >
> >Thank you,
> >
> > Boaz.
> >
> >--
>
>_______________________________________________________________________
____
> _
> >________________________________________________
> >The information transmitted is intended only for the person or entity
to
> >which it is addressed and may contain confidential and/or privileged
> >material. Any review, retransmission, dissemination or other use of,
or
> >taking of any action in reliance upon, this information by persons or
> >entities other than the intended recipient is prohibited. If you
received
> >this in error (whether inadvertently addressed to you, or if
forwarded to
> >you by a recipient), please contact the sender and delete the
material from
> >any computer.
> >
> >
> >
>
>


--== Sent via Deja.com http://www.deja.com/ ==--
---Share what you know. Learn what you don't.---
0 Kudos
Message 3 of 5
(6,604 Views)
I work with National Instruments in helping people with their
instrumentation needs. We provide several examples in regards to OLE and
Labview.

When in need of example programs, please visit our support page at:
www.natinst.com/support/
There you will find pull-down menus asking for the specific software you
are using and what type of support you are needing (Examples,
Application Notes, or FAQ). For the search field, type in ole and
labview.

If you have any questions, feel free to contact myself at 1-800-433-3488
x30133.

Regards,
Monico Reyna
Technical Engineer
National Instruments
1-800-433-3488 x30133
monico.reyna@natinst.com

In article ,
"Ray" wrote:
> You can't write VIs to create your own OLE server. Instead, LabVIEW
5.0
> itself
> is an Automation Server. A type library is installed that allows you
to get
> interfaces
> to Applications and VIs. This is similar to programmatically
controlling LV
> on
> the diagram with VI references and property nodes.
>
> Any environment that provides COM support (Visual C/C++, VB, VJ++)
will be
> able to
> get interfaces to VIs. So you can write a set of VIs and call them
from
> C/C++ passing
> parameters to and fro...
>
> There should be some examples of this somewhere....
>
> Ray
>
> Boaz Sommer wrote in message <7h9855$mj9$1@news.netvision.net.il>...
> >Hello, group.
> >
> >I would like to bind to a LabView application/vi that acts as a
server, by
> >writing a client in C/C++. How do I do it in C/C++? LabView doesn't
create
> >type library, so is there another way of binding to an OLE server?
> >
> >Thank you,
> >
> > Boaz.
> >
> >--
>
>_______________________________________________________________________
____
> _
> >________________________________________________
> >The information transmitted is intended only for the person or entity
to
> >which it is addressed and may contain confidential and/or privileged
> >material. Any review, retransmission, dissemination or other use of,
or
> >taking of any action in reliance upon, this information by persons or
> >entities other than the intended recipient is prohibited. If you
received
> >this in error (whether inadvertently addressed to you, or if
forwarded to
> >you by a recipient), please contact the sender and delete the
material from
> >any computer.
> >
> >
> >
>
>


--== Sent via Deja.com http://www.deja.com/ ==--
---Share what you know. Learn what you don't.---
0 Kudos
Message 4 of 5
(6,604 Views)

Wow...incredible how time flies.

0 Kudos
Message 5 of 5
(2,564 Views)