-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add TTL support to SF #1822
Add TTL support to SF #1822
Conversation
363203c
to
ed4065a
Compare
@t-b The CI seems to fail when signing the installer atm. |
Thanks. I've thrown out the RDP user. With an RDP user logged in installer signing is not possible (security feature !!1elf) |
3e19a95
to
1340c20
Compare
Review: 7c8c65e (Util: Add GetUsedHWDACFromLNB helper function to retrieve hardware type from LNB, 2023-07-20) Looks all good to me. 1964894 (SF: Add TTL channel support to select operation and unassoc DA support, 2023-07-17) When you create selectData as in
the size should now be incremented by NUM_DA_TTL_CHANNELS as we can have now all AD/DA/TTL channels active or? Missing tests for TTL and unassoc DA/AD. Please also make them not require hardware as those run so much faster. f42e444 (Util: Add GetDAQDataSingleColumnWaveNG as more generic function, 2023-07-18) Looks all good. I'm wondering if the code for mapping AD to DA when fetching epochs
should be part of EP_GetEpochs? Maybe as opt-in with an optional parameter? We do have extensive tests in UTF_EpochsWoHardware.ipf. We could then also factor out the channel mappting from SFH_GetDAChannel as fetching the LBN is quite wasteful if we have it already. |
0fe3568
to
561a02d
Compare
Review: The changes to NWB_GenerateDeviceDescription are not 100% correct. You removed the ParseDeviceString logic which would kick in for ITC hardware and no "Digitizer Hardware Name" LBN entry. d5512a4 (Util: Introduce variable for channel type in CreateTiledChannelGraph, 2023-07-15) Good. adc3ca4 (Util: Add GUI channel number to TUD in CreateTiledChannelGraph, 2023-07-15) Jeep. b604f78 (BSP: Use GUI channel number only in BSP_AddTracesForEpochs, 2023-07-15) very nice. efc73ad (BSP: fix splitTTL epochs dependent control not properly toggled by VisEpochs, 2023-07-15) Jeep. 8077678 (BSP: Always set axis range for TTL channels to 0 - 1 with 2 ticks, 2023-07-15) Okay. 6ae4864 (Util: Use GUI channel number for axis names in CreateTiledChannelGraph, 2023-07-15) Hmmh. b1c8922 (SF: Add TTL channel support to select operation and unassoc DA support, 2023-07-17) RST docu:
I would say The clampMode selection is only applied for associated AD/DA channels. dd01f03 (Util: Add GetDAQDataSingleColumnWaveNG as more generic function, 2023-07-18) Nice! 55d8a76 (SF: Adapt SFH_GetSweepsForFormula to support epochs for TTL channels, 2023-07-18) Looks good. 449ec57 (SF: Use EP_FetchEpochs in SF_OperationEpochsImpl instead of direct retrieval, 2023-07-18) typo in commit message: fot -> for 7549ed3 (Tests: Adapt FillFakeDatabrowserWindow to not setup invalid channel numbers, 2023-07-18) All good 1f8ca0c (EP: Remove unnecessary code in EP_GetEpochs, 2023-07-26) Jeep. 1872640 (EP: Move AD to DA channel conversion into EP_FetchEpochs, 2023-07-26) Can you add a test for the AD->DA channel mapping to UTF_EpochswoHardware.ipf? The test should test EP_GetEpochs but as that uses EP_FetchEpochs we will This should be relatively straightforward as PrepareEpochsTable_IGNORE also 561a02d (Changes select test, 2023-07-27) Jeep. From playing around:
Please assign to Tim once done. |
561a02d
to
5d33d71
Compare
5d33d71
to
8a9abff
Compare
…pe from LNB - to simplify the task to determine the hardware type at the point when a sweep was measured and the associated LNB entries were created, the helper function GetUsedHWDACFromLNB was created. - Unify method in other locations that retrieve the hardware type from the LNB
- better code readability - no functional change
- Having the GUI channel number simplifies code that use trace user data information
- previously the hardware channel number from TUD needed to be mapped back to the GUI channel number. Now TUD also contains the GUI channel number.
…sEpochs - AdaptDependentControls logic was setup wrong since df25647 (BSP: Add TTL channel support to BSP_AddTracesForEpochs, 2023-07-07)
- this removes the default ticks for TTL channels on NI hardware - view composite TTL channel from ITC hardware is more for debugging purposes
- such that for ITC TTL channel the TTLx_y with x hw channel and y ttlBit is replaced by TTLx where x is the GUI channel number
- clampMode filter is applied for DA/AD but ignored for TTL channels
than GetDAQDataSingleColumnWave. The new function uses GUI channel numbers and can be called independent of the hardware.
- the new utility function GetDAQDataSingleColumnWaveNG wraps the channel number translation for TTL channels to retrieve the correct sweep wave. - changed epoch fetching to allow TTL channels as well
…trieval - use of generic utility function for epoch fetching
…umbers FillFakeDatabrowserWindow was setting up 5 channels: 0, 2, 4, 6, 8 where 8 is an invalid channel number for DA. We do not want to test against an invalid internal data state.
…sFromInfo - In EP_FetchEpochs we add a traling ; to the epoch tags if not present If we have a old non-list based epoch tag just with a name, this changes the name. Assuming a missing short name indicates an old epoch tag, the trailing semicolon is removed again to have a clean roundtrip.
- EP_FetchEpochs always returns a single channel epochs wave, thus, not Duplicate to create a single channel wave is required. No functional change
- When epochs are retrieved AD channels are converted to the associated DA channels, as only DA channels carry epoch information. This was done in SFH_GetSweepsForFormula and in BSP_AddTracesForEpochs in the same way. - This conversion was moved into EP_FetchEpochs and is done automatically now. The conversion in the other functions was removed. - The utility function SFH_GetDAChannel was removed as it is now unused
- Previously the color indexing of the splitted TTL channels was wrongly offsetted by -1 for ITC and for NI it was channelNumber * 5 (also wrong) Since 6de687e (GetTraceColor: Increase the number of distinctive trace colors, 2015-07-04) Changed API of GetHeadstageColor to take GUI channel numbers as argument and only a flag to indicate splitted or unsplitted TTL channels. The color table index is calculated by mapping the GUI channel numbers to the ITC style channel numbers + ttlBit.
- TTL traces use the same color map as the SB/DB
- increase DB panel version
8a9abff
to
7da5363
Compare
close #1817