Skip to main content
Graduate II
August 14, 2023
Solved

Get exefile parameter from "variables"-node

  • August 14, 2023
  • 1 reply
  • 1681 views

Hello,

I'm using the current version of STM32CubeMonitor (1.6.0) under Windows and would like to check in my flow if the configured exefile in the STMicroelectronics variable node is the intended one (e.g fits a regex). For this I would like to read out the exefile parameter. Using a debug-node I can see it is written but 'undefined'.
Is there a workaround for this or is it possible to give the exefile as input parameter to the variable node?
My output looks like this: 

 

object
groupname: "STM32G0 Binary Production"
variablelist: array[19]
mode: "direct"
snapshotheader: ""
triggerstartmode: "manual"
triggername: "my_unused_variable"
triggerthreshold: ""
frequency: 10
accesspoint: 0
exefile: undefined

 

Thank you!

    This topic has been closed for replies.
    Best answer by Richard.Chvr

    Hello @MKori.1 

    The fact that exefile appears as undefined is a known bug that will be fixed in next 1.7.0 release planned in a short term.

    1 reply

    Technical Moderator
    August 31, 2023

    Hello @MKori.1,

    I'm afraid, it's not possible to give exe file as input parameter of the variable node. May be you can try a solution using regexp-filter in order to verify your file.

    MKori.1Author
    Graduate II
    August 31, 2023

    Hello @Richard.Chvr ,

    thank you for your response. Yes, this together with a .json parser this is my current solution. It has some drawbacks, for instance when mulitple exefile configurations are defined checking the correct one is some additional effort.
    What is about the empthy "exefile" output of the node? Is there some information output planned?

    Technical Moderator
    September 7, 2023

    Hello @MKori.1 

    The fact that exefile appears as undefined is a known bug that will be fixed in next 1.7.0 release planned in a short term.