VXI and VME

cancel
Showing results for 
Search instead for 
Did you mean: 

IPC support

Hi,

 

I am using VME-MX2 board and everything is working fine with the software developed in LabWindows.

I have one more application developed in visual studio with RTX-RTSS () system, which is using real time os IntervalZero (formerly Ardence and Venturcom) RTX is the only software solution architected as a high-performance extension to control Microsoft Window.s

Now I need to share some data between this 2 applications. Could you suggest what is the best possible way to share real time data?

 

Awaiting your quick reply.

Umesh

 

0 Kudos
Message 1 of 6
(7,457 Views)

Umesh,

 

What language is the application in Visual Studio written in?  That will affect what API you can use to communicate between the two processes.  Just to check, are both applications running on the same machine?

 

Thanks,

 

Jen W

Applications Engineer

National Instruments

ni.com/support

Message 2 of 6
(7,429 Views)

 

Hi Jen,

Happy New Year !!!

 

Thanks for your reply. Please find below the answers to your questions,

 

Yes, both applications running on the same machine.

 

Application 1 -

What language is the application in Visual Studio written in? 

The application in Visual studio consist of following 3 modules,

1. HIgh Level Program - User interface is written in C# and Win32 process

2. Intermediate Level Program is written in C++ and Win32 process. (Activex Control)

3. Low Level Program is written in C and Real time process. (Time-Critical I/O control)

This one is with RTX-RTSS system, which is using real time OS IntervalZero (formerly Ardence and Venturcom).

 

Application 2 - Written in LabWindows and it uses VME-MXI-2 for PCI.

Both applications are running and now I need to share some data among these 2 applications.

Awaiting for your reply and guidance.

 

Thanks with regards,

Umesh

0 Kudos
Message 3 of 6
(7,417 Views)

Umesh,

 

You have several options.  You could use Windows to communicate between your processes, specifically with pipes.  The language difference between the two applications should not matter as long as you are sending and recieving what you expect.  Generally pipes have a client-server relationship.  There is some example code on the web for this, such as this.

 

However, since you are using two NI products to develop your application, it is probably going to be easier to work with either DataSockets or Network Variables.  Which one you want will depend on what you want to optimize, which is described in a little more detail in the article Migrating to Measurement Studio Network Variable from DataSocket.  Additional Measurement Studio documentation can be found in the Measurement Studio help by searching for DataSocket, specifically Using the Measurement Studio DataSocket .NET Library in the local help.  Documentation on DataSocket in CVI can be found by searching the CVI help for datasocket, specifically in the DataSocket Overview.

 

Help for Network Variables can similarly be found, but here are some additional links to online resources:

 

Comparison of LabWindows/CVI Network Variable Connection Types

 

Adding Network Variables to a Measurement Studio Windows Application

 

I hope this helps.  Happy new year to you as well!

 

Regards

 

Jen W

Applications Engineer

National Instruments

ni.com/support

 

0 Kudos
Message 4 of 6
(7,409 Views)

Hi jen,

 

Is there any way I can use RTX-RTSS API's to establish communication between LabWindows/CVI and RTX RTSS developed in visual studio? I want to use RTAPI.h or RTKAPI.h (real time api) in LabWindows/CVI to use shared memory created by RTX-RTSS system.

Can you suggest anything regarding it?

 

Thanks with regards,

Umesh

0 Kudos
Message 5 of 6
(7,334 Views)

Umesh,

 

I think that the documentation on the RTX API that you have will be the most useful to you.  CVI is an ANSI C development environment, so as long as that API works with ANSI C, then you can use it in CVI.  The rest is a question of how to develop with RTX, which is not an NI product and so I can't offer much expertise at all.

 

Regards,

 

Jen W

Applications Engineer

National Instruments

ni.com/support

0 Kudos
Message 6 of 6
(7,322 Views)