Go to Post What is the coefficient of friction between butt and carpet? - JVN [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-2013, 02:40
fovea1959's Avatar
fovea1959 fovea1959 is offline
Herder of programmers
AKA: Doug Wegscheid
FRC #3620 (The Average Joes)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: St Joseph
Posts: 330
fovea1959 will become famous soon enough
trouble with reentrant VIs on cRIO

we have our code designed this year so that our code for keeping a shooter motor at speed is a subvi called from Periodic Tasks. It's being passed in a reference to the motor's speed Counter, a constant telling how many Counter ticks there are per revolution, and the target RPM. The outputs are motor power and the actual current RPM. We plan to use this in multiple places (multiple shooter motors), hence the use of a sub VI.

I've noticed when we mark this subVI reentrant, we cannot probe it (even with the "allow debugging" checkbox checked), and LV tends to act like the VI is running when it's not (it doesn't allow editing, for example, unless we close the VI and the calling VI's windows and reopen them). Problems go away if we don't mark it reentrant, but that destroys our reusability of the subVI (it has feedback nodes in it, which I believe break when shared among callers).

I recall check the whole reentrancy thing over the holidays (you could probe reentrant VIs, you just got a separate pane for each instance, I recall), but the target then was the PC. Are there bugs or restrictions in doing reentrant VIs on the cRIO?
Reply With Quote
  #2   Spotlight this post!  
Unread 06-02-2013, 07:55
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,751
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: trouble with reentrant VIs on cRIO

I found a post on the NI support forums that indicates it is or was not supported for RT. What I usually do is make it non reentrant and make myself feed in lots of good test vectors so that the obvious bugs are out of it before making it reentrant. And sometimes I add extra outputs so that I can probe the caller's location.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 06-02-2013, 08:17
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,517
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: trouble with reentrant VIs on cRIO

There is no good way to do this, except to remove all instances except 1 of them, make it non-reentrant, debug it completely, then make it reentrant again and replace all the ones you removed.
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 12:09.

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