Monday, June 20, 2011

[Agenda]

[What was Done Today]

[New Questions raised]

-what is the correct way to make the connection to the labjack?

d=u3.U3() okay?

-what is a handle?

[TO DO, learn about For Next Time]

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'

TO DO

1. Check Stability of output of VCO of different frequencies
2. Integrate my Module into DOCK
3. Make progran to see if the Labjack is connected
4. Download, Install Labjack Software DONE
5. Make Module for Acquiring Data From Spectrum Analyzer
6. Make Sure my Module for Changing the VCO frequency works
7. Figure out where to physically connect Labjack to VCO
8. Make Labjack Dictionary that makes it so I designate ports to my program
9. Add to RT Website
10. Add Error Messages to Code if Voltages are too high, other error messages
11. See if values are optimal for functioning of VCO
12. Install Labjack software on RT 1 DONE
13. Make Labjack Library in Order for Labjack to be recognized by docking program