ni / niveristand-aim-milStd1553-custom-device

Custom device for AIM MIL-STD-1553 hardware
MIT License
1 stars 2 forks source link

Add timestamps #43

Closed papowerNI closed 2 years ago

papowerNI commented 2 years ago

What does this Pull Request accomplish?

Adds timestamps to the Rx channels in the engine, and has the timestamps return time elapsed since the start of the hardware I/O. Also cleans up a couple of VIs in Execution Unit.lvclass for clarity.

Why should this Pull Request be merged?

Timestamps are part of read/write behavior.

What testing has been done?

Added a unit test that checks that timestamp channel handles are added, and that timestamp settings are correctly setup in received/transmitted messages. Tests run, sysdef deployed and manual test of timestamps running: timestamps

Testing Read/Write behavior specifically can be done when Read/Write tests are added (after mode codes and acyclic frames exist).

niveristand-diff-bot commented 2 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.

AIM MIL-STD-1553 Engine.lvlib--Implementation.lvlib--Execution Unit Factory.lvclass--Create Execution Unit.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-aim-milStd1553-custom-device/PR-43/2022-06-23/16%3A54%3A19/AIM%20MIL-STD-1553%20Engine.lvlib--Implementation.lvlib--Execution%20Unit%20Factory.lvclass--Create%20Execution%20Unit.vi.png)
AIM MIL-STD-1553 Engine.lvlib--Implementation.lvlib--Execution Unit.lvclass--Compute VS Channel Handle Indices.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-aim-milStd1553-custom-device/PR-43/2022-06-23/16%3A54%3A19/AIM%20MIL-STD-1553%20Engine.lvlib--Implementation.lvlib--Execution%20Unit.lvclass--Compute%20VS%20Channel%20Handle%20Indices.vi.png)
AIM MIL-STD-1553 Engine.lvlib--Implementation.lvlib--Execution Unit.lvclass--Get VS Channel Handles and Messages.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-aim-milStd1553-custom-device/PR-43/2022-06-23/16%3A54%3A19/AIM%20MIL-STD-1553%20Engine.lvlib--Implementation.lvlib--Execution%20Unit.lvclass--Get%20VS%20Channel%20Handles%20and%20Messages.vi.png)
AIM MIL-STD-1553 Engine.lvlib--Implementation.lvlib--Rx Execution Unit.lvclass--Read from Hardware.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-aim-milStd1553-custom-device/PR-43/2022-06-23/16%3A54%3A19/AIM%20MIL-STD-1553%20Engine.lvlib--Implementation.lvlib--Rx%20Execution%20Unit.lvclass--Read%20from%20Hardware.vi.png)
AIM MIL-STD-1553 Engine.lvlib--Implementation.lvlib--Tx Execution Unit.lvclass--Write to Hardware.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-aim-milStd1553-custom-device/PR-43/2022-06-23/16%3A54%3A19/AIM%20MIL-STD-1553%20Engine.lvlib--Implementation.lvlib--Tx%20Execution%20Unit.lvclass--Write%20to%20Hardware.vi.png)
AIM MIL-STD-1553 Hardware API.lvlib--Read Buffer.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-aim-milStd1553-custom-device/PR-43/2022-06-23/16%3A54%3A19/AIM%20MIL-STD-1553%20Hardware%20API.lvlib--Read%20Buffer.vi.png)
Create Execution Unit.lvclass--setUp.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-aim-milStd1553-custom-device/PR-43/2022-06-23/16%3A54%3A19/Create%20Execution%20Unit.lvclass--setUp.vi.png)
Create Execution Unit.lvclass--test Get VS Channel Handles and Messages.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-aim-milStd1553-custom-device/PR-43/2022-06-23/16%3A54%3A19/Create%20Execution%20Unit.lvclass--test%20Get%20VS%20Channel%20Handles%20and%20Messages.vi.png)
Deployment.lvclass--test Deployment Import BC-Only Configuration.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-aim-milStd1553-custom-device/PR-43/2022-06-23/16%3A54%3A19/Deployment.lvclass--test%20Deployment%20Import%20BC-Only%20Configuration.vi.png)
Deployment.lvclass--test Deployment Import Configuration.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-aim-milStd1553-custom-device/PR-43/2022-06-23/16%3A54%3A19/Deployment.lvclass--test%20Deployment%20Import%20Configuration.vi.png)
Deployment.lvclass--test Deployment Import RT-Only Configuration.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-aim-milStd1553-custom-device/PR-43/2022-06-23/16%3A54%3A19/Deployment.lvclass--test%20Deployment%20Import%20RT-Only%20Configuration.vi.png)
Engine.lvclass--test Compute VS Channel Handle Indices.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-aim-milStd1553-custom-device/PR-43/2022-06-23/16%3A54%3A19/Engine.lvclass--test%20Compute%20VS%20Channel%20Handle%20Indices.vi.png)
Loopback.lvclass--test Loopback.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-aim-milStd1553-custom-device/PR-43/2022-06-23/16%3A54%3A19/Loopback.lvclass--test%20Loopback.vi.png)
papowerNI commented 2 years ago

Why are the deployment tests now being skipped?

They've actually been failing since I fixed the parameters.xml for them way back in PR 27, because they test deployment of acyclic frames and mode codes. Before fixing the xml, they were basically just deploying empty configurations due to typos in the parameters.xml that cause all of the content to be skipped (messages were not enclosed in so they were all missed). I can remove the checks for acyclic frames and add them back later if that's preferred, but I opted to enable them again when the missing features are included. I could also just leave them failing

niveristand-diff-bot commented 2 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.

AIM MIL-STD-1553 Engine.lvlib--Implementation.lvlib--Execution Unit Factory.lvclass--Create Execution Unit.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-aim-milStd1553-custom-device/PR-43/2022-06-27/12%3A58%3A52/AIM%20MIL-STD-1553%20Engine.lvlib--Implementation.lvlib--Execution%20Unit%20Factory.lvclass--Create%20Execution%20Unit.vi.png)
AIM MIL-STD-1553 Engine.lvlib--Implementation.lvlib--Execution Unit.lvclass--Compute VS Channel Handle Indices.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-aim-milStd1553-custom-device/PR-43/2022-06-27/12%3A58%3A52/AIM%20MIL-STD-1553%20Engine.lvlib--Implementation.lvlib--Execution%20Unit.lvclass--Compute%20VS%20Channel%20Handle%20Indices.vi.png)
AIM MIL-STD-1553 Engine.lvlib--Implementation.lvlib--Execution Unit.lvclass--Get VS Channel Handles and Messages.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-aim-milStd1553-custom-device/PR-43/2022-06-27/12%3A58%3A52/AIM%20MIL-STD-1553%20Engine.lvlib--Implementation.lvlib--Execution%20Unit.lvclass--Get%20VS%20Channel%20Handles%20and%20Messages.vi.png)
AIM MIL-STD-1553 Engine.lvlib--Implementation.lvlib--Rx Execution Unit.lvclass--Read from Hardware.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-aim-milStd1553-custom-device/PR-43/2022-06-27/12%3A58%3A52/AIM%20MIL-STD-1553%20Engine.lvlib--Implementation.lvlib--Rx%20Execution%20Unit.lvclass--Read%20from%20Hardware.vi.png)
AIM MIL-STD-1553 Engine.lvlib--Implementation.lvlib--Tx Execution Unit.lvclass--Write to Hardware.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-aim-milStd1553-custom-device/PR-43/2022-06-27/12%3A58%3A52/AIM%20MIL-STD-1553%20Engine.lvlib--Implementation.lvlib--Tx%20Execution%20Unit.lvclass--Write%20to%20Hardware.vi.png)
AIM MIL-STD-1553 Hardware API.lvlib--Read Buffer.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-aim-milStd1553-custom-device/PR-43/2022-06-27/12%3A58%3A52/AIM%20MIL-STD-1553%20Hardware%20API.lvlib--Read%20Buffer.vi.png)
Create Execution Unit.lvclass--test Get VS Channel Handles and Messages.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-aim-milStd1553-custom-device/PR-43/2022-06-27/12%3A58%3A52/Create%20Execution%20Unit.lvclass--test%20Get%20VS%20Channel%20Handles%20and%20Messages.vi.png)
Deployment.lvclass--test Deployment Import BC-Only Configuration.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-aim-milStd1553-custom-device/PR-43/2022-06-27/12%3A58%3A52/Deployment.lvclass--test%20Deployment%20Import%20BC-Only%20Configuration.vi.png)
Deployment.lvclass--test Deployment Import Configuration.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-aim-milStd1553-custom-device/PR-43/2022-06-27/12%3A58%3A52/Deployment.lvclass--test%20Deployment%20Import%20Configuration.vi.png)
Deployment.lvclass--test Deployment Import RT-Only Configuration.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-aim-milStd1553-custom-device/PR-43/2022-06-27/12%3A58%3A52/Deployment.lvclass--test%20Deployment%20Import%20RT-Only%20Configuration.vi.png)
Engine.lvclass--test Compute VS Channel Handle Indices.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-aim-milStd1553-custom-device/PR-43/2022-06-27/12%3A58%3A52/Engine.lvclass--test%20Compute%20VS%20Channel%20Handle%20Indices.vi.png)
Loopback.lvclass--test Loopback.vi.png ![capture](https://raw.githubusercontent.com/niveristand-diff-bot/diff-images/master/NI/niveristand-aim-milStd1553-custom-device/PR-43/2022-06-27/12%3A58%3A52/Loopback.lvclass--test%20Loopback.vi.png)