Jump to content

Coleman

Members
  • Posts

    1
  • Joined

  • Last visited

LabVIEW Information

  • Version
    LabVIEW 8.2
  • Since
    2009

Coleman's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. 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
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.