02-05-2015 07:54 AM
Hi,
I have a custom DLL which communicates with an FPGA over raw ethernet. I wrote it in C# and want to to use it in my LabView VI. I want to have at least 3 loops, one for GUI, one for sending data to device, one for receiving data from device. I use queue for passing data between GUI and other loops. If I open a DLL and use it in GUI loop how can I use the "same" DLL in other loops, I mean How can I share the same reference to other loops?
02-05-2015 09:00 AM
02-05-2015 09:03 AM
02-05-2015 09:06 AM - edited 02-05-2015 09:07 AM
That was my question exactly, thanks dor answer. Yes it is NET Assembly,
I created a constactor node outside of the loops and I connected the reference to all loops.
But I am not sure how to synchronize them. If a loop causes an error what happens to reference and error outputs?
02-05-2015 04:35 PM
@kahlenberg wrote:
But I am not sure how to synchronize them. If a loop causes an error what happens to reference and error outputs?
Depends on the error. If the object reference remains valid (for example, a .NET method threw an exception such as a timeout) it will have no effect on other calls to that object, as far as LabVIEW is concerned. LabVIEW will catch the exception, convert it to an error on the error wire, and proceed normally. If the error somehow invalidates the reference (for example, destroys the object, although I don't know how or if this could occur), then you'll get an error when you attempt to perform further actions on that object (such as later in a different loop).