first off .. you didn't attach code, you attached a picture of code.
use a queue to transfer info between the two loops (or something equivalent, have a look at producer-consumer design pattern)
and regarding your problem, did you make sure, you get values in "NI Distributed System Manager"?
since you use a network shared variable already, why do you need to stuff the data into another one? you could just read the first. depending on the settings, you get the same value anyways.
and did you verify you get values from this specific data source via the distributed systems manager?
The code I've written was on the NI tutorial and i followed the same trend it was also to record the data into a TDMS file and yes, I did check it on Ni distributed system manager I do get the same values. Could it be something wrong with the wiring connections itself when wiring the flow meter to the compactRio?
what do you mean you get the same values ... the same as in none?
i am guessing, but i think your timed loop configuration messes with your data.
to test this, create a new vi with a simple loop and a "wait miliseconds" of 100 and your shared variable in it, and see if you get values.
if so, you have to change the timed loop settings to, i suppose, to higher values
EDIT: added missing word