Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Upgrade from LV2010 to LV2011 causes USB Error-1172

Hello NI world,

 

I'm a newbie to LabVIEW, and hope I might find some info on my issue.

 

I have a VI that takes a sequence of binary digits, creates an array, and sends the sequence out on USB.  This works in LV2010.  Last night I upgraded to LV2011, and the system reports an error: "Error 1172 occurred at Error creating instance of Form1 in assembly..." (see attached document for complete error message, and a piece of the flow.)  I thought it might be due to obsolete .NET software, so I updated .NET to v4, with no change in behavior.

 

I adopted this code from another engineer, who is now off on new adventures.  Now that I've mucked with it in LV2011, I can't open it in LV2010.

 

It appears the files in question are 'usbGenericHidCommunications.dll' and 'WFF Generic HID Demo 3.dll'

 

My Setup: PC, Windows-XP (SP3), LV2010 and now LV2011, .NET Framework 3.5 and 4

 

Any suggestions are welcome.

 

Thanks,

Duman

Download All
0 Kudos
Message 1 of 3
(3,786 Views)

to be able to use .net 4 you should add a special file to the labview.exe folder.

Maybe that one is not in place

it is called LabVIEW.exe.config

and the contents is below this line

 

<?xml version ="1.0"?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0.30319"/>
</startup>
</configuration>

greetings from the Netherlands
0 Kudos
Message 2 of 3
(3,776 Views)

Albert,

 

Thank you for your quick reply, and the information regarding the .NET configuration.  I will keep that for future reference.

 

It turns out the DLL was being referenced on an external network drive, on our internal network, and .NET perceived this as a 'security' issue.

 

Thanks again!

 

Duman

0 Kudos
Message 3 of 3
(3,770 Views)