LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I am running 2 programs simultaneously.one is Pascal program.It is used to develop simulation data of Spacecraft

engine and it was stored in to one of the locations of the memory.another program is Our LabVIEW.It is used to get the data from memory and send feed back to pascal program in real time.Is it possible in LabVIEW?just i want to find out the Memory location?I am running 2 programs simultaneously.one is Pascal program.It is used to develop simulation data of Spacecraft engine and it was stored in one of the locations of the memory.another program is Our LabVIEW.It is used to get the data from memory and send feed back to pascal program in real time.
Based on LabVIEW data processing,pascal does not produce a next data.Is it possible in our LabVIEW?Please clea
r my doubt.
0 Kudos
Message 1 of 4
(2,857 Views)
engine and it was stored in to one of the locations of the memory.another program is Our LabVIEW.It is used to get the data from memory and send feed back to pascal program in real time.Is it possible in LabVIEW?just i want to find out the Memory location?Not sure exactly what you are trying to do.

Please elaborate your question, and be as thorough as possible.

For the short, assumed answer: yes. LabVIEW is a very powerful language, some would even say more so than Pascal (since I learned Pascal, I would be one of them.)
0 Kudos
Message 2 of 4
(2,857 Views)
engine and it was stored in to one of the locations of the memory.another program is Our LabVIEW.It is used to get the data from memory and send feed back to pascal program in real time.Is it possible in LabVIEW?just i want to find out the Memory location?Hi Subbu,

Sharing memory between two totally seperate applications, natively, is
almost impossible on modern OS's with dynamic memory allocation. Also the
only memory locations that LV can Peek and Poke too are limited to I/O
addresses, and I do not think it is possible to point a LV array to
another preallocated data.

What is needed is either:
A common interprogram communication protocol like local TCP/IP, OLE etc.
Or a shared function whos job is to hold data eg a DLL (that has semiphore
indications to limit access, to prevent race conditions).

Looking at you email again, it seems that it may not be possible for you
to modify the operation of the Pascal program, an alternative would be to
create a DLL, in pascal or whatever, that can access the memory locatio
n,
that LV can call and so access the data.

Tim

subbu wrote:

> I am running 2 programs simultaneously.one is Pascal program.It is
> used to develop simulation data of Spacecraft engine and it was stored
> in to one of the locations of the memory.another program is Our
> LabVIEW.It is used to get the data from memory and send feed back to
> pascal program in real time.Is it possible in LabVIEW?just i want to
> find out the Memory location?
>
> I am running 2 programs simultaneously.one is Pascal program.It is
> used to develop simulation data of Spacecraft engine and it was stored
> in one of the locations of the memory.another program is Our
> LabVIEW.It is used to get the data from memory and send feed back to
> pascal program in real time.
> Based on LabVIEW data processing,pascal does not produce a next
> data.Is it possible in our LabVIEW?Please clear my doubt.
Message 3 of 4
(2,857 Views)
engine and it was stored in to one of the locations of the memory.another program is Our LabVIEW.It is used to get the data from memory and send feed back to pascal program in real time.Is it possible in LabVIEW?just i want to find out the Memory location?Probably your best bet is to run DataSocket on both running VI's. There is a good example of this in the HELP files. Alternatively, you could just read and write to a common text file path...but it's a bit slower, and you might end up with occasional collisions if you don't time it right. I'm beginning to really appreciate DataSocket for this kind of thing. :=)
Eric P. Nichols
P.O. Box 56235
North Pole, AK 99705
0 Kudos
Message 4 of 4
(2,856 Views)