LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

cin node and c++ code

Hi.


I need to make a LabVIEW program to call and use c++ code. Not only calculate numbers using the c++ code, the LabVIEW program needs to send boolian signals and be able to talk to the c++ code. Such things possible? Any good article or information to teach how to do it?


Thank you.


Airo
0 Kudos
Message 1 of 3
(3,057 Views)
I'm not sure why it shouldn't be possible. At least as long as you are somewhat C savy and know how to configure your C compiler and linker to create specific output. However to be honest I think CIN programming has had its days. It does not really have that many advantages anymore but definitely some disadvantages above calling an external shared library through the Call Library Node.

As a reference about CIN or DLL usage in LabVIEW I recommend the online help documentation Using External Code in LabVIEW accessible through Help->Shearch the LabVIEW Bookshelf.

Rolf K
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2 of 3
(3,057 Views)

Airo;

Check these application notes:

An Overview of Accessing DLLs or Shared Libraries from LabVIEW

How to Build a DLL with Visual C++

Also, NI prepared a special page with all the links and references you need about switching to LabVIEW. Check it out. Probably you can do what you want without the C++ code:

Considering a Switch to LabVIEW? 

Regards;
Enrique Vargas
www.visecurity.com

www.vartortech.com
0 Kudos
Message 3 of 3
(3,057 Views)