element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Test & Tools
  • Technologies
  • More
Test & Tools
Blog 33622A arbitrary waveform generator helps Batman with a new "Bat Signal"
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Test & Tools to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Robert Peter Oakes
  • Date Created: 10 May 2014 3:39 AM Date Created
  • Views 1612 views
  • Likes 1 like
  • Comments 9 comments
  • RoadTest
  • waveform
  • 33622a
  • generator
  • batman
  • arbtrary
Related
Recommended

33622A arbitrary waveform generator helps Batman with a new "Bat Signal"

Robert Peter Oakes
Robert Peter Oakes
10 May 2014

Link back to primary review http://www.element14.com/community/roadTestReviews/1744

 

Yes, sadly this is true, Batman's signal light on top of Gotham city has been rendered inoperative by the Evil Plastic Man, Wayne Enterprises has been provided secret help from the labs at Element 14 who assure Bruce that the new Agilent 33622A Arbitrary Waveform Generator can save the day.

 

What are the requirements you may ask,

 

it must be invisible to the bad guys (And girls... You know who you are imageso they don't know Batman is coming to the rescue

It must be detectable by Bat sensors on the Bat network and human viewable if needed from across the room (Alfred is not as young as he used to be)

it must be able to work with the Bat network even if it is running slow due to Bat Processing

The receiver must look like regular lab equipment incase of discovery, giving Bruce plausible deniability

 

Over to Wayne Enterprises Secret lab....

 

Scientist 1.... how can we create such a signal, the previous solution was child's play, we cut out a silly bat in cardboard and put it on a honking big light... Done. I did not have to do any research or homework (Truth be known, I got my grand Daughter to cut it out for me, we where playing shadow puppets ) Shhhhh.

Scientist 3... We can use the new Agilent 33622A we have received from the base of Element 14, our secret benefactor and supplier of all things cool, it can send almost any signal we can dream of and all we need is a suitably complex formula for the Bat Signal, Batman has already reviewed its awesomeness and will be able to use it easily look here :-http://www.element14.com/community/roadTestReviews/1744

Scientist 2... I know, over to Boogle, the BAT search engine, it contains the sum knowledge of all man kind and some

 

wow, what's this

 

first hit. searching for "batman  logo formula'... who needs kids when you can do it with a mathematical genius...the bad guys will never figure this out, its so nice the good folks of Gotham have nothing to worry about and find the time to post pretty formulas of their hero's

 

A few clicks later,,

 

Holy Math problems Batman, how can we send this over the Bat net... Oh no were going to have to think on this

 

The Formula (s) the Scientists agreed to implement where the following, all four of them are needed


2*sqrt((‑abs(abs(x)-1))*abs(3-abs(x))/((abs(x)-1)*(3-abs(x))))*(1+abs(abs(x)-3)/(abs(x)-3))*sqrt(1-(x/7)^2)+(5+0.97*(abs(x-0.5)+abs(x+0.5))-3*(abs(x-0.75)+abs(x+0.75)))*(1+abs(1-abs(x))/(1-abs(x)))


(‑3)*sqrt(1-(x/7)^2)*sqrt(abs(abs(x)-4)/(abs(x)-4))


abs(x/2)-0.0913722*x^2-3+sqrt(1-(abs(abs(x)-2)-1)^2)3+sqrt1)^2)


(2.71052+1.5-0.5*abs(x)-1.35526*sqrt(4-(abs(x)-1)^2))*sqrt(abs(abs(x)-1)/(abs(x)-1))+0.9


(For full disclosure the Bat team found the formula Here :- https://www.google.ca/?gfe_rd=cr&ei=Lr1uU5KhJ8OC8QfrjoHgDA#aq=f&aqi=&aql=&gs_sm=3&gs_upl=1000l1000l0l1996l1l0l0l0l0l0l0l… )


Scientist 2...I know, convert it to a square wave and send it with the amplitude and offset changing only, if the bad guys see it they will think its just test data... but how!!


Scientist 1... See Sharp


1/2 hr later... I cant find anyone called Sharp ?.. (Faint Slap is heard in the background)


C# silly, not See Sharp, even if you did find Sharp, he does not have the clearance for this


So a bit of programming later and we have some data..Yaaaaa


of course during the party that followed, someone thought it was a good idea to share back to the community the code they created (Its a good job bad guys don't bother researching, they get the good guys to do it for them and we can trust the good guys from team TM)


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication4
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        private void button1_Click(object sender, EventArgs e)
            
        {
            const int count = 10000;
            const double minVal = -8;
            const double maxVal = 8;
            double increment = (Math.Abs(minVal) + Math.Abs(maxVal)) / count;
            richTextBox1.Clear();
            richTextBox1.AppendText("File Format:1.10" + Environment.NewLine);
            richTextBox1.AppendText("Channel Count:1" + Environment.NewLine);
            richTextBox1.AppendText("Sample Rate:80000" + Environment.NewLine);
            richTextBox1.AppendText("High Level:1" + Environment.NewLine);
            richTextBox1.AppendText1" + Environment.NewLine);
            richTextBox1.AppendText("Filter:\"off\"" + Environment.NewLine);
            richTextBox1.AppendText("Data Points:" + count*2 + Environment.NewLine);
            richTextBox1.AppendText("Data:" + Environment.NewLine);
            double x = 0;
            int pVal = 0;
            int nVal = 0;
            int counter = 0;
            for (counter = 1 ; counter < count; counter++)
            {
Math.Abs(minVal);
                double y1 = 2 * Math.Sqrt((-(Math.Abs(Math.Abs(x) - 1))) * Math.Abs(3 - Math.Abs(x)) / ((Math.Abs(x) - 1) * (3 - Math.Abs(x)))) * (1 + Math.Abs(Math.Abs(x) - 3) / (Math.Abs(x) - 3)) * Math.Sqrt(1 - Math.Pow((x / 7), 2)) + (5 + 0.97 * (Math.Abs(x - 0.5) + Math.Abs(x + 0.5)) - 3 * (Math.Abs(x - 0.75) + Math.Abs(x + 0.75))) * (1 + Math.Abs(1 - Math.Abs(x)) / (1 - Math.Abs(x)));
1.35526*Math.Sqrt1),2))))*Math.Sqrt1))+0.9;
3)*Math.SqrtMath.Pow((x/7),2))*Math.Sqrt4));
3 + Math.Sqrt(1 - Math.Pow((Math.Abs(Math.Abs(x) - 2) - 1) , 2));
                if (Double.IsNaN(y1)) y1 = 0;
                if (Double.IsNaN(y2)) y2 = 0;
                if (Double.IsNaN(y3)) y3 = 0;
                if (Double.IsNaN(y4)) y4 = 0;
pVal = (int)((y1 + y4) * 4096);
nVal = (int)((y2 + y3) * 4096);
                richTextBox1.AppendText(pVal + Environment.NewLine);
                richTextBox1.AppendText(nVal + Environment.NewLine);
            }
            // Write the string to a file.
            System.IO.StreamWriter file = new System.IO.StreamWriter(@"c:\temp\BatMan.arb");
            file.WriteLine(richTextBox1.Text.TrimEnd());
            file.Close();
        }
    }
}



OK, now were getting somewhere, 10,000 data points that can be transmitted at almost any speed, the bat sensors can decode at the other end knowing the formula and oh... um what about Alfred, he needs a screen that looks like well something ordinary


an Oscilloscope shouts scientist number 3, Mr Wayne is always playing with them and so it would be normal to see many at Wayne manor just lying around... Boys and their Toys image


Ok, testing time, where's the generator


Holy Bat cave , its gone already, its on the Bat net but over in the Bat cave


What's this!, someone has left a secret package at he lab, its not ticking so lets open it


wow, everyone gasps in Awe, its the Agilent BenchVue software, this is great, we can send the data remotely to the generator at the bat cave for testing and batman can deliver it later to GCPD... Perfect

image

So here is the actual upload and testing secretly videoed for your enjoyment

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image


Link back to the review of the 33622A : http://www.element14.com/community/roadTestReviews/1744



Attachments:
batman.arb.zip
TheBatSignalProject.zip
  • Sign in to reply
Parents
  • DAB
    DAB over 11 years ago

    I agree with Mark,

     

    You have been possessed by your avatar and it is playing with your mind. image

     

    Then again, maybe you are the sane one and the rest of us are lost.  image

     

    Anyway, good post.

     

    DAB

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Kilohercas
    Kilohercas over 11 years ago in reply to DAB

    Copycat, that was my demo image

    image

    And it was done with my own arb generator based on 16b 50MSps DAC and waveform was generated inside STM32F407. And i will do that in frequency domain, beat that if you can image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Robert Peter Oakes
    Robert Peter Oakes over 11 years ago in reply to Kilohercas

    Copy Cat... No

    Like minded perhaps image

     

    I assure you, not a deliberate copy, I never seen your demo and did not plagiarise anyone else's either , please link it in as It would be interesting to compare notes. I simply applied the formula in a way to demonstrate the awesome capability of the 33622A, which of course can not consume the formula directly, everything aside from the formula was original thinking by me and with a theme added to the story line. All code and Data provided in the Blog is also original and created by me and deliberately posted so others can use if they want,

     

    The only thing I found was the formula on the internet using Google (Im not smart enough to figure that kind of maths, just smart enough to convert it into a C# code version), there are so many examples of that formula it is hard to find who first created it.

     

    All I can say is "Bat thinking Good Man", great minds think alike Oh, and Nice Scope...

     

    Peter

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Robert Peter Oakes
    Robert Peter Oakes over 11 years ago in reply to Kilohercas

    Just found your post, very nice

     

    Looks like we were attacking a similar problem but for different devices, Your demonstrating an Oscilloscope capability and used a cool Micro-controller board and code outputting on its DAC to do it, I was demonstrating a Waveform Generator and using a Scope to display its output... Like I said, great minds think alike. Nice job on your review.

     

    Peter

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • Robert Peter Oakes
    Robert Peter Oakes over 11 years ago in reply to Kilohercas

    Just found your post, very nice

     

    Looks like we were attacking a similar problem but for different devices, Your demonstrating an Oscilloscope capability and used a cool Micro-controller board and code outputting on its DAC to do it, I was demonstrating a Waveform Generator and using a Scope to display its output... Like I said, great minds think alike. Nice job on your review.

     

    Peter

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube