User Input to Array (or something similar)

  • Software
  • User Input to Array (or something similar)
Andri Sigron

Posted on 19.04.2021 11:57

Hello everyone!


I was wondering if it is somehow possible to have a user input some Values into an array or something like that? I already created a sequence where some test signals that are saved in a vector constant (in the setup) are given out through an analog channel. I now need the user to be able to input a measured response from the tested device. Does anybody know how this can be done?


Thanks for your help,

Andri

Benjamin Solem

Posted on 12.10.2022 13:18

Hi,


Did you find any solution to this? I'm looking at a similar issue where I want to store a scalar in an array which increases in size (appends new value) for each new value of the scalar.


Benjamin

Gregor Šmit

Posted on 17.10.2022 13:59

Dear Andri and Benjamin,


thank you for reaching out to us. It is not possible to input a vector during a measurement. It is possible however to define a vector channel and then write values from user input channel to vector channel. In the attachment I have prepared a setup file with C++ script where the user inputs numbers thorough the user input widget and the numbers are stored in a vector. Please notice that the size of the vector needs to be predefined, in the example only 5 numbers are stored in the vector.


Kind regards.



Attached files:
Login to reply to this topic. If you don't have account yet, you can signup for free account .