VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

I am having issues with subVi's after using the custom device template

Solved!
Go to solution

I used the custom device template to start my custom device and i have had success in deploying until I started making more complicated subVi's.   I currently am trying to convert FPGA low and high ticks to duty cycle, but for some reason when i add it to the RT Driver VI 'Read Data From HW', it seems to cause a time out.... any thoughts? Is a loop okay? I have added a time delay but am still having issues. It is an inline device, so i am suspicious about it hogging resources, but am not sure.

 

 THe attached images are meant to be read like this:

1. The ReadDataFromHW case of the RT Driver

2. This is the subVi that calls ToDutyCycle SIMStimPWMSubVI

3. ShiftRegister.PNG is the inside of the SubVI.

0 Kudos
Message 1 of 3
(4,230 Views)
Solution
Accepted by topic author wegunterjrASI

As a roboticist I celebrate early and often (usually through a failure or two...), but it seems that the answer was to basically convert the While Loop to a for loop with a count of 1, and then remove extra elements to make sure each shift register has only one, and then right click on the shift registers and convert to Feedback Node....
I was able to deploy to VeriStand as a Custom Device and it runs and calculates the Duty Cycle without any issues. WOOHOO!!! Where is that celebrate button!

0 Kudos
Message 2 of 3
(4,179 Views)

Hello,

 

Thanks for posting that you were able to resolve your issue.

 

Please see attached for celebration.

 

Regards,

Thomas C.
FlexRIO Product Support Engineer
National Instruments
0 Kudos
Message 3 of 3
(4,129 Views)