Go to Post They showed me a new item and said "we don't know how to list this on the inventory." I took one look, started laughing and said "In my world that is called a game piece, aka, a tote." - RoboMom [more]
Home
Go Back   Chief Delphi > Technical > National Instruments LabVIEW and Data Acquisition > LabView and Data Acquisition
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 08-02-2007, 20:54
b_mallerd b_mallerd is offline
Programmer
FRC #1346 (Trobotics)
Team Role: Programmer
 
Join Date: Dec 2005
Rookie Year: 2005
Location: Vancouver
Posts: 35
b_mallerd is on a distinguished road
Send a message via MSN to b_mallerd
Pull data out of Case Statement

Hi everyone, I have a question about the case statements in the supplied Labview Application:


Lets say I wanted to put more than 1 data on a graph, for example, PWM01 and PWM08. Does anyone know how I can pull data from different Case Statements and put them together on a graph without causing an error?
__________________
Reply With Quote
  #2   Spotlight this post!  
Unread 09-02-2007, 12:25
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,584
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Pull data out of Case Statement

I'm by no means a labview expert, but here is how I got this to work last year.

In one case, I created a simple numeric display of the first variable. Then, in the second case, I created a local variable (Programming -> Structures> Local Variable) that referenced the numberic display in the other case. I've attached a picture of what I did.

I also used the concepts from this example VI for displaying multiple items on a graph: http://www.chiefdelphi.com/forums/sh...ad.php?t=45210

I hope this helps.
Attached Thumbnails
Click image for larger version

Name:	reference_variable.PNG
Views:	62
Size:	7.0 KB
ID:	5033  
Reply With Quote
  #3   Spotlight this post!  
Unread 09-02-2007, 20:37
b_mallerd b_mallerd is offline
Programmer
FRC #1346 (Trobotics)
Team Role: Programmer
 
Join Date: Dec 2005
Rookie Year: 2005
Location: Vancouver
Posts: 35
b_mallerd is on a distinguished road
Send a message via MSN to b_mallerd
Re: Pull data out of Case Statement

Thank you for the suggestion of using local variables. It's working for me, thanks!
__________________
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Design of a pull out eletrical panel Rombus Electrical 7 13-03-2006 22:41
Wires Pull Themselves Out coastertux Programming 16 23-02-2006 00:36
Mission Statement Madison FIRST-related Organizations 11 19-05-2003 14:54


All times are GMT -5. The time now is 01:31.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi