LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

RAMdisk in labview

Does anyone created/used RAMdisk in LabVIEW to transfer the data between two platforms, like between python and LabVIEW.

 

Can we share the same file handle between 2 platforms? 

 

Best regards,

Adarsha Pakala

0 Kudos
Message 1 of 4
(220 Views)

Quick tip, just write a file in LabVIEW, open a handle to the file in Python and if Windows has memory free, it will have cached the file.

 

It would need to be exclusive locking, but it's a very low barrier to entry.

 

See here.

 

Shane

Message 2 of 4
(210 Views)

@AdarshaPakala wrote:

Does anyone created/used RAMdisk in LabVIEW to transfer the data between two platforms, like between python and LabVIEW.

 

Can we share the same file handle between 2 platforms? 

 

Best regards,

Adarsha Pakala


 A Ramdisk? Haven't used that for a long time. But ramdisk or not the operating system (I am guessing Windows here) will be the issue not LabVIEW or Python or any other program.

 

In general when any program has a file open for writing, access to that file is locked so no other program can open it. 

 

But there are ways around this. Such as more than one program can open a file in "read only" mode or you can open a copy of the file.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 3 of 4
(180 Views)

As far as LV and Python knows, a ram disk is just another drive letter. You should be able to write in one and read with the other. As mentioned, if you open the file in Read-only it shouldn't lock anything for the writer. (Or you use the locked status to check when it's been updated)

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 4 of 4
(127 Views)