08-27-2021 09:57 AM
I am having a LabVIEW .NET issue.
I plan to use LabVIEW to talk to a Newport XPS Motor stage controller. I followed their instructions and installed Newport.XPS.CommandInterface_x86.exe.
I followed the steps from the attached DS-031901_XPS.NET_Assembly_TechNote. Downloaded the 2 attached installers. Installed both, but separately (a 32 bit and a 64 bit). Then created a LabVIEW vi and used a .NET constructor node.
When I click on the node, a window pops up to select from a list of Assemblies. Newport should be in the list. It is not, even though the install seemed to complete just fine. So I can’t access any of the commands to communicate with this Motor controller. I've tried the 32 bit and the 64 bit XPS installers and neither seems to work. Both install, but Newport never shows up on the list of Assemblies.
I did find Newport at this path on my PC:
C:\Windows\Microsoft.NET\assembly\GAC_32\Newport.XPS.CommandInterface\v4.0_1.0.0.0__9a267756cf640dcf\ Newport.XPS.CommandInterface.dll
I tried clicking BROWSE within the LabVIEW .NET constructor node for ASSEMBLY. Then selected:
C:\Windows\Microsoft.NET\assembly\GAC_32\Newport.XPS.CommandInterface\v4.0_1.0.0.0__9a267756cf640dcf\ Newport.XPS.CommandInterface.dll
I then got the error in the attached file: Newport Browse NET error.png
I also installed Newport.XPS.CommandInterface_x86.exe on my old Windows 7 XP PC. I have the same problem there.
Does anyone have any idea what is going on here? I have talked to multiple people at Newport. This is still unresolved.
Thank you for your time.
08-29-2021
08:25 AM
- last edited on
02-27-2025
11:32 AM
by
Content Cleaner
Which LabVIEW version are you using? This look like a case where the Newport DLL is built with a newer version of .NET than the version that your LabVIEW is using.
Check here for the .NET version that your LabVIEW is using. If your LabVIEW version is using a newer version of .NET, it usually auto-promotes your DLL to that version. If it's older ... well, might need to ask Newport to see if they can downgrade for you. Try using the free LabVIEW 2021 community edition to see if it works.
Here are some articles to refer to:
.NET Framework Version Installed by LabVIEW
Error Loading .NET Assemblies in LabVIEW
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P8XnSAK&l=en-US
(if this ends up solving your problem, be sure to mark as solution so others can find it 😀)