05-06-2024 09:42 AM
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
05-06-2024 09:49 AM
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
05-06-2024 10:29 AM
@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.
05-07-2024 02:55 AM
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)