12-19-2005 08:47 AM - edited 12-19-2005 08:47 AM
Message Edited by Jack-Rochester, NY on 12-19-2005 08:47 AM
12-20-2005 09:21 AM
Jack,
There is a Knowledge Base Article that discusses error 1172 when calling .NET assemblies from LabVIEW. Basically, prior to LabVIEW 8.0, LabVIEW needed to have the assembly in the same folder as the .VI or in your case the .DLL. You may also want to look at this forum, which describes another problem causing the same error number. Following these steps should work, but if you're still seeing the error, go ahead and paste the actual error message that you get so that we can look more into what might be causing this. Thanks and have a good one.
01-05-2006 04:23 PM
I have a related question. I am using TestStand 2.0 to run Labview 7.1 vis which call a .NET assembly (DLL). The system does seem to work if I put a copy of the .NET files in the folder of every top-level vi invoked by TestStand. However there are 60 such vi's so I have 60 copies of the same dll. This is clearly undesireable. I tried using a short-cut instead of the actually DLL but that didn't seem to work. Do I really have to have maintain 60 copies of the same file?
Also, the DLL is a low-level driver to a network analyzer with an ethernet interface. The ethernet reference is stored as a static variable inside a class in the DLL. Is this same variable shared among the various TestStand invocations of the top-level Labview vi's or is each invocation of the Labview vi by TestStand a different process which does not share any variables with other invocations? Before putting the DLLs in each of the 60 folders, I had problems with 1172 errors. At one time I thought I had problems talking to the logic analyzer because the DLL had not release the reference used by a previous TestStand invocation and could not get a new reference. Creating a static variable in the driver seems to have fixed that issue.
A further complication is that TestStand is being driven by a Labview front-end. Is the Labview front-end really the top-level vi whose folder should contain the DLL? If so, is the above static variable then shared among all the vi's that TestStand invokes?
01-06-2006 01:59 PM