LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

Before you submit code to the Code Repository, please make sure you have read the following:
Introduction - Submission Guidelines - Submission Procedure - (post questions here)

  Search Files 

> Picture Hacks

Screenshot
File Information
File Name Picture Hacks by AdamRofer
Submitted Nov 13 2006, 08:00 PM
Last Updated Nov 14 2006, 06:21 PM
File Type File Type (zip - application/zip)
Screenshot Click here for full screenshot
Statistics
File Size 101.78K (Estimated Download Times)
Views 2974
Downloads 428
Add Rating
Picture Hacks V1.0.1

Copyright © 2006, Adam Rofer
All rights reserved.

Author:
Adam Rofer
good4me@hotmail.com

Distribution:
This code was downloaded from the LAVA Code Repository: http://forums.lavag.org/downloads.html

Description:
A couple of Picture datatype hacks to illustrate the structure of the (LV 6.1 - LV 7+ is untested) picture control.

-- Main VIs --

Example - Show How Picture Is Made.vi:
Main example, shows (incrementally) how a specific picture is generated by displaying the picture with each packet
incrementally added. Good way to see how your own pictures display information.

Opcodes.csv:
Comma-delimited file explicitly describing the packet types and their requirements / uses.

Tool - Picture concat.vi:

Given two pictures, concatenates the data to create a single overlapped picture.

Tool - Packets to Picture.vi:

Given an array of picture packets (cluster), generates a picture.

Tool - Picture to Packets.vi:
Given a picture, generates an array of picture packets.

-- Utility subVIs --

sub - 8-Bit string to 32-Bit number.vi:
utility VI to cast a string to a 32-bit number. Typecast might work instead but this is more explicit.

sub - Find Opcode:
Given a picture data string that has the size header removed, this will extract an opcode from the front.

sub - Strip top of and check picture.vi:
Utility VI to strip the header (size) from a picture data string so that it can be scanned for packets.



Support:
If you have any problems with this code or want to suggest features:
http://forums.lavag.org/CR-Picture-Hacks-t4802.html

Change Log:
1.0.1: (11/13/06)
Cleaned up code for LAVA requirements:
- Renamed VIs for clarification of purpose
- Fixed coercion dots
- Added 0ms delays in all loops
- Added error encapsulation in some subvis
- Replaced local variable for cluster to constant in order to limit thread swapping between the user interface and code threads


1.0.0: (11/07/06)
Cleaned up code from 6i 2001 version for submission.

License:
Creative Commons Attribution 2.5 License
Other Information
Support Topic Click here to visit support topic
File Version 1.0.1
LabVIEW Version 6.1.x
License Creative Commons Attribution 2.5 License
Operations
Approved by crelf on Nov 13 2006, 08:16 PM
Download File

Search Files 

Collapse

> Code Repository Statistics

Last ten submissions accepted · Downloads system statistics 
2 user(s) active in the past 15 minutes
Active Users 2 guests, 0 members, 0 anonymous members
Code Repository Statistics
Board Stats We have a total of 74 files in 13 categories
A total of 40 unique authors have submitted to our site
There have been 28710 logged downloads to date
The latest file submitted was Skype SDK by Antoine Châlons (submitted Dec 24 2008, 09:44 AM)


Time is now: 6th January 2009 - 05:39 AM