DQMH Consortium Toolkits Feature Requests

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
carlod80

Set the request return values to the typedef defaults upon request timeout

Status: Declined

We have no way to enforce the change of default value --> The workaround is to create a default value vi constant.

When a request times out, the present code returns the value returned by the Wait on Notification VI, which contains the reply payload cluster with all the contents replaced with the respective data type defaults. For example, if the is a DBL control in the cluster, this is set to zero. This is the code I'm talking about:

carlod80_0-1620233939664.png

My suggestion is instead to output the default values of the cluster as they have been defined in the TypeDef, like this:

carlod80_1-1620234208582.png

where in the False case of the inner case structure the reply payload wire just passes through.

 

I find this useful when for example I want a VI that reads a sensor to output NaN if there is any kind of error, including a request timeout.

 

Let me know if this makes sense, or if you approach this use case in a different way.

 

Thank you!

 

 

 

1 Comment
Olivier-JOURDAN
Active Participant
Status changed to: Declined

We have no way to enforce the change of default value --> The workaround is to create a default value vi constant.


Olivier Jourdan

Wovalab founder | DQMH Consortium board member | LinkedIn |

Stop writing your LabVIEW code documentation, use Antidoc!