LabVIEW what is it, why use it?Coding standards, training, certification 10 Structure your code, get...

14
LabVIEW what is it, why use it? Odd Andreassen & Adriaan Rijllart EN-STI-ECE Lightning talk 27.01.2017 IT Amphitheatre

Transcript of LabVIEW what is it, why use it?Coding standards, training, certification 10 Structure your code, get...

Page 1: LabVIEW what is it, why use it?Coding standards, training, certification 10 Structure your code, get certified ! Templates Training Certification. LabVIEW real-time and FPGA makes

LabVIEW

what is it, why use it?

Odd Andreassen & Adriaan RijllartEN-STI-ECE

Lightning talk27.01.2017

IT Amphitheatre

Page 2: LabVIEW what is it, why use it?Coding standards, training, certification 10 Structure your code, get certified ! Templates Training Certification. LabVIEW real-time and FPGA makes

How we got to use LabVIEW?

2

10’000 LHC magnets to test

What type of tests?• Quench limit• Quench heater performance• Magnetic main field + harmonics• Electrical insolation• Protection diode• Splice resistance• Beam screen cooling• Cryostat heat leak• …

20 different systems needed

Page 3: LabVIEW what is it, why use it?Coding standards, training, certification 10 Structure your code, get certified ! Templates Training Certification. LabVIEW real-time and FPGA makes

How could we do it, fast and with few?

•How much time did we have?

• 4 years, before magnets would start flooding in

•How many were we in the team?

• 2 engineers

• 3 technicians

• 2 students

3

We were not so confident (panic!!)

Page 4: LabVIEW what is it, why use it?Coding standards, training, certification 10 Structure your code, get certified ! Templates Training Certification. LabVIEW real-time and FPGA makes

We needed a miracle tool

4

Something that could translate our block diagrams into working systems!

Page 5: LabVIEW what is it, why use it?Coding standards, training, certification 10 Structure your code, get certified ! Templates Training Certification. LabVIEW real-time and FPGA makes

LabVIEW

5

A graphical, dataflow-based programming language for parallel data acquisition and control systems

Page 6: LabVIEW what is it, why use it?Coding standards, training, certification 10 Structure your code, get certified ! Templates Training Certification. LabVIEW real-time and FPGA makes

LabVIEW block diagram and GUI

6

Easy to learn, easy to do = fast development!

Block diagramDrag and drop GUI

Page 7: LabVIEW what is it, why use it?Coding standards, training, certification 10 Structure your code, get certified ! Templates Training Certification. LabVIEW real-time and FPGA makes

Comparison with text based languages

7

The graphics helps understanding

int x = 0;

String y;

while (x < 5)

{

y = functionCall(x);

printf(y);

x++;

}

for (i = 0; i < 10; i++)

{

if(check(i)) break;

}

Page 8: LabVIEW what is it, why use it?Coding standards, training, certification 10 Structure your code, get certified ! Templates Training Certification. LabVIEW real-time and FPGA makes

All systems ready in time!

8Ouuff, we made it!

for the 10’00 magnets to be tested

Page 9: LabVIEW what is it, why use it?Coding standards, training, certification 10 Structure your code, get certified ! Templates Training Certification. LabVIEW real-time and FPGA makes

LabVIEW got popular …

9

... but something went wrong

Spaghetti code was produced a lot (and it’s a mess!!)

Page 10: LabVIEW what is it, why use it?Coding standards, training, certification 10 Structure your code, get certified ! Templates Training Certification. LabVIEW real-time and FPGA makes

Coding standards, training, certification

10

Structure your code, get certified !

Templates Training

Certification

Page 11: LabVIEW what is it, why use it?Coding standards, training, certification 10 Structure your code, get certified ! Templates Training Certification. LabVIEW real-time and FPGA makes

LabVIEW real-time and FPGA

11makes coding embedded systems easy

Page 12: LabVIEW what is it, why use it?Coding standards, training, certification 10 Structure your code, get certified ! Templates Training Certification. LabVIEW real-time and FPGA makes

Renewed interest from students

12

150 students signed up!

• No previous knowledge req.• Tutor was a student• Teaching for fun

• 6 evenings in IdeaSquare• 18:00 to 20:00• Certification exam at the

end for the brave ...

LabVIEW evening workshops @ CERN in 2016

Page 13: LabVIEW what is it, why use it?Coding standards, training, certification 10 Structure your code, get certified ! Templates Training Certification. LabVIEW real-time and FPGA makes

Join us for the next session

13

Join us and spread the word!

• New tutor• Same building: 3179• Renewed fun

LabVIEW evening workshops will restart in April 2017!

Page 14: LabVIEW what is it, why use it?Coding standards, training, certification 10 Structure your code, get certified ! Templates Training Certification. LabVIEW real-time and FPGA makes

Thank you for your attention !

14