04-04-2018 04:44 AM
I'm trying to find the flow rate using a turbine flow meter which is connected to the CompactRio, after running the code i'm not getting any signal output.
I'm also attaching the code with it.
Solved! Go to Solution.
04-04-2018 04:50 AM
hi there!
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"?
04-04-2018 04:57 AM
Hi,
When I use the same code for finding the temperature using thermocouple it works fine.
04-04-2018 05:06 AM
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?
04-04-2018 05:10 AM
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?
04-04-2018 05:17 AM
what do you mean you get the same values ... the same as in none?
04-04-2018 05:19 AM
i've attached the picture, that's what I get.
04-04-2018 05:21 AM
and these values for every channel. Find the attached picture
04-04-2018 05:27 AM - edited 04-04-2018 05:28 AM
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
regards
EDIT: added missing word
04-04-2018 05:40 AM
No, it's not working. This is what i always get.