04-08-2021 06:08 AM
Hi, I am struggling with certain aspects of my project. I am trying to make the simulation work automatically, so looking at 'front panel pt 2', the aim is to get the values for heart rate, respiratory rate and g-force to change automatically together, at every second. So starting from the 1st row of the array (right-hand side) and working its way down. At the moment, I am having to click on the indicators to change the values.
Next, I want to make the graphs display the values one at a time too, simultaneous to the changing of the values (so every second). At the moment, the graph displays the full values of heart rate and respiratory rate in one go.
I've attempted using a loop but could not figure it out as I have very limited knowledge of LabVIEW.
Thank you so much.
Kaif
Block diagram
Front panel pt 2
Front panel pt 1
04-08-2021 09:25 AM
You will get much better help if you attach your VI instead of pictures.
These are very basic questions. I would recommend to start with the training resources listed on the top of the forum.
You need a loop that spins at 1Hz (1000ms wait). What should it do once it runs out of elements? Learn about the difference between a graph and a chart. Are you aware that "index array" is resizable for three outputs? Where does the data come from?
Why are your array indices on the front panel set to "2"? Very confusing!
...
04-08-2021 09:26 AM
Hi Kaif,
In the meanwhile someone provides with an answer.
I've attempted using a loop but could not figure it out as I have very limited knowledge of LabVIEW.
Checkout the links below, they should help you get closer to achieve what you want.
1) Working with while loops:
https://www.youtube.com/watch?v=hnx9WI2D9zU
2) Shift registers:
https://www.youtube.com/watch?v=dEsVDhrdhk4
3) Simple up down counter:
https://www.youtube.com/watch?v=_GghNq9UmUg
4) Case Structures:
https://www.youtube.com/watch?v=cgS3u0nupfs
5) Event Structures:
https://www.youtube.com/watch?v=eGlvOiqYVxg
6) Simple State Machine: