Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there tutorial for building Real time executable?

Solved!
Go to solution

I have Real TIme code that works OK in LabView(not the final version probably but I need to learn couple of other thing as well).

Now I would like to create executable file that I would run on some PC with some control and monitors in it.

I have found some exercise  about developing Application(shortly):1) creating shared variables 2) creating a copy of Vi that works and replace controls and monitors in it with  shared variables 3) creating Windows host VI 4) Probably create executable after that(not described step in exercise).

 

 

I am currently stuck at step 3 with error 1950679035.

Looks like well known error but I did not find solution yet.

 

 

My question is: Is that the right way I am moving  to? Or there is another way to create application with control and monitor of Real Time device NIcRIO 9072?

Sergey.

0 Kudos
Message 1 of 9
(5,684 Views)
Just in case I have enslosed the project with all the code related things inside.
0 Kudos
Message 2 of 9
(5,678 Views)

Dear Sergey,

 

To Start of with here is a link to a tutorial for building a Real time executable:

 

Real time exe. Tutorial

 

I wil have a further look into error code and get back to soon.

 

Regards

Daniel T
Account Manager
National Instruments UK & Ireland
0 Kudos
Message 3 of 9
(5,675 Views)

Thanks.

It is again nice tutorial, but I need some interface on PC that could communicate with Real-Time hardware. I did not find anything about it in this tutorial.

0 Kudos
Message 4 of 9
(5,673 Views)

Hi Sergey,

Sorry to hear that the tutorial was not able to help you with your issue.

Now as I understand you is just looking to have a remote front panel so you can control the target machine running the VI from your desktop PC.

There is a wizard that can help you, as it sets up all the host and target VI options, and uses the ‘RT FiFo’ shared variable which is critical to keeping the system deterministic. This is avalible as you open LabView start panel.

In the wizard as you step through it you can select two loop option and there is an option to have a remote front panel or host VI.

Then in the next stage you need to select the target device from the libraries and whether it is a new device or one your host machine has used before, i.e. a new cRIO needs the new device selected and is under ‘REAL TIME COMPACT RIO’.

I hope this helps

Regards,

PS.        Here is a link explaining RT FIFO:

http://zone.ni.com/reference/en-XX/help/370622E-01/lvrtvihelp/rtfifovipal/

A main feature of the FIFO is that u has to specify the size you need it to be.
Jordan Power
Applications Engineer
National Instruments
0 Kudos
Message 5 of 9
(5,630 Views)

Thanks Jordan,

 it is very close to what I need.

I already have created Network Shared variables and VI for host computer. All I need now is to create installer that would include LabView run time engine and executable for control(monitor) of cRIO from the Host PC. I already have uploaded rtexe on cRIO.

What is the easiest way to do it?

0 Kudos
Message 6 of 9
(5,598 Views)
Solution
Accepted by Sergey(PSU)

Hi Sergey,

Glad to hear you are making progress.

 Well all you need to do now is create the front panel the same way you would create a normal .exe file.

Here is some link with tips on how to create front panels: (web based)

http://digital.ni.com/public.nsf/allkb/7F95D43D3F50FCAC8625710E000068E1?OpenDocument

 

http://digital.ni.com/public.nsf/allkb/7FEE6BCFD264175C8625723E000D928E

There are additional links on the bottom of these pages.

Regards,

Jordan Power
Applications Engineer
National Instruments
0 Kudos
Message 7 of 9
(5,549 Views)

The tutorial given in the message 2....says go to "Tools » Build Application or Shared Library (DLL).."  But in my labview version 8.0 I see only tools-->build executable.I wanted to convert one Vi into a exe so did built up and included the one vi as start up vi and built the project.If I run the exe file I dont see the start stop button enabled and the front panl is static and doesnot run...

Why could it be so?

 

regards

Sivanand Somasundaram

0 Kudos
Message 8 of 9
(5,430 Views)

Dear Sivanand,

 

It seems that you may have not installed all the elements of LabVIEW 8.0. I have attached a couple of screen dumps showing the shared library (DLL) feature which should be available in the full version of LabVIEW 8.0. I would suggest you first fix for this problem would be to reinstall your LabVIEW software.

 

Regards, 

Daniel T
Account Manager
National Instruments UK & Ireland
Download All
0 Kudos
Message 9 of 9
(5,398 Views)