decimal to exadecimal value

Moderator: Moderator Group

decimal to exadecimal value

Postby alverman » Tue Apr 03, 2012 11:03 am

Is possible covert value from decimal to exadecimal in WD PRO ?

Thanks, Alberto
PROService -IT
Intel i7 2600K LGA1155
MB P8H67-MLE 16GB
2xSSD 250GB
GTX470
Win 8.1 PRO
Manager STD V6.1
Player PRO V6.1
WDPro V5 2500
** La famiglia ti nutre, ti veste .... finchè non sei pronto per girare il mondo alla ricerca di qualcosa di tuo. **
User avatar
alverman
 
Posts: 562
Joined: Sat Jun 12, 2010 6:37 pm

Re: decimal to exadecimal value

Postby Martina Protze » Tue Apr 03, 2012 11:18 am

Hi Alberto,
do you mean automatically? Like in a calculator?
Sorry, this would not be possible. But you find many internetlinks for that in google.
WD supports hex, dec and ASCII values as scripts. For this we have a syntax table in the helpfile

Regards,
You do not have the required permissions to view the files attached to this post.
Martina Protze
Technical Support, Pandoras Box and Widget Designer
Martina Protze
 
Posts: 199
Joined: Tue Feb 23, 2010 2:47 pm

Re: decimal to exadecimal value

Postby alverman » Tue Apr 03, 2012 1:23 pm

Ok.
But if I use the Text node Combiner how can I send the result on com ?
Similarly if I have a variable that contains the commands to be sent via serial how can I do?
If I insert Custom Script node ComSend.2,VGetNodeVal,PAINTING,20,2 in the program I use to monitor the serial I see VGetNodeVal, PAINTING, 20,2 not the value of the node or variable

In other words, how can I send to the serial port the contents of a string variable?

Many thanks, Alberto
PROService -IT
Intel i7 2600K LGA1155
MB P8H67-MLE 16GB
2xSSD 250GB
GTX470
Win 8.1 PRO
Manager STD V6.1
Player PRO V6.1
WDPro V5 2500
** La famiglia ti nutre, ti veste .... finchè non sei pronto per girare il mondo alla ricerca di qualcosa di tuo. **
User avatar
alverman
 
Posts: 562
Joined: Sat Jun 12, 2010 6:37 pm

Re: decimal to exadecimal value

Postby Martina Protze » Thu Apr 12, 2012 8:22 pm

Hello,

1) if you connect your text combiner with an output node "COM Port Message" or "COM Port ASCII Stream" you will send the combined text as soon as the text input changes.
2) you would send the variable name. WD is checking if a "value" or "message" within a script is in fact a variable. If it is, it will use the variables value.
3) ComSend,2,VGetNodeVal,PAINTING,20,2
this is a combination of 2 scripts and can not work
you can use...

COMSend,'ID','Message'
EVERYTHING behind the secon comma is interpreted as the message to be sent. In your example it is this: VGetNodeVal,PAINTING,20,2
if you have a variable set up, e.g variable name: var01 type: string Value: hello wonderful world
and you type the script:
COMSend,1,var01
you will receive: hello wonderful world

OR (not AND, at least not in the same line ;)
VGetNodeVal,var01,4,2
this will overwrite "hello wonderful world" with the value that hides in node no. 4, parameter no. 2

Best regards,
Martina Protze
Technical Support, Pandoras Box and Widget Designer
Martina Protze
 
Posts: 199
Joined: Tue Feb 23, 2010 2:47 pm


Return to Widget Designer V4.7

Who is online

Users browsing this forum: No registered users and 20 guests