Hi
I was able to properly measure the airflow and sound parameters separately using two different LabVIEW VI’s. One of the program is responsible for measuring the respiratory airflow through a USB device connected to the computer at a sampling rate of 100Hz. The other program is responsible for acquiring lung sounds through audio jack.
However, when I combine both the programs in one while loop, as shown in the attachment, the combined vi. was not working properly. I tried to acquire both the signals by putting the same number of samples for both airflow and sound parameters. However, the saved data revealed that I’m not getting the same number of samples for both airflow and sound. I’m having difficulty in controlling and standardizing the number of samples for both the parameters.
I added write to measurement function to record and save both the data in one file. I manage to save the data but the saved data was not in a proper arrangement and saved in multiple sheets.
Here I have attached the VI and the parts of the excel sheets of the data.
Could anyone help me to fix this problem?
Thanks,
Priya