Go to Post Leave it to Cheif Delphi to make a thread go from discussing the imminent game hint to discussing what is the superior pizza topping. - BriteBacon [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 28-01-2006, 14:39
brummer_13 brummer_13 is offline
Registered User
FRC #1501 (Thrust)
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Indiana
Posts: 11
brummer_13 is an unknown quantity at this point
Re: LabView Dashboard Problems

But how do i write to the source code? And how do i also get labview to show me the PWM values and the things already relaed to the driver?
Reply With Quote
  #2   Spotlight this post!  
Unread 28-01-2006, 14:55
mfwit mfwit is offline
Registered User
AKA: Matt Witmer
FRC #1640 (SaBOTage)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Downingtown, PA
Posts: 5
mfwit is an unknown quantity at this point
Re: LabView Dashboard Problems

Quote:
Originally Posted by brummer_13
But how do i write to the source code? And how do i also get labview to show me the PWM values and the things already relaed to the driver?
Click Window>Show Block Diagram

Fool around in the block diagram and you will get it.
Reply With Quote
  #3   Spotlight this post!  
Unread 28-01-2006, 15:00
brummer_13 brummer_13 is offline
Registered User
FRC #1501 (Thrust)
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Indiana
Posts: 11
brummer_13 is an unknown quantity at this point
Re: LabView Dashboard Problems

can u give me alittle more than that, the block diagram is very confusing right now
Reply With Quote
  #4   Spotlight this post!  
Unread 28-01-2006, 15:40
mfwit mfwit is offline
Registered User
AKA: Matt Witmer
FRC #1640 (SaBOTage)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Downingtown, PA
Posts: 5
mfwit is an unknown quantity at this point
Re: LabView Dashboard Problems

Quote:
Originally Posted by brummer_13
can u give me alittle more than that, the block diagram is very confusing right now
if you look at the block diagram, the 4 selector sorta thing down, is the byte that is coming in from your OI. They are all labeled based upon what they are (pwm2, pwm3, etc.). If your looking at one of the pwm bytes that is included with the template, you can copy with what you see on the diagram inside that byte and paste it into a different pwm byte.

Hope that helps,
Matt
Reply With Quote
  #5   Spotlight this post!  
Unread 28-01-2006, 21:43
Chris_Elston's Avatar
Chris_Elston Chris_Elston is offline
Controls Engineer
AKA: chakorules
FRC #1501 (Team THRUST)
Team Role: Engineer
 
Join Date: Feb 2004
Rookie Year: 2001
Location: Huntington, Indiana
Posts: 747
Chris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond repute
Re: LabView Dashboard Problems

Ah...ok...I get it now. We aren't using the default IFI Code and MPLAB, we are using EasyC. In EasyC, the user bytes aren't being sent because there is no code written to do so (default template in EasyC). If we had installed the default IFI Code, these user bytes are already included in the default code, I believe.

Thanks guys for helping one of my programmers. He is a freshman and doing very well.

I'll see if I can give him a hand now that I understand what is going on myself. (newbie to Labview)....
__________________
Team T.H.R.U.S.T. 1501
Download all of our past robot's source code here:Repository

Favorite CD quote:
"That can't be their 'bot. not nearly enough (if any) rivets to be a 1501 machine." ~RogerR: Team #1369
Reply With Quote
  #6   Spotlight this post!  
Unread 31-01-2006, 18:29
brummer_13 brummer_13 is offline
Registered User
FRC #1501 (Thrust)
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Indiana
Posts: 11
brummer_13 is an unknown quantity at this point
Re: LabView Dashboard Problems

alright now that i know what to do, how do i do it. i cant find anywhere how to change the user byte assignments
Reply With Quote
  #7   Spotlight this post!  
Unread 01-02-2006, 09:12
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,800
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: LabView Dashboard Problems

Quote:
Originally Posted by brummer_13
alright now that i know what to do, how do i do it. i cant find anywhere how to change the user byte assignments
In user_routines.c you’ll see this example line close to the end:
Code:
User_Mode_byte = backup_voltage*10; /* so that decimal doesn't get truncated. */
You can also set the following variables anywhere before a putdata()
  • User_Byte1
  • User_Byte2
  • User_Byte3
  • User_Byte4
  • User_Byte5
  • User_Byte6
So for example: User_Byte1 = 123;
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #8   Spotlight this post!  
Unread 01-02-2006, 20:13
brummer_13 brummer_13 is offline
Registered User
FRC #1501 (Thrust)
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Indiana
Posts: 11
brummer_13 is an unknown quantity at this point
Re: LabView Dashboard Problems

Quote:
Originally Posted by Mark McLeod
In user_routines.c you’ll see this example line close to the end:
Code:
User_Mode_byte = backup_voltage*10; /* so that decimal doesn't get truncated. */
You can also set the following variables anywhere before a putdata()
  • User_Byte1
  • User_Byte2
  • User_Byte3
  • User_Byte4
  • User_Byte5
  • User_Byte6
So for example: User_Byte1 = 123;

where is user_routines.c though, i found the file on my comp but i cant open it with wnything. is that what u ment or is it a part of easyc or something
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
Example LabVIEW Apps - Dashboard, CMUcam2 and Motors Russ Beavis National Instruments LabVIEW and Data Acquisition 9 21-01-2007 17:19
Labview problems and code problems ajsetter Programming 25 18-01-2006 17:07
Problems tracking with CMUCam2 in LabVIEW PhilBot LabView and Data Acquisition 5 17-01-2006 20:42
National Instruments LabVIEW and Data Acquisition Forum Danny Diaz National Instruments LabVIEW and Data Acquisition 1 16-01-2006 13:20
Custom Dashboard code for LabVIEW ready for download. archiver 2001 3 24-06-2002 00:49


All times are GMT -5. The time now is 07:28.

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