LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CRIO With Shared Varible feed to PC VI

Hello
 
I have a CRIO monitoring a vehicle.  The CRIO has a web server running so folks can connect and see the status of things.
 
This normally happens from across the world.  If I want to allow someone on the same network to see the CRIO points being monitored can I create a copy of the RT Controller VI on the CRIO that will run on a laptop that will recieve its data from a set of shared variables?
 
That way users from across the world can have access to the web page and go from screen to screen and the local user can see the vehicle and go from screen to screen on the VI running on thier laptop.
 
Does this sound feasable?
 
If so how do I point the laptop VI to the shared variables available on the CRIO?
 
Also, what kind of speed can be expected from this configuration?
 
I already have the shared variable engine loaded on the CRIO.
 
Best Regards
Tim C.
1:30 Seconds ARRRGHHH!!!! I want my popcorn NOW! Isn't there anything faster than a microwave!
0 Kudos
Message 1 of 6
(5,157 Views)
Another area that I could use some thoughts on is converting the RT Host VI to allow it to run on the Laptop PC.
 
I was thinking I could simply use property nodes of the FP indicators and connect them to the applicable networked shared variable from the CRIO.
 
Does this sound Correct?
 
Thanks
Tim C.
1:30 Seconds ARRRGHHH!!!! I want my popcorn NOW! Isn't there anything faster than a microwave!
0 Kudos
Message 2 of 6
(5,154 Views)

Forget.....  I have a DMA transfer happening between the FPGA and the RT Controller so I am assuming that a shared variable pointing to the FIFO might be an option as well in lieu of making individual shared variables for each indicator located on the RT Controller Host VI.

 

What I am failing to see is how I actually get my VI running of the laptop to connect to the Networked shared variables.

 

thanks

Tim C.

1:30 Seconds ARRRGHHH!!!! I want my popcorn NOW! Isn't there anything faster than a microwave!
0 Kudos
Message 3 of 6
(5,150 Views)

That last one was a dumb thought,,,, there is no FIFO because I connected to the FPGA through an FPGA reference.

Would it be best to create a FPGA FIFO and create a networked shared variable linked to the FIFO or create individual network shared variables linked to the RT Host FP indicators?

 

thanks

Tim C.

 

 

1:30 Seconds ARRRGHHH!!!! I want my popcorn NOW! Isn't there anything faster than a microwave!
0 Kudos
Message 4 of 6
(5,144 Views)
 

Hi Tim,

All you need to do is drag the shared variable node onto the block diagram of your laptop VI. 

Also, you may be interested in this white paper on Using the LabVIEW Shared Variable.  Section 3 discusses network shared variables in relation to Real-Time. 

 

Jennifer R.
National Instruments
Applications Engineer
0 Kudos
Message 5 of 6
(4,906 Views)
Tim,

You might not be able to afford this (for performance and reliability reasons), but you can always run the Host FPGA VI on your laptop and have it communicate over the network with the cRIO. Be aware that the host to FPGA communication will be a lot slower.

good luck.
0 Kudos
Message 6 of 6
(4,887 Views)