Go to Post It's kind of magical how I went from legos to replacing most of the iron in my blood with aluminum, and all thanks to my elementary school science teacher. - Astrokid248 [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


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