unsupported operation in function
Hello, I have this error "unsupported operation in function OmlBlockFunction at line number 8 in file OmlBlockFunction_1.oml ( -1 )"
This is my function
I was wondering if somebody knows how to solve it. Thank you!
Best Answer
-
Paola Alvarez_21959 said:
Thank you so much! The function now works, but when I place it inside the Oml Block doesn´t work, do you know if I have to stablish some state or parameter?
Hi Paola,
When you use "OmlCustomBlock" you must use "vssGetInputData" function to get the block's input data, and to export them you must use "vssSetOutputData" function.
I'm attaching a .SCM file with your desired function.
Below you have the results between the previous (.OML) vs. actual (.SCM) files:
Hope it helps you,
João.
2
Answers
-
Hi Paola,
Once you are setting a function, you must include an 'end' command after line 18 (this 'end' is referring to the if's).
I changed what I mentioned above, and it worked (attached).
Hope it helps you,
João.
2 -
João Marabisa said:
Hi Paola,
Once you are setting a function, you must include an 'end' command after line 18 (this 'end' is referring to the if's).
I changed what I mentioned above, and it worked (attached).
Hope it helps you,
João.
Thank you so much! The function now works, but when I place it inside the Oml Block doesn´t work, do you know if I have to stablish some state or parameter?
0 -
Paola Alvarez_21959 said:
Thank you so much! The function now works, but when I place it inside the Oml Block doesn´t work, do you know if I have to stablish some state or parameter?
Hi Paola,
When you use "OmlCustomBlock" you must use "vssGetInputData" function to get the block's input data, and to export them you must use "vssSetOutputData" function.
I'm attaching a .SCM file with your desired function.
Below you have the results between the previous (.OML) vs. actual (.SCM) files:
Hope it helps you,
João.
2 -
Thank you!
0