DAQ demo instructions
Paul Hubbard
V1.0 May 12, 2005
V1.1 May 24, 2005 - Errors fixed
What's shown in this demonstration
This demo shows off several parts of the remote collaboration suite of
tools. Included are
- Streaming DAQ data from LabVIEW
- Data Turbine
- Streaming video from a standalone Axis 2400 camera
- Streaming numeric data, with units, from the DAQ via DaqToRbnb
- NTCP control, implemented in LabVIEW, presently limited to the
X10 lights. This is because the table is new, and I've not yet written
the control interface code.
- RDV, in all its glory
- A Java-based NTCP client (optional)
- X10 control for lighting
- Quanser shake table, with resonant masses provided by Jared
There are three demos, graded in degree of complexity. First off, let's
explain what's required to get busy.
Requirements
Machines used
- The shaketable control program and DAQ code runs on
shaketable.sdsc.edu. This is an XP box, dual Xeon. It has MATLAB,
LabVIE and the Quanser code installed.
- neestpm.sdsc.edu runs the turbine, and the DaqToRbnb &
AxisSource sources.
- neestpm.sdsc.edu also runs the OGSA container for NTCP, which
talks to LabVIEW
- Your laptop, to run RDV and MS remote desktop.
Software required on your (demo) machine
The basic demo just needs
- Java (Runtime is fine)
- MS Remote desktop. Included with XP, not sure if its installed by
default on 2k etc.
- Firefox or other decent (non-IE) browser.
The most elaborate demo uses NTCP on your laptop; this requires the
Java development kit, Ant and other things as explained in
the NTCP tutorial. NTCP is used to activate the X10 lights, so this
is not required for a good demo.
Software on the DAQ PC
The LabVIEW code is located on the desktop, in the 'needs-merge'
folder. The X10 programs are in the X10 folder. Note that code from CVS will not control
the X10 lights, so do not use the lv-programs folder. Yeah, this
is a bug, and I will fix it.
Username/password
You'll need the username and password for the shaketable.sdsc.edu
machine. Please ask Paul, Wei or Larry.
Procedures
Basic demonstration
The basic demo is passive. It shows video and data, but does not run
the table. I put this in for cases where you're uncomfortable
running the table, or if there's a problem with it. This is very very
unlikely to harm anything.
- Open up remote desktop
(Programs/Accessories/Communications/Remote Desktop connection on XP)
and connect to shaketable.sdsc.edu. Username is neesit. Do not disconnect any user if RDC tells you
there's another user active!
- Run RDV from http://it.nees.org/support/demos/turbine/RDV.jnlp
Close the panes that it opens by default, and open video from 'Shake
table video' and data from 'Shake table DAQ'. You should see pitch
black video (no lights) and noisy data. If the data or video are
missing, go to step 'Troubleshooting' below.
- Go back to RDC window, but leave RDV running. Open up the 'X10'
folder on the desktop, and run 'beacon on' and then 'lights on'. Go
back to RDV and see the lights turn on in the video feed.
- Talk enthusiastically about how cool this is. Sincerity is
essential.
- When done, use the icons in the X10 folder to turn off the beacon
and lights, and close RDC. Leave the
LabVIEW code running!
Basic + Quanser table
- Follow steps 1-3 above.
- In RDC, open the 'Q4 Lab files' folder, and select q_boot_upm_Q4.wcp. Start WinCon by
clicking on the green 'Start' button. You should see a dialog that says
'End of initialization. Right and left LEDs on UPM should not be
flashing'. This initializes the table and control hardware.
- Close WinCon. For some reason, you have to close it between
different WCP files.
- Next, select the q_sine_x_Q4.wcp.
Run it, and increase the frequency to 1Hz and the amplitude to about
50%. Go back to RDV, and check out the wildly waving masses, and the
oscillating accelerometer data.
- Take more enthusiastically about how drop-dead cool this is, and how Paul should be
paid more.
- When done, press 'Stop' on WinCon. Verify that the table has stopped moving
via RDV.
- Use X10 to turn off the lights, and close RDC as above. You can
leave WinCon and LabVIEW up.
Optionally, you can run a different WinCon file. There are several
scripts in the folder you can use.
- q_north_x_Q4.wcp Northridge 94 quake
- q_elcen_x_Q4.wcp El Centro
- q_hach_x_Q4.wcp Hachimoto
- q_kobe_x_Q4.qcp Kobe
Basic + Quanser + NTCP
In this version, we use an NTCP client to turn on the X10 client.
You'll need the 'nclient' program from the http://users.sdsc.edu/~hubbard/neesit/cvs.html
CVS archive.
In the source code nclient/src/org/nees/ntcp/nclient/, change line 49 to
String serverURL = "http://neestpm.sdsc.edu:8090/";
and build the code using ant:
[hubbard@macilent ~/code/nclient] ant
Buildfile: build.xml
checkOGSA:
prepare:
compile:
[javac] Compiling 2 source files to /Users/hubbard/code/nclient/build/classes
BUILD SUCCESSFUL
Total time: 8 seconds
On the DAQ PC, run
- 'Control program, simulated actuator' from 'ntcp-testing.llb'
- 'Control daemon (NTCP)', from 'daemon-programs.llb'
On neestpm, make sure that the OGSA container is running and that
server-config.wsdd has
lvHost=shaketable.sdsc.edu
Then
- On your laptop, run the nclient via 'ant run'
- Then switch to RDV. The lights should come on and stay on for
about 60 seconds.
- Talk very enthusiastically about how ubernifty this all is.
To shut down, stop WinCon. Ensure the lights are out and the table
stopped.
Troubleshooting
Given the multi-compenent nature of this demo, the number of failure
mode permutations is large. Like, 'somewhere between X and aleph null'
large. If it fails, please try to find Paul first, and express your
disappointment and unhappiness. Please refrain from causing permanent
damage.
More seriously, check
- Make sure that the LabVIEW code is running. You need 'server
daemon (streaming data)' from 'daemon-programs.llb' and 'Single serial
accelerometer' from 'anco-table.llb' for streaming data. For NTCP, you
also need 'Control daemon' from 'daemon-programs.llb' and 'Control
program, simulated actuator' from 'ntcp-testing.llb'
- Check 'server daemon'. It should show 4 green lights - driver
connected, daq running, data streaming and , er, something else. Driver
means DaqToRbnb, DAQ running means the 'single serial accelerometer'
program, and data streaming means that DaqToRbnb is working.
- Make sure you ran the LabVIEW code out of the 'needs-merge'
folder.
- If the camera is black, check http://flextps.nees.org
and see if the video works there. If it does, check on neestpm.sdsc.edu
and restart the AxisSource program; it does sometimes hang if there's a
network glitch. I think there's already a FogBug for this. Also check
that no one has re-aimed the camera off to the side; this bit me in
Singapore.
- If the DAQ runs, but the driver isn't connected or is failing,
you'll see no data in RDV. Log onto neestpm and restart the DaqToRbnb
program. Check ~hubbard/turbine-apps.csh for details.
- The Quanser manual is at http://users.sdsc.edu/~hubbard/neesit/.
It's also on NEES central under Equipment.
- The Turbine applications (DaqToRbnb, AxisSource) are documented
on http://users.sdsc.edu/~hubbard/neesit/rbnb-apps.html