12-03-2014 01:29 AM
I have a VI which I found online for calculate the heart beat per minute (BPM).
"Heart rate monitor.vi"
In another vi, index.vi, I have a big window with many charts because I would like to visualize all the signals getting to my acquisition board in real time:
I would like to use the "heart rate monitor.vi" to run without showing itself and pass the signal to the index.vi so I can visualize it on the chart there, and also I would like to pass the decimal string of the beat per minute.
In the future I will need to do the same with the other different signals, so I guess it will be in the same way.
Can someone please help me?
If there is another easier way of doing that please tell me, I'm quite new to labview
Solved! Go to Solution.
12-03-2014 03:25 AM - edited 12-03-2014 03:26 AM
Hi simo,
what kind of help do you expect when we don't know your "Heart rate monitor.vi" nor your "index.vi"? Should we start to debug your images?
I'm quite new to labview
Then you should start with all those FREE online courses offered by NI.
They will also handle your thread topic of "passing data to sub VIs"…
12-03-2014 03:28 AM
Hello Simo,
There are number of method to share data between one VI to another but, As you are new to LabVIEW, I will tell you one simple method of data sharing between two VIs.
Step 1: Just place global variable in "Heart rate monitor.vi", as shown in below image.
Step 2: double click on placed global varialbe. By doing so a window will open.
Step 3: Simply place the "Heart Rate Monitor" graph and BPM indicator in global VI which you want to share data to index.vi and Save Global.vi at your local drive
Step 4: Then wire this variable with "Heart Rate Monitor" graph and BPM indicator in "Heart rate monitor.vi" (Global Varialbe will be in Write Mode)
Step 5: Place this global variable (Global Varialbe will be in Read Mode) in index.vi and wired it to any of your front panel graph.
Step 6: After following this process you have to put "Heart rate monitor.vi" in index.vi and run it so parellely "Heart rate monitor.vi" will be also run and share BPM data to index.vi.
Note: By doing so youhave to also share stop condition to your "Heart rate monitor.vi" from index.vi in same manner, then you can stop both vi at a time otherwise "Heart rate monitor.vi" will not stop and index.vi will remain in execution mode only.
If you have still any further query please write me.
12-04-2014 01:18 AM
Hello Vinal_G
Thank you! I tried it but it looks like it pass the array not the dynamic data wire (the blue wire coming out from the DAQ assistant).
How can I pass the dynamic data instead of the orange wire?
I made a small example, is attached. First run the index and then I pass the global variable to the global1.vi which pass it to the monitov.vi.
Regards
12-04-2014 01:32 AM
You can convert dynamic to Array and Array to dynamic.
12-04-2014 02:02 AM
Of course, thank you!