Skip to content

Commit 59c47e7

Browse files
committed
DAP: Change comment getter for user comment to retrieve string directly from control
The comment getter is called from the NWB Export that is also used for old experiments. The previous DAG_GetTextualValue tries to use the GUIState wave that does not know the possibly old control and fails for that case. This workaround (to retrieve the value directly) is a not suited for generic use.
1 parent 3ed4331 commit 59c47e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Packages/MIES/MIES_DAEphys.ipf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4023,7 +4023,7 @@ static Function DAP_AddUserComment(string device)
40234023
return NaN
40244024
endif
40254025

4026-
comment = DAG_GetTextualValue(device, "SetVar_DataAcq_Comment")
4026+
comment = GetSetVariableString(device, "SetVar_DataAcq_Comment")
40274027

40284028
if(isEmpty(comment))
40294029
return NaN

0 commit comments

Comments
 (0)