06-30-2009 04:28 AM
Hi,
This is more of asking for a suggestion than asking the solution to a problem.
At the moment I have two independent VI's
1st VI - Acquire pulse data in real time, filter it, detect peaks, take tiem difference between peaks, use this information to calculate a number of parametres that change in real time depending on the changes in pulse signal.
2nd VI - Select a breathing rate and guide the user using the fornt panel bars and audio output to follow a rountine.
Now I want to combine the two VI's such that the 1st VI processes data and sends some information to 2nd VI. The loop runs at half a second interval so data is dumped into an array every half a second.
The second VI will, depending upon the data obtained form 1st VI, either use this data to change the front panel bar and audio frequencyto guide user or it may use its own values.
The second VI will take teh data from 1st VI every few seconds and then perform its own front panel tasks.
The idea is to create a biofeedback system which guides the user (2nd VI) based on user physiological signals (calculated in 1st VI)
I have read through information on parallel loops and how data is transferred amongst them. I havent yet implemented any of these and have limited time in my project so wish to get some suggestions.
I would want two front panels so that the data gathering and prcessing graphs are displayed on 1st FP and user guidance on 2nd. I am sure this can eb done by using 2nd VI as sub VI. but not sure if this is the best way two of these should communicate.
ANy suggestions welcome.
Thanks,
Jas
Solved! Go to Solution.
06-30-2009 06:56 AM
HI Jas,
I think that using your 2nd VI as an sub VI is good thing as in the 1st VI you can acquire and can display the graph and the sub vi FP you use as an user guidance.
06-30-2009 07:02 AM
Thanks AHK.
Any suggestions on how I should pass the data. Is global / local variable fine
06-30-2009 07:12 AM
06-30-2009 07:13 AM