element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
Personal Blogs
  • Community Hub
  • More
Personal Blogs
Legacy Personal Blogs LabVIEW Baby Steps
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Jan Cumps
  • Date Created: 15 Jun 2016 8:17 PM Date Created
  • Views 1684 views
  • Likes 1 like
  • Comments 5 comments
  • ds1052e
  • gpib
  • launch
  • programmable_load
  • labview
  • scpi
  • script
  • rigol
  • test_automation
Related
Recommended

LabVIEW Baby Steps

Jan Cumps
Jan Cumps
15 Jun 2016

I have this plan to script an automated test setup. I want to check the behaviour of GaN power FETs.

I'll need to control the input signals that drive the FETs, the load that the FETs see, and the measurement instruments.

To make this possible, I bought a license for LabVIEW Home Edition.

image

I used the coupon code that's available if you listen to The Amp Hour. To make things complete I also need to be selected for the Programmable DC Electronic Loads with the BK8600.

 

I will go through the tutorials to learn LabVIEW. But I couldn't restrain myself to try things out first.

So I checked if I could control my oscilloscope and LaunchPad with it. tl;dr yes

 

Control Rigol DS1052E via USB and SCPI

 

In a distant past, I have controlled my oscilloscope with Rigol's UltraSigma program and SCPI commands. And that works.

I have some knowledge of the commands, what they do and how to use them. That's why I selected this as a first step.

You can download the NI driver for the DS1000 family. It comes with an example project*.

image

I launched a design that aquires the waveform on channel A and shows that on screen. It works perfectly.

In my FET test script, this info will be written to a spreadsheet.

 

I also tried my first own scipt. Just a small utility that releases the remote control of the oscilloscope.

This script cancels automated control and will make the buttons on the oscilloscope active again.

It's so simple that it's the right one for a Baby Steps blog.

image

 

 

 

Control a LaunchPad via USB Serial

 

Here I did a small check to see if I could engage in a conversation with the UART module of a Hercules LaunchPad.

The LaunchPad will be my FET signal generator. It's going to create two related PWM signals.

I'll control frequency, duty cycle and deadband via LabVIEW.

I'll need to define a handshake mechanism between LabView and controller. I think I'll write a SCPI parser/controller.

That way I have the same control language accross the setup. Choosing SCPI relieves me from having to invent something from scratch.

 

For today, the Baby Step day, it's enough to check if I can engage in a conversation.

I first registered the LaunchPad's serial port as a device in the Measurement & Automation Explorer.

image

 

I loaded the UART example firmware to the LaunchPad, and tested if I could connect the LabVIEW serial port monitor program.

 

image

 

Also success image.

 

 

What Now?

 

I still don't know much of LabVIEW. But I did get a first impression. My next steps are to do the learning trail,

sniff into all the examples that are installed, and try to fully control the scope and LaunchPad.

And to submit a good application for the programmable load.

 

* There's a more recent example included in the LabVIEW installation for the DS1052E. I tried that too and it works.

I don't use that in today's blog because you have to make changes to that project to make it work with your scope.

Not hard. But not a baby step.

 

Related Blog
LabVIEW Baby Steps
LabVIEW Test Automation - Part 1: Hardware Setup
Build a Programmable Instrument
Create a Programmable Instrument with SCPI - Part 1: Parser Library
  • Sign in to reply

Top Comments

  • pettitda
    pettitda over 9 years ago +1
    I used Labview extensively in my last job. Let me know if there's any way I can help.
  • DAB
    DAB over 9 years ago +1
    Excellent Idea. I have considered labview in the past, but was not sure about the spin up time. So I will be watching your posts with great interest. DAB
  • DAB
    DAB over 9 years ago in reply to Jan Cumps +1
    I agree, an open minded review could help a lot of people make purchase decisions, even if the review identifies issues, you are still better off than a marketing brochure. So take your time, I will be…
Parents
  • DAB
    DAB over 9 years ago

    Excellent Idea.

     

    I have considered labview in the past, but was not sure about the spin up time.

     

    So I will be watching your posts with great interest.

     

    DAB

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 9 years ago in reply to DAB

    DAB, I was looking for a way to automate test for a while now.

    I chose LabVIEW mainly for three reasons:

    - it isn't very popular in blogs and on forums - people say they *have* to work with it. Still it is used a lot in industry.

    - National Instruments released a Home edition - still a little bit too pricey for me to just mess around with it. Then Digilent came with a 15 % coupon, and that brings the price down to $42.49 USD.

    - if I spend time to learn it, let's learn a skill that's sexy in the job market

     

    I'm going to tackle the subject with an open mind. Because no-one forced me to use LabVIEW, I don't have the negative bias of being forced into it. It's my own choice.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 9 years ago in reply to Jan Cumps

    I agree, an open minded review could help a lot of people make purchase decisions, even if the review identifies issues, you are still better off than a marketing brochure.

     

    So take your time, I will be looking forward to your slow and steady look into this potentially valuable tool.

     

    DAB

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • DAB
    DAB over 9 years ago in reply to Jan Cumps

    I agree, an open minded review could help a lot of people make purchase decisions, even if the review identifies issues, you are still better off than a marketing brochure.

     

    So take your time, I will be looking forward to your slow and steady look into this potentially valuable tool.

     

    DAB

    • Cancel
    • Vote Up +1 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