Joaquim Silva Posted April 24, 2021 Share Posted April 24, 2021 I am trying to figure out how the parameters (1,1) influence the output, but do not find any information. Can anyone help? Thanks in advnace. Joaquim Silva Link to comment Share on other sites More sharing options...
0 JColvin Posted April 24, 2021 Share Posted April 24, 2021 Hi @Joaquim Silva, What Digilent product are you referring to? Thanks, JColvin Link to comment Share on other sites More sharing options...
0 Joaquim Silva Posted April 28, 2021 Author Share Posted April 28, 2021 The product is AD2 / logic analizer / script in order to get values from a HCS300 output. I am able to get everything I need, but I would like to know what is the function role value2text.text. I have seen it with values (1,66) but I do not have found any information on what is the need/use of it. Tkanks for you to get interested in answer. Joaquim Silva Link to comment Share on other sites More sharing options...
0 Joaquim Silva Posted April 29, 2021 Author Share Posted April 29, 2021 Try to clarify my doubt: In the tab Value to Text, on the page that opens, when in AD2/LOGIC, when we want to do a script edit, you have the function Value2text (flag,value){ ... }. This the function definition that will interprets the values and display them. Bellow that definition you have, what should be a call to that function: Value2Text(1,1) My doubt is: what is the role of this,Value2Text(1,1), because if I comment it, nothing happens, the script works the same. Another doubt is that I do not see the calling of the function function Value2text (flag,value){ ... }. in the Decoder script. Of course this is only curiosity, because has I said, what I want to be done it is done. Thanks for the excelllent product that the AD2 is. Regards. Joaquim Silva Link to comment Share on other sites More sharing options...
0 JColvin Posted April 29, 2021 Share Posted April 29, 2021 Hi @Joaquim Silva, I have moved your question to a more appropriate section of the Forum where the engineer more familiar with the WaveForms software functions will be able to see and respond to your question. Thanks, JColvin Link to comment Share on other sites More sharing options...
0 attila Posted April 30, 2021 Share Posted April 30, 2021 Hi @Joaquim Silva The Value2Text(1,1) function call is there only to test the script with the Evaluate (abc) button. Normally when new data is captured/loaded the Decoder script is executed to process rgData array to rgValue and rgFlag arrays. Then, for display purpose the Value2Text function is called by the application to represent each value/flag as text in the main drawing, data, events views... Link to comment Share on other sites More sharing options...
0 Joaquim Silva Posted May 1, 2021 Author Share Posted May 1, 2021 Thanks all of you. i tested, and now I understand the role of the Value2Text(1,1) ! Thanks, Joaquim Silva attila 1 Link to comment Share on other sites More sharing options...
Question
Joaquim Silva
I am trying to figure out how the parameters (1,1) influence the output, but do not find any information.
Can anyone help?
Thanks in advnace.
Joaquim Silva
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now