element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Achievement Levels
    • Benefits of Membership
    • Feedback and Support
    • Members Area
    • Personal Blogs
    • What's New on element14
  • Learn
    Learn
    • eBooks
    • Learning Center
    • Learning Groups
    • STEM Academy
    • Webinars, Training and Events
  • Technologies
    Technologies
    • 3D Printing
    • Experts & Guidance
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Arduino Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Project Groups
    • Raspberry Pi Projects
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Or 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
Personal Blogs
  • Members
  • More
Personal Blogs
Legacy Personal Blogs LabVIEW Baby Steps
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Jan Cumps
  • Date Created: 15 Jun 2016 8:17 PM Date Created
  • Views 927 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 7 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 7 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 7 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
  • pettitda
    pettitda over 7 years ago

    I used Labview extensively in my last job.  Let me know if there's any way I can help. 

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • pettitda
    pettitda over 7 years ago

    I used Labview extensively in my last job.  Let me know if there's any way I can help. 

    • 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 © 2023 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