ni / niveristand-embedded-data-logger-custom-device

VeriStand embedded data logger custom device
MIT License
3 stars 10 forks source link

Add feature to append waveform properties to the channels if the acquisition is continuous #37

Closed oscarfonloz closed 3 years ago

oscarfonloz commented 3 years ago

What does this Pull Request accomplish?

This PR adds the capability to store waveform properties in log files that are continuous (if the user chooses to do so in the configuration).

Why should this Pull Request be merged?

See User Story 1278600 for the full spec.

What testing has been done?

Manual tests and review

oscarfonloz commented 3 years ago

FYI: My edits also adds a non-PR comment related to how the Async communicates to the RT Driver VI, since it took quite some time for us to understand it and I think it's worth capturing in the diagram. I also cleaned up the VIs I edited to implement the feature, but I did not change behavior/functions used (in case you see things moved around in the Diff)

niveristand-diff-bot commented 3 years ago

Bleep bloop!

LabVIEW Diff Robot here with some diffs served up hot for your pull request.

Notice something funny? Help fix me on my GitHub repo.

Embedded Data Logger Engine.lvlib--Append Waveform Properties to TDMS Channels.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-embedded-data-logger-custom-device/PR-37/2021-02-12/19%3A52%3A25/Embedded%20Data%20Logger%20Engine.lvlib--Append%20Waveform%20Properties%20to%20TDMS%20Channels.vi.png)
Embedded Data Logger Engine.lvlib--Asynchronous Logging Loop.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-embedded-data-logger-custom-device/PR-37/2021-02-12/19%3A52%3A25/Embedded%20Data%20Logger%20Engine.lvlib--Asynchronous%20Logging%20Loop.vi.png)
Embedded Data Logger Engine.lvlib--Flush Close Archive File.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-embedded-data-logger-custom-device/PR-37/2021-02-12/19%3A52%3A25/Embedded%20Data%20Logger%20Engine.lvlib--Flush%20Close%20Archive%20File.vi.png)
Embedded Data Logger Engine.lvlib--Get Data Log File Settings.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-embedded-data-logger-custom-device/PR-37/2021-02-12/19%3A52%3A25/Embedded%20Data%20Logger%20Engine.lvlib--Get%20Data%20Log%20File%20Settings.vi.png)
Embedded Data Logger Engine.lvlib--Initialize Logging Data.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-embedded-data-logger-custom-device/PR-37/2021-02-12/19%3A52%3A25/Embedded%20Data%20Logger%20Engine.lvlib--Initialize%20Logging%20Data.vi.png)
Embedded Data Logger Engine.lvlib--Process Falling Edge Trigger.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-embedded-data-logger-custom-device/PR-37/2021-02-12/19%3A52%3A25/Embedded%20Data%20Logger%20Engine.lvlib--Process%20Falling%20Edge%20Trigger.vi.png)
Embedded Data Logger Engine.lvlib--Sample File Data.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-embedded-data-logger-custom-device/PR-37/2021-02-12/19%3A52%3A25/Embedded%20Data%20Logger%20Engine.lvlib--Sample%20File%20Data.vi.png)
Embedded Data Logger Engine.lvlib--Update Logging Status.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-embedded-data-logger-custom-device/PR-37/2021-02-12/19%3A52%3A25/Embedded%20Data%20Logger%20Engine.lvlib--Update%20Logging%20Status.vi.png)
Embedded Data Logger Shared.lvlib--Constants.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-embedded-data-logger-custom-device/PR-37/2021-02-12/19%3A52%3A25/Embedded%20Data%20Logger%20Shared.lvlib--Constants.vi.png)
Embedded Data Logger System Explorer.lvlib--File Page.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-embedded-data-logger-custom-device/PR-37/2021-02-12/19%3A52%3A25/Embedded%20Data%20Logger%20System%20Explorer.lvlib--File%20Page.vi.png)
niveristand-diff-bot commented 3 years ago

Bleep bloop!

LabVIEW Diff Robot here with some diffs served up hot for your pull request.

Notice something funny? Help fix me on my GitHub repo.

Embedded Data Logger Engine.lvlib--Append Waveform Properties to TDMS Channels.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-embedded-data-logger-custom-device/PR-37/2021-02-15/14%3A33%3A49/Embedded%20Data%20Logger%20Engine.lvlib--Append%20Waveform%20Properties%20to%20TDMS%20Channels.vi.png)
Embedded Data Logger Engine.lvlib--Asynchronous Logging Loop.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-embedded-data-logger-custom-device/PR-37/2021-02-15/14%3A33%3A49/Embedded%20Data%20Logger%20Engine.lvlib--Asynchronous%20Logging%20Loop.vi.png)
Embedded Data Logger Engine.lvlib--Flush Close Archive File.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-embedded-data-logger-custom-device/PR-37/2021-02-15/14%3A33%3A49/Embedded%20Data%20Logger%20Engine.lvlib--Flush%20Close%20Archive%20File.vi.png)
Embedded Data Logger Engine.lvlib--Get Data Log File Settings.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-embedded-data-logger-custom-device/PR-37/2021-02-15/14%3A33%3A49/Embedded%20Data%20Logger%20Engine.lvlib--Get%20Data%20Log%20File%20Settings.vi.png)
Embedded Data Logger Engine.lvlib--Initialize Logging Data.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-embedded-data-logger-custom-device/PR-37/2021-02-15/14%3A33%3A49/Embedded%20Data%20Logger%20Engine.lvlib--Initialize%20Logging%20Data.vi.png)
Embedded Data Logger Engine.lvlib--Process Falling Edge Trigger.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-embedded-data-logger-custom-device/PR-37/2021-02-15/14%3A33%3A49/Embedded%20Data%20Logger%20Engine.lvlib--Process%20Falling%20Edge%20Trigger.vi.png)
Embedded Data Logger Engine.lvlib--Sample File Data.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-embedded-data-logger-custom-device/PR-37/2021-02-15/14%3A33%3A49/Embedded%20Data%20Logger%20Engine.lvlib--Sample%20File%20Data.vi.png)
Embedded Data Logger Engine.lvlib--Update Logging Status.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-embedded-data-logger-custom-device/PR-37/2021-02-15/14%3A33%3A49/Embedded%20Data%20Logger%20Engine.lvlib--Update%20Logging%20Status.vi.png)
Embedded Data Logger Shared.lvlib--Constants.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-embedded-data-logger-custom-device/PR-37/2021-02-15/14%3A33%3A49/Embedded%20Data%20Logger%20Shared.lvlib--Constants.vi.png)
Embedded Data Logger System Explorer.lvlib--File Page.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-embedded-data-logger-custom-device/PR-37/2021-02-15/14%3A33%3A49/Embedded%20Data%20Logger%20System%20Explorer.lvlib--File%20Page.vi.png)
rtzoeller commented 3 years ago

@oscarfonloz it looks like Sample File Data.vi still has an action item?

image

There is a typo in the new control name on the file page (should be continuous), and the control description is wrong.

I still need to do some functional testing, but that will be a slow process due to power outages at my house.

oscarfonloz commented 3 years ago

@oscarfonloz it looks like Sample File Data.vi still has an action item?

image

Good catch! I did implement the functionality there, just forgot to remove the comment.

There is a typo in the new control name on the file page (should be continuous), and the control description is wrong.

Thanks! It's a tricky word! haha

I still need to do some functional testing, but that will be a slow process due to power outages at my house.

I planned to do the documentation in a later PR, but since we're already here, I submitted a tip strip and description that we can change later.

niveristand-diff-bot commented 3 years ago

Bleep bloop!

LabVIEW Diff Robot here with some diffs served up hot for your pull request.

Notice something funny? Help fix me on my GitHub repo.

Embedded Data Logger Engine.lvlib--Append Waveform Properties to TDMS Channels.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-embedded-data-logger-custom-device/PR-37/2021-02-16/11%3A41%3A59/Embedded%20Data%20Logger%20Engine.lvlib--Append%20Waveform%20Properties%20to%20TDMS%20Channels.vi.png)
Embedded Data Logger Engine.lvlib--Asynchronous Logging Loop.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-embedded-data-logger-custom-device/PR-37/2021-02-16/11%3A41%3A59/Embedded%20Data%20Logger%20Engine.lvlib--Asynchronous%20Logging%20Loop.vi.png)
Embedded Data Logger Engine.lvlib--Flush Close Archive File.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-embedded-data-logger-custom-device/PR-37/2021-02-16/11%3A41%3A59/Embedded%20Data%20Logger%20Engine.lvlib--Flush%20Close%20Archive%20File.vi.png)
Embedded Data Logger Engine.lvlib--Get Data Log File Settings.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-embedded-data-logger-custom-device/PR-37/2021-02-16/11%3A41%3A59/Embedded%20Data%20Logger%20Engine.lvlib--Get%20Data%20Log%20File%20Settings.vi.png)
Embedded Data Logger Engine.lvlib--Initialize Logging Data.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-embedded-data-logger-custom-device/PR-37/2021-02-16/11%3A41%3A59/Embedded%20Data%20Logger%20Engine.lvlib--Initialize%20Logging%20Data.vi.png)
Embedded Data Logger Engine.lvlib--Process Falling Edge Trigger.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-embedded-data-logger-custom-device/PR-37/2021-02-16/11%3A41%3A59/Embedded%20Data%20Logger%20Engine.lvlib--Process%20Falling%20Edge%20Trigger.vi.png)
Embedded Data Logger Engine.lvlib--Sample File Data.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-embedded-data-logger-custom-device/PR-37/2021-02-16/11%3A41%3A59/Embedded%20Data%20Logger%20Engine.lvlib--Sample%20File%20Data.vi.png)
Embedded Data Logger Engine.lvlib--Update Logging Status.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-embedded-data-logger-custom-device/PR-37/2021-02-16/11%3A41%3A59/Embedded%20Data%20Logger%20Engine.lvlib--Update%20Logging%20Status.vi.png)
Embedded Data Logger Shared.lvlib--Constants.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-embedded-data-logger-custom-device/PR-37/2021-02-16/11%3A41%3A59/Embedded%20Data%20Logger%20Shared.lvlib--Constants.vi.png)
Embedded Data Logger System Explorer.lvlib--File Page.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-embedded-data-logger-custom-device/PR-37/2021-02-16/11%3A41%3A59/Embedded%20Data%20Logger%20System%20Explorer.lvlib--File%20Page.vi.png)