You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Thanks for the code which useful to build custom remote control electronic.
I would like to know if it is possible to parse string parameter instead of numerical parameter ?
For example, the sent command would be ":MODE CURR" or ":MODE VOLT" and I want to parse the 'CURR' or 'VOLT' in order to make the test into the function.
I found an alternative way up to know by using '0' for 'CURR' and '1' for 'VOLT' and parse numerical value, but parse string would be useful.
Regards,
The text was updated successfully, but these errors were encountered:
Since your example doesn't require preserving whitespace, then the best approach would be to look at the struct scpi_tokens directly. You can find the struct definition here.
Hi,
Thanks for the code which useful to build custom remote control electronic.
I would like to know if it is possible to parse string parameter instead of numerical parameter ?
For example, the sent command would be ":MODE CURR" or ":MODE VOLT" and I want to parse the 'CURR' or 'VOLT' in order to make the test into the function.
I found an alternative way up to know by using '0' for 'CURR' and '1' for 'VOLT' and parse numerical value, but parse string would be useful.
Regards,
The text was updated successfully, but these errors were encountered: