LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to add default values to shared variables

 

Hello

I am following the tutorial

http://www.ni.com/tutorial/11199/en/

in step 21 

21.   To complete the real-time application, place a copy of each variable in the startup frame with default values wired to them as shown. Also place a Wait (ms) function in the regular while loop with a value of 100 to time the network publishing.

 

Would you please elaborate on this step

Also in the below photo at the left frame flat structure  they add shared variabled called loop comm  which is not in the project 

any explaination?

Thanks

 

 

0 Kudos
Message 1 of 5
(3,744 Views)
See below.  If it doesn't answer you questions, then please be more specific in your questions.


@Ihab wrote:

 

Hello

I am following the tutorial

http://www.ni.com/tutorial/11199/en/

in step 21 

21.   To complete the real-time application, place a copy of each variable in the startup frame with default values wired to them as shown. Also place a Wait (ms) function in the regular while loop with a value of 100 to time the network publishing.

 

Right click.  Create Constant on the shared variables.

 

Would you please elaborate on this step

Also in the below photo at the left frame flat structure  they add shared variabled called loop comm  which is not in the project 

any explaination?

Thanks

 

It is in the project under the library RTComm.lvlib under the RT target.

 

 


 

0 Kudos
Message 2 of 5
(3,741 Views)

Ok

Thanks I accept part one as solution for default values for shared variables

But part two No,

It was named "Data Buffer " not "comm Loop" as below - please check

0 Kudos
Message 3 of 5
(3,732 Views)

I saw it in the project in the "Scan Mode" directory in the download from the page you linked to.

 

How did you get that image if you didn't download the code?

0 Kudos
Message 4 of 5
(3,726 Views)

It is very simple

I did not download the code 

I build it following the steps

in the pdf file

I copied the photo from the browser

Now \I downloaded the code and I have seen it

It means it needs to be corrected in the tutorial pdf

and also

one more part 

is to add shared variable access mode  read or write must also be added

Thanks

0 Kudos
Message 5 of 5
(3,719 Views)