Jump to content

System Exec.vi


Recommended Posts

Hi folks,

Does anyone know what happens behind the scenes in the external code call in the "system exec.vi". There is a reference to "systemexec.lsb" file inside the VI that NI used at design time.

It appears to call a DLL type function - but where is it? Is it a real DLL somewhere on the PC, or encoded within the vi itself?

Any help greatly appreciated!

Cheers,

Chris.

Link to comment

It's called a CIN (Code Interface Node) and is a way to embed C code into your VI.

I'm not sure exactly when the C code is compiled, but you should be able to find more info in the LV help for the CIN.

It's older technology only left around for compatibilty, so you should not use it yourself.

Link to comment

Actually, that was just because Rolf keeps saying it, but looking in the LV help you can find

QUOTE

National Instruments recommends using a shared library (DLL) rather than a CIN if you want to use a language other than C or C++. LabVIEW does not support the creation of external subroutines. If you want to share code among multiple CINs, use DLLs.

and

QUOTE

To create a CIN, you must be an experienced C developer. Also, because CINs are tightly coupled with LabVIEW, restrictions exist about which
you can use.

It also says that

QUOTE

CINs have the following advantages:

  • The CIN code is integrated into the code of the VI, so there is no extra file to maintain when the VI is distributed.

  • CINs provide certain special entry points, such as CINLoad, CINSave, and so on.

Link to comment
  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.