Hi,
I have just started using LabView (8.2) and LabPython and I am having trouble importing modules. My code essentially looks like this:
import socket
class CLASS:
def __init__(self,attribute):
self.item = socket.socket()
When running the code in LabView (filename Test2.vi), via New Session -> Set Script -> Compile -> Execute Script, I get the following error message:
Error 1050 occurred at PYTHON Execute Script__ogtk.vi
->Test2.vi:<type 'exceptions.NameError'>,
global name 'socket' is not defined
The code works just fine outside of LabView. Is there some barrier I am unaware of, and is there a way to avoid/cirumvent it?
Thanks!
RColeman