03-17-2015 10:53 AM
Hi,
I have subVI to read the current from the Keithley 2400.
1. When I run it under Labview 2013 (64 bit) is no error
2. When I run it under Labveiw 2013 (32 bit) is ERROR
Error Code ID = -201 - Invalid while in local
Error Code ID = -420 - Queary Terminated
How can I fix this subVI to run under Labview 2013 (32 bit) ?
Thanks
Khanh
03-17-2015 11:12 AM - edited 03-17-2015 11:38 AM
As a first step, you could show us the subVI. Where did you get it? How are we supposed to know what it does? Could it be that it is calling a third party 64bit dll?
(These don't look like LabVIEW errors, so they are probably generated by a third party component)
03-17-2015 11:38 AM
Hi,
Sorry, Attached is the subVI, I wrote it myself.
03-17-2015 02:42 PM - edited 03-17-2015 02:45 PM
Code Note: The Sequence structure appears to be completely unnecessary. Perhaps in the situation you wish to use your wait, make a separate sub VI. But other than that, the error cluster is driving sequence.
Speaking of error cluster: have you tried some basic debugging to determine when the error occurs? Place probes along the error cluster, create a conditional breakpoint, or even use highlight execution. It's a little harder for us to reproduce the error of a subVI.
03-17-2015 03:41 PM
Hi,
Error at GPIB Read:
Output of the GPIB Write is OK but output of the GPIB Read is error. But the same subVI, if I run by Labview 2013 (64 bit) no error, unfortunatly the rest of the program (other instruments communication) are running with Labview 2013 (32 bit). That's why I would like to fix this to run under Labview 2013 (32 bit).
Please help. Thanks
03-17-2015 03:52 PM - edited 03-17-2015 03:53 PM
I would have to say whatever is initializing the instruement is not able to do so. Hence the "Error Code ID = -201 - Invalid while in local" error. (It can't set the instrument to "Remote" mode.) Furthermore, I would hazard a guess that this is due to what altenbach mentioned about the 64-bit dll.
Swapping between 64-bit and 32-bit anything - not just LabVIEW - can have unexpected results due to dll issues.
03-17-2015 03:54 PM
I guess the summary is that you are looking in the wrong place. Other than questionable LabVIEW practices, there is nothing really wrong with this VI.
03-17-2015 07:27 PM
Hi,
Thank you all for your help. Now, I have both Labview 2013 (32 bit) and Labview 2013 (64 bit) in the same computer. How can I uninstall the Labview 2013 (64 bit) from the computer. Hopefully this will solve the problem.
03-17-2015 09:05 PM - edited 03-17-2015 09:06 PM
It won't. You're very far off the mark. It's the Keithely driver that you are sort of using, not LabVIEW. It probably installed the 64-bit dll. You'll have to find a way to install the 32-bit dll, either alongside or without the 64-bit driver.
03-17-2015 09:09 PM