03-10-2011 12:07 AM
Dear friends,
There are 3 ways to open a VI in labview.
- double klik on a VI in win explorer
- file -> open.. -> selecting a VI
- start labview and select the VI as last saved
When I load the VI like the 3e way I get an error when I want to open the .net dll.
But strangly when I open it like the 1e and 2e way the dll does not give an error.
Can anyone help me with this? Maybe I do something wrong.
gr,
03-10-2011 02:59 PM
Anyone known with this problem?
03-24-2011 08:03 AM
Can someone help me with the problem I mentioned above?
03-24-2011 09:28 AM
Apparently your message got buried in the flood of messages on this board.
What is the error? Is this a private assembly that you are opening? Where is the assembly located? Does it rely on other private assemblies? If the code is not too complex can you upload it? What version of LabVIEW are you using?
03-25-2011 09:12 AM - edited 03-25-2011 09:14 AM
The DLL is a 3.5 .NET version build by a customer.
I have some print screens of how the error shows up.
- Start labview
- Select the VI in recent files
The ok1.jpg shows the dll when I opened with file->open->....vi or by double clicking it in explorer(labview is not opened when opening it with explorer).
Note that once the vi is opened and the error appeared it will always give an error, it does not matter is I close the vi and open it with file->open->....vi.
Also when opened with explorer or open->file->.....vi it allways goes ok even if I close the vi and then open it with recent....
The dll's are located op the desktop in a folder.
Im using labview 2010 f4
03-25-2011 09:28 AM
I don't quite understand your description of the problem. What is ok1.jpg supposed to show? Is this what you get after the VI is loaded and you select the constructor and choose "Select Constructor"? What is error1.jpg supposed to show? This seems to imply that you're feeding a pathname that's wrong, and the method you're calling is basically complaining.
Where are the DLLs relative to the VI? Are you aware of the search algorithm for .NET assemblies? http://msdn.microsoft.com/en-us/library/yx7xezcf%28v=VS.85%29.aspx
03-26-2011 09:34 AM
The Ok1.jpg shows how it looks when I open the vi with open->file->'example.vi'
The error1.jpg and error2.jpg shows how it looks when I open the vi with open->recent files->'example.vi'
So the question is now whats the difference when opening a vi with open->file->'example.vi' and open->recent files->'example.vi'
03-27-2011 03:43 AM
Will try to install labview 2010 sp1 tommorow, see if that solves the problem.
I really dont understand the difference between open->file->'example.vi' and open->recent files->'example.vi'.
Ofcourse I checked that the path of the files are the same.
gr,
03-27-2011 09:16 AM
The only real difference between those two is that "recent files" is a special folder that contains shortcuts. So, it's possible the OS is messing this up. What version of Windows are you running? In order to track down the issue someone is going to have to try to replicate it.
03-27-2011 11:35 AM - edited 03-27-2011 11:37 AM
Im running windows XP sp3.
But the problem occurs when I want teststand to open it. It does not work if teststand opens the via through labview.
And why is it not possible to make a construtor woth the dll?
When opening it as recent I deleted all the data, then added a contructor but I get error2.jpg when I want to add the dll.