Friday, June 17, 2011

6:17: Module Error, x-term, Dock

6/17 Recap

To Do:

-Investigate error message which arose when running my python program. The error message is listed in the appendix.
-Figure out how to integrate my program with dock

Today

-Dr. Hetherington figured out how to fix the error which arose with running my VCO module. He reloaded the labjack rules (10-labjack.rules) , and he reinstalled the exodriver. The information for doing this is in the labjack folder, Install.Linux file, specifically the lines

sudo cp 10-labjack.rules /etc/udev/rules.d
$ sudo udevadm control --reload-rules

where sudo is su instead.

-To get x-term to work on my desktop,

In geany,

File->preferences->tools

with the line that says terminal, input the following: /usr/bin/gnome-terminal --geometry=132x43


-Documentation on Dock is here

http://www.physics.oregonstate.edu/~hetheriw/whiki/dock/sys/4.php

written by Kris, almost entirely up-to-date.

For my VCO module, I should include the following:
1. connect to VCO button ( or labjack?)
2. change frequency text-and-button
3. text box which gives a print-out of bits sent to VCO

For Next Time:

-make blog for SPS, using sps e-mail account as user.
-Read Dock documentation
-practice using dock
-->make a simple module, make some buttons, text-buttons, etc.
-investigate getting my module to work with dock









Appendix

Error Message:

: Could not load the Exodriver driver. Ethernet connectivity only.
Check that the Exodriver is installed, and the permissions are set correctly.

The error message was: liblabjackusb.dylib: cannot open shared object file: No such file or directory

Traceback (most recent call last):

File "VCO_Frequency.py", line 330, in

VCO_obj.VCO_Freq(1360) #put in frequency in MHz

File "VCO_Frequency.py", line 36, in VCO_Freq

d= u3.U3()

File "/home/Kris/previous-docks/GUI-current/modules/oldMods/u3.py", line 81, in __init__

self.open(**kargs)

File "/home/Kris/previous-docks/GUI-current/modules/oldMods/u3.py", line 116, in open

Device.open(self, 3, firstFound = firstFound, serial = serial, localId = localId, devNumber = devNumber, handleOnly = handleOnly, LJSocket = LJSocket )

File "/home/Kris/previous-docks/GUI-current/modules/oldMods/LabJackPython.py", line 599, in open

d = openLabJack(devType, ct, firstFound = True, handleOnly = handleOnly, LJSocket = LJSocket)

File "/home/Kris/previous-docks/GUI-current/modules/oldMods/LabJackPython.py", line 1431, in openLabJack

handle = _openLabJackUsingExodriver(deviceType, firstFound, pAddress, devNumber)

File "/home/Kris/previous-docks/GUI-current/modules/oldMods/LabJackPython.py", line 1281, in _openLabJackUsingExodriver

openDev = staticLib.LJUSB_OpenDevice

AttributeError: 'NoneType' object has no attribute 'LJUSB_OpenDevice'

No comments:

Post a Comment