09-12-2008 06:06 AM
HI,
I have to transfer 8 analog AC voltage values from RT to Windows VI. And 5 Boolean values from RT to windows. So I am planning to use networked shared Variable (not real-time FIFO) to transfer these values from RT to windows. The AC voltages have to be plotted as waveforms on windows VI. I have created the variable library in RT and the variables are underneath it.
Also, I have few boolean variables whose value will be updated in windows VI and read in RT. The project explorer shows the Windows VI ,
the RT controller with RT VIs and FPGA VI.
My doubt is , if i have to have two shared variable libraries, one on windows for variables which get updated on windows VI and one shared variable library on RT for variables getting updated on RT. Or is one library on RT sufficient.
- Do I have to create variables on windows and then bind them to the RT variables (vice-versa) or directly use the variables of RT in Windows without binding.
- I ran the RT VI continuously ,then ran the windows VI , i got a message saying that the Shared Variable is not available on the Variable Manager. But i have the AutoDeploy ON.
- Do i have to install additional software on RT for shared variables like Variable Engine sotware etc. My other RT program without shared variables works fine.
-The shared variables will be in a while loop. So RT VI should update as soon as the variable value is changed in windows VI and Vice-versa.
Thanks alot.
09-12-2008 08:23 AM
Do you have basic "doubts" or do you have basic "questions"? (Those 2 words mean completely different things.)
You should be able to have your system work with just a single shared variable library on either the windows PC or the RT PC. There are pros and cons for why you would want to put it on one or the other. In my applications, I find it better to have the shared variable library on my real time controller as that is the one I'm more concerned with operating properly in the event a network problem causes loss of communication between the two systems.
One thing I didn't see in your description of the project explorer is that the shared variables being located in the tree under either the Windows PC or the RT controller. Perhaps you could post a screenshot of your project explorer window.