Farewell Progress Report Did I do that??? Eugene Lorman 10.19.2005 Accelerator Division/Weekly...

14
Farewell Progress Report Did I do that??? Eugene Lorman 10.19.2005 Accelerator Division/Weekly Instrumentation Seminar

Transcript of Farewell Progress Report Did I do that??? Eugene Lorman 10.19.2005 Accelerator Division/Weekly...

Page 1: Farewell Progress Report Did I do that??? Eugene Lorman 10.19.2005 Accelerator Division/Weekly Instrumentation Seminar.

Farewell Progress Report

Did I do that???

Eugene Lorman10.19.2005

Accelerator Division/Weekly Instrumentation Seminar

Page 2: Farewell Progress Report Did I do that??? Eugene Lorman 10.19.2005 Accelerator Division/Weekly Instrumentation Seminar.

Working Hard (on the train)

Page 3: Farewell Progress Report Did I do that??? Eugene Lorman 10.19.2005 Accelerator Division/Weekly Instrumentation Seminar.

But Seriously

Projects I’ve worked on• Beam Line Tuners• Synchrotron Light Monitor• Flying Wire Monitors• Ionization Profile Monitors• LabVIEW based test

systems

Skills I’ve developed• LabVIEW programming• Setting up LabVIEW

based Front Ends• Setting up PCs to act as

Front Ends• Creating Devices in

ACNET• Communicating with

Devices on different busses

Page 4: Farewell Progress Report Did I do that??? Eugene Lorman 10.19.2005 Accelerator Division/Weekly Instrumentation Seminar.

LabVIEW key concepts

1. LabVIEW runs using a data-flow model.1. VI’s that are not “linked” by wires will run in an indeterminate

order (in parallel)2. Recursion is IMPOSSIBLE, not that you really need it

2. Code can get very messy, it’s easy to create VI’s with too many inputs.

1. Use divide and conquer. Create sub VI’s to make code look cleaner.

2. If all else fails, bundle inputs into clusters to keep code clean.

3. Dataflow lends itself well to State Machine type programming.

1. Big loop with a case structure inside, which itself determines what step to go to next

2. You can have more than one running in parallel. (GUI and DAQ)

Page 5: Farewell Progress Report Did I do that??? Eugene Lorman 10.19.2005 Accelerator Division/Weekly Instrumentation Seminar.

LabVIEW key concepts II4. Easy to write different parts and then incorporate them into an

FMS1. One can test analysis without having the DAQ finished.2. Making each piece independent lends to easy debugging and test

stand applications.5. Designing for flexibility is hard work upfront, but might pay off at

the end.1. Have to really think of how similar the systems really are. Sometimes

it’s just not worth it.2. Is generally good, can keep one system as T&D while others are

running “compiled” code.6. Compiling executables is fun.

1. Very useful for test applications. Conserves LabVIEW licenses.2. Not that useful on Front Ends when changes to code are often

requested.

Page 6: Farewell Progress Report Did I do that??? Eugene Lorman 10.19.2005 Accelerator Division/Weekly Instrumentation Seminar.

Setting up Front Ends

1. FE does not have to be behind the firewall. Desktop PC’s can be FEs.

• Very nice for testing systems or playing with ACNET interface.

2. Brian Hendricks is your man. (this goes for many things)

1. Provide him with a similar FE, and your IP.2. The IP and ACNET node names should be the same (this is

nice, not required)

3. LabVIEW uses locally stored files to find out which devices it controls.

• TAB delimited text files with all the necessary info• These can also be used to automatically create a command

file to DABBEL to add/modify the devices in the ACNET DB.

Page 7: Farewell Progress Report Did I do that??? Eugene Lorman 10.19.2005 Accelerator Division/Weekly Instrumentation Seminar.

Sample ACNET device file4/5/2001 MFW V 2.3 W. Blokland

Device nameSSDN # Read/WriteVar type Bytes/elem Elem/ deviceInitial valueUpdate ratePrim Unit Comm UnitLong/Short Notation DescriptionZ:FWHACK 0 rw i32 4 1 0 60 unit unit short dec ZFW don’t knowZ:FWCOMM 100 RW I32 4 10 0 60 unit unit short dec ZFW Command RegisterZ:FWCOMR 101 RW I32 4 11 0 60 unit unit short dec ZFW Command Result RegZ:FWFRSH 102 R I32 4 2 0 60 unit unit short dec ZFW Data FreshnessZ:FWSET 110 RW I16 2 1 0 600 unit unit short dec ZFW Guaranteed SetZ:FWREAD 111 R I16 2 1 0 600 unit unit short dec ZFW Guaranteed ReadZ:FWSPEA 200 R I16 2 1 0 60 unit unit short dec ZFW FlySpec Active IndexZ:FWSPEN 201 R I16 2 1 0 60 unit unit short dec ZFW FlySpec Next Index

! FILE : C:\Documents and Settings\lorman\Desktop\ZFW.dab! FROM : 4/5/2001 MFW V 2.3

W. Blokland! Created by LV converter 3.1MOD Z:FWCOMM ('ZFW Command Register', MFWDVL)SSDNHX READNG (0000/0064/0000/0000)SSDNHX SETTNG (0000/0064/0000/0000)PRO READNG (4,40,60)PRO SETTNG (4,40,60)PDB READNG ('unit','unit',10,0,4,0,0,0)PDB SETTNG ('unit','unit',10,0,4,0,0,0)

MOD Z:FWCOMR ('ZFW Command Result Reg', MFWDVL)SSDNHX READNG (0000/0065/0000/0000)SSDNHX SETTNG (0000/0065/0000/0000)PRO READNG (4,44,60)PRO SETTNG (4,44,60)PDB READNG ('unit','unit',10,0,4,0,0,0)PDB SETTNG ('unit','unit',10,0,4,0,0,0)

Page 8: Farewell Progress Report Did I do that??? Eugene Lorman 10.19.2005 Accelerator Division/Weekly Instrumentation Seminar.

Setting up PC for FE

1. Nino Strothman has images which he can put on any machine in 10 minutes.

2. Install all of the hardware drivers needed for the custom hardware you are using.

3. Make sure that the system is fully patched before connecting to the network. (images are)

• It’s nice to keep an IP address which you can use to bring up computers that you don’t care if it gets shut off for some time.

4. Set up user names. Localadmin and Instrumentation are standard.

5. Systems will need to be periodically logged into and patches and reboots managed.

Page 9: Farewell Progress Report Did I do that??? Eugene Lorman 10.19.2005 Accelerator Division/Weekly Instrumentation Seminar.

Setting up PCs II7. All Instrumentation Front Ends will reside on the Fermi Domain.

1. There is a policy that can be fed down to disable the Notification window before a user can log on, and make that window the desktop image.

2. The Notification must also be removed from registry the key is: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system. Clear legalnoticecaptoin and legalnoticetext.

3. Using Tweak UI, from Microsoft Windows PowerToys one can set up the machine to automatically log into a local account.

4. All domain services can be accessed using a “service” account created for the Instrumentation Group. BD-SRV-INST. Password is “semi public” and never expires.

5. Having the machine on the domain allows for patches to be pushed to the Front End. As well as make them easy to manage on a “global” scale.

6. All systems must reside in the Critical System list so that they will not be automatically rebooted.

7. Sam Jorocki, Ryan Heath and Nino Strothman are good resources.

Page 10: Farewell Progress Report Did I do that??? Eugene Lorman 10.19.2005 Accelerator Division/Weekly Instrumentation Seminar.

Adding Devices to ACNET

1. Page D80 can be used to edit a few devices, for batch processing use DABBEL, which is a database editing tool.

2. Once a spreadsheet of the devices exists for LabVIEW to use, run MakeDabbel from the Y:\lorman\ACNET directory and it will create the batch file for you to use.

3. Using FileZilla (kerberized FTP) transfer the files to your ADCALC directory.

4. Run DecTerm under ACNET menu in Windows and use the DABBEL filename SYNTAX or MODIFY.

1. Command would look like DABBEL sl3.dab MODIFY2. It will write an sl3.lis file if there were any errors during the

process. These are usually self explanatory.3. Brian Hendricks is your man here also.

Page 11: Farewell Progress Report Did I do that??? Eugene Lorman 10.19.2005 Accelerator Division/Weekly Instrumentation Seminar.

Communication over different busses.

• VME – Using National Instruments MXI-II standard with a VME/VXI controller that mates

to a PCI controller in the PC.• GPIB

– Using a GPIB-PCI, GPIB-USB or GPIB-Ethernet controller to gain access to the instrument.

– Charlie Briegel manages the GPIB front end in the Controls System. These can be assigned an address and communicated with using Console Applications. (Tevatron Oscilloscope based BLT)

• Vision – Using National Instruments IMAQ hardware and software– There is a “Vision Analysis” package one can get for LabVIEW to aid in image

processing.• Motion

– Using National Instruments Servo or Stepper Controller and a PCI card to communicate to it.

– LabVIEW software is included in the drivers that come with the Hardware and can also be found on the NI.com website.

Page 12: Farewell Progress Report Did I do that??? Eugene Lorman 10.19.2005 Accelerator Division/Weekly Instrumentation Seminar.

Device SummariesSystem IP Name Keeper Backup Platform LV version Work needed

miblt miblt2 Vic Duane PC 6.1 Upgrade to 7.1

tevblt tvblt2 Vic Duane PC 7.1 none

tevblt None Vic Duane Scope None none

SyncLight SL3 Randy Bob PC 7.1 none

tevFW TFW Jim Bob Mac 4.1 Upgrade to 7.1

miFW MFW Jim Bob Mac 4.1 Upgrade to 7.1

PbarFW PFW Jim Bob PC 6.1 Upgrade to 7.1

RRFW RFW Jim Bob PC 6.1 Upgrade to 7.1

MIIPM 3 of ‘em Jim None PC 6.1(exe) Upgrade to 7.1?

Tev Chrom INSTSCOPE Vahid None Scope 6.1 ???

Tev Abort None Vic None Scope 7.1 Install

Booster ???? Steimel None Scope 7.1 Install

Page 13: Farewell Progress Report Did I do that??? Eugene Lorman 10.19.2005 Accelerator Division/Weekly Instrumentation Seminar.

Other Projects

• LabVIEW-ACNET interface– Duane Voy and Bob Flora– Working well, missing Alarm Capabilities

• Rapid Transfer hardware Test code.– Completed, will have to be slightly modified for testing

other similar systems.

• Fellenz HV module test code and other test code– Should be easy to adapt to any other type of system

Page 14: Farewell Progress Report Did I do that??? Eugene Lorman 10.19.2005 Accelerator Division/Weekly Instrumentation Seminar.

THANK YOU