01-22-2024 07:47 PM
Hey y'all,
I was recently playing around with MatLAB Scripting nodes in LabVIEW when I discovered there was no way to run 2 in parallel. I then tried to find a way to compile, and came across .NET Assemblies, however, after a bit of testing, I'm pretty sure I can't run these Assemblies in parallel. I tried making it reentrant, starting it asynchronously, constructing a new reference each call, but nothing seems to allow them to run in parallel. Is this true? Or am I missing something that would allow me to run this dll in parallel with another instance of itself? Thanks!
(Sorry can't really provide example code as it's a pretty complicated installation process to get the DLL to work, but my test setup right now is to have a VI launch an async VI that opens the reference [constructor node] invokes the method, and then closes the reference. After this in the main VI I then try to run another instance without it being async, and it always gets caught up till the first one finishes...)
01-22-2024 07:49 PM - edited 01-22-2024 07:54 PM
Here's a couple of pics since my explanation probably wasn't the best:
testRP should take ~1.5 minutes, while testNET should only take a couple of seconds. However when running, only finishes once testRP finishes