LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to know if shared variables is working?

I am trying to create a VI in order to better understand shared variables with a STM32 micro-controller. What is an easy VI to create in order to know that it is working? 

0 Kudos
Message 1 of 3
(2,928 Views)

Howdy,

 

First, you will want to read through NI Developer Zone Tutorial: Using the LabVIEW Shared Varible found at http://zone.ni.com/devzone/cda/tut/p/id/4679. Next, you will want to review KnowledgeBase 53JHB7AF: Using Network-Published Shared Variables on ARM Targets found at http://digital.ni.com/public.nsf/allkb/6E50B28DDC61C0E68625767400805AA0?OpenDocument.

 

We don't have a project example for LabVIEW Embedded targets that are already made, but the Developer Zone and KnowledgeBase should get you started on how to create shared variables. I usually make a simple while loop timed to execute every 100 ms and write the loop iteration to the shared variable. I then read that shared variable on a VI that runs on my computer.

 

Here is a screenshot of what I have done:

2011-04-20_114339.jpg

 

I am not providing the code/project since I do have the STM port on my computer and I don't know what version of LabVIEW you are using. If you haven't made your own STM port then you can use one found here: http://forums.ni.com/t5/LabVIEW-Embedded/labview-for-stm32f103-development-board/td-p/1022402/page/4

Joshua B.
National Instruments
0 Kudos
Message 2 of 3
(2,907 Views)

You can also use the NI Distributed System Manager to monitor your SVs. Here is a snapshot of what it looks like:

 

NI Distributed System Manager.JPG

0 Kudos
Message 3 of 3
(2,883 Views)