Skip to content Skip to navigation Skip to collection information

Connexions

You are here: Home » Content » Communication Systems Projects with LabVIEW » util_BitstreamFromText.vi

Navigation

Table of Contents

Lenses

What is a lens?

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

This content is ...

In these lenses

Recently Viewed

This feature requires Javascript to be enabled.

Tags

(What is a tag?)

These tags come from the endorsement, affiliation, and other lenses that include this content.
 

util_BitstreamFromText.vi

Module by: Ed Doering. E-mail the authorEdited By: Brett Hern, Erik Luther, Sam Shearman

Summary: Build a LabVIEW subVI to generate a bitstream from a text character sequence.

Table 1
LabVIEWtop.png This module refers to LabVIEW, a software development environment that features a graphical programming language. Please see the LabVIEW QuickStart Guide module for tutorials and documentation that will help you:
• Apply LabVIEW to Audio Signal Processing
• Get started with LabVIEW
• Obtain a fully-functional evaluation edition of LabVIEW

Note:

Visit LabVIEW Setup to learn how to adjust your own LabVIEW environment to match the settings used by the LabVIEW screencast video(s) in this module. Click the "Fullscreen" button at the lower right corner of the video player if the video does not fit properly within your browser window.

LabVIEW SubVI: util_BitstreamFromText.vi

  • Description: Generate a bitstream from a sequence of text characters. Framing bits (start bit and stop bit) may optionally be added to the bitstream. The bitstream is also available in the form of a wordstream.
  • Category: General-purpose utility ("util" prefix)

Inputs (Controls)

  1. text -- string
  2. insert framing bits (F) -- Boolean
  3. start bit value (T) -- Boolean

Parentheses ( ) indicate default value; square brackets [ ] designate units.

Outputs (Indicators)

  1. bitstream out -- 1-D Boolean array
  2. wordstream out -- 2-D Boolean array

Required Behavior

  • Converted text follows the indexing schemes imposed by the LabVIEW built-in nodes "String to Byte Array" and "Number to Boolean Array."
  • When requested, the "start bit value" will be prepended to the 8-bit Boolean value, and the complement of the "start bit value" will be appended to the 8-bit Boolean value.
  • The wordstream is an Nx8 2-D version of the 1-D bitstream (Nx10 if framing bits have been inserted), where "N" is the number of characters in the text control.

LabVIEW Coding Tips

View the screencast video in Create a SubVI in LabVIEW to learn the mechanics of subVIs.

Refer to the Figure 1 screencast video for LabVIEW coding tips and techniques specific to this subVI.

Figure 1: [video] LabVIEW coding tips and techniques for util_BitstreamFromText.vi
Figure 1 (subVI_util_BitstreamFromText-vi.htm)

Collection Navigation

Content actions

Download module as:

Add:

Collection to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks

Module to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks