Go to Post We're engineers. We fix problems, not complain about them. - plnyyanks [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 06-02-2016, 12:09
sistamatik5583 sistamatik5583 is offline
Registered User
FRC #5583
 
Join Date: Feb 2016
Location: St. Louis
Posts: 6
sistamatik5583 is an unknown quantity at this point
Controller won't connect to Accel function

We started off with Arcade Drive this year, and wanted to change it to Tank Drive, so we started changing things around using the code from last year as an example.
However, last year's code had an Enum Constant named "Controller 1" that connected to the Open Accel function toward the top into an input that said "controller". This year, on the other hand, will not allow us to connect "Controller 1" into an input with the name "controller". Everything else works fine and connects beautifully. Any suggestions?


P.S. Sorry if the terminology is off--I just started programming in LabVIEW, so I'm trying to learn as I go.
Reply With Quote
  #2   Spotlight this post!  
Unread 06-02-2016, 12:48
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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,713
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: Controller won't connect to Accel function

I don't remember how Accel Open used the controller 1 input last year.
Can you post the vi file from last year that used it, then we could look at it.
I'll be in documents/LabVIEW Data/whatever last year's project name was

Alternately, how would you like it to be used?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 06-02-2016 at 12:53.
Reply With Quote
  #3   Spotlight this post!  
Unread 06-02-2016, 12:55
sistamatik5583 sistamatik5583 is offline
Registered User
FRC #5583
 
Join Date: Feb 2016
Location: St. Louis
Posts: 6
sistamatik5583 is an unknown quantity at this point
Re: Controller won't connect to Accel function


(Praying this will actually work!)
Reply With Quote
  #4   Spotlight this post!  
Unread 06-02-2016, 13:05
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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,713
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: Controller won't connect to Accel function

Almost, but not quite.

If you can't post the actual last year's vi, but have last year's code, then
in LabVIEW,
  1. Highlight all that you took a screenshot of there in last year's code
  2. Go to Edit->Create VI Snippet from Selection
  3. Save the snippet and post that
A snippet is a special picture that also contains the actual code used.
We can drag images that are Snippets onto a LabVIEW block diagram and it will be executable code.

So what the vi or the snippet will do is give us the actual code to look at.
The code is more than just what you see.

For instance, in last year's code you can double-click on Accel Open and it will open that old vi and you can see what it did with the controller input.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 06-02-2016 at 13:08.
Reply With Quote
  #5   Spotlight this post!  
Unread 06-02-2016, 13:11
sistamatik5583 sistamatik5583 is offline
Registered User
FRC #5583
 
Join Date: Feb 2016
Location: St. Louis
Posts: 6
sistamatik5583 is an unknown quantity at this point
Re: Controller won't connect to Accel function


Perhaps like this?
(Also, thank you so much for helping out! We really appreciate it!)
Reply With Quote
  #6   Spotlight this post!  
Unread 06-02-2016, 13:22
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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,713
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: Controller won't connect to Accel function

You did it right, but it didn't do what I'd hoped for.
It turns to code, but still pulls this year's Accel Open from this year's library.

I'd suggest just removing the controller input and use the Accel Open with only the Accel Range as an input.
I can't imagine what useful purpose the controller would have served anyway.
The internal accelerometer just sends back what it senses. There's no controller input.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #7   Spotlight this post!  
Unread 06-02-2016, 13:59
sistamatik5583 sistamatik5583 is offline
Registered User
FRC #5583
 
Join Date: Feb 2016
Location: St. Louis
Posts: 6
sistamatik5583 is an unknown quantity at this point
Re: Controller won't connect to Accel function

Okay, thank you so much! This was incredibly helpful!
Reply With Quote
  #8   Spotlight this post!  
Unread 06-02-2016, 21:41
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Controller won't connect to Accel function

Once upon a time, the roboRIO was a cRIO. It had modules that plugged into slots that read a specific I/O type, and you could plug in multiple modules. The subVIS for Open commonly took a channel # and slot # as input parameters.

When first ported to the roboRIO, this slot # input parameter was changed to controller, to let you choose which roboRIO. The implementation was never finished and the parameter was later removed.

Greg McKaskle
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


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

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