Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to bind a control to PID function block variables (Real-Time Function Block)

I created a PID function block in a VI on my CRIO using the real-time function blocks.  I configured the setpoint (and other inputs and outputs) get its value from a network-published variable.  The setpoint variable (and others) were automatically created for me.  I can drag the variable to my panel on my host computer and I can view and monitor the setpoint.  However, I can not do it manually by creating a control and binding the control to the variable.  When I atempt to to this, I can browse to the variable, but the OK button get disabled and I can not save the selection.
0 Kudos
Message 1 of 5
(4,255 Views)

mz,

 

Thanks for the post. Looks like a bug to me.

 

We will get a CAR filed on it.

 

Kurt 

0 Kudos
Message 2 of 5
(4,233 Views)

Hi MZ,

 

I am going to file a CAR for this. I will need to get some information from you:


What version of LabVIEW are you using?

Can you please provide me with the VI and steps to reproduce this.

 

Thanks!

 

Regards,
Claire Reid
National Instruments
0 Kudos
Message 3 of 5
(4,222 Views)

I am using Labview Professional Development System version 8.6.1

 

With compact RIO CRIO-9074

 

I created a target VI which runs on the cRIO.  In this VI, I added a PID function block from the function palette from the real-time\function blocks sub palette.

 

I double-clicked the PID function blocked and changed the variable scope of the setpoint to network-published.

 

Now, on the project explorer, I see the PID function block listed under the new target VI I created.

 

I open a new VI on the computer and add a new numeric control.  I right-click the control and select properties.  I select the data binding tab and change the selection to "Shared variable engine".  For the Path, I browse to the target VI on the CRIO and select the Setpoint under the PID function block and press OK.  The path shows up in the data binding tab.  But the OK is not enabled.

 

To work around this, I can drag-and-drop the setpoint from the project explorer to the new VI.  the binding is created and it works.  However, if I modify the Path (by browsing or simply by typing a new path, the OK is again disabled.

 

With shared variables that I create manually, I do not have this same problem.  If I create a variable, I can browse and select the path to the variable.

 

attached is the target VI and a PDF showing the promlem

 

 

Download All
0 Kudos
Message 4 of 5
(4,207 Views)

Thanks so much for reporting this bug and for your detailed steps! The Corrective Action Request has been filed under number: 158524.

 

Best Regards,

 

Anna K.

National Instruments
0 Kudos
Message 5 of 5
(4,161 Views)