I was able to measure properly the airflow and sound parameters separately using two different LabVIEW VIs. One of the program is responsible for measuring the respiratory airflow through a USB device connected to the computer at 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 in unarranged manner and saved in multiple sheets.