Programming in LabVIEW |
LabVIEW is a graphical programming language; meaning the actual "program" of the GUI is coded graphically. The current GUI of the implantable cardiac telemetry system is implemented in 8 frames. They are briefly described here:
- Frame 0 is for initialization: defines data arrays, reads in batterylife status and initializes the serial port of the laptop computer (see frame0);
- Frame 1 is for sending the "wake-up" command to the PACER, the purpose of which is to switch the PACER from "power-save" to "continuous ON" mode (see frame1);
- After receiving an acknowledgement from the PACER, the GUI compiles an ASCII string according to user's selections in Frame 2 (see frame2);
- A convenient feature is implemented here in Frame 3: user's selections are coded as a header file to be saved along with AEG results. With this technique, AEG data can be interpreted correctly (see frame3);
- Frame 4 is for receiving AEG data from the serial port. The number of samples received is tracked, until the expected sample number has been met (see frame4);
- AEG results are received as an ASCII string from the serial port. In Frame 5, results are converted into a I-16 (16-bit word), 2-D array (see frame5);
- From this I16, 2D data array, AEG results are divided into their corresponding channels in Frame 6. Also depending on whether "noise-filtering" option is selected, each channel can be plotted as "raw data" or "noise-eliminated data" (see frame6);
- Finally, the user has the option to save received AEG results (along with the header file) as a simple text file for further analysis and processing in Frame 7 (see frame7);
|