From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
10-21-2020 01:49 AM
Hi all,
As per the title shown, i need helps on converting number to words using LabVIEW.
For example, 100 to one hundred.
Can anyone help? Thanks in advance.
Best regards,
Crystal
Solved! Go to Solution.
10-21-2020 02:01 AM
A simple google search will find you many algorithm in text based languages. There are two parts:
What have you tried? What is giving you problems?
10-21-2020 02:17 AM
Hi altenbach,
I understand that this can be easily done in any text based language.
My problem is that i want to achieve this using LabVIEW alone.
Unfortunately, a simple "Google search" did not give me any solution on this.
Thanks.
10-21-2020 02:25 AM - edited 10-21-2020 02:27 AM
Hi 123,
@123xj wrote:
My problem is that i want to achieve this using LabVIEW alone.
You just implement the very same algorithm in LabVIEW. Should be as easy as with text-based programming languages…
@123xj wrote:
Unfortunately, a simple "Google search" did not give me any solution on this.
Do you search for "ready-to-use solutions" for your homework?
Or should you learn LabVIEW by solving that homework on your own?
(An algorithm is a description on how to solve a problem - it is not a "ready-to-use solution"!)
I repeat what Christian already asked: What have you tried? Where are you stuck? Why don't you attach your current VI?
10-21-2020 02:40 AM
Hi GerdW,
I think both of you have misunderstood my question and my intention of asking this question in the forum. Please do not simply judge i am the one who looking for a "solution" in this forum if you do not really understand what i was looking for.
I have years of experience in LabVIEW and I am clearly aware of how to convert number to word in LabVIEW using a "self created" look up table and algorithm as per mentioned by Christian.
What i am looking for is a simpler way of doing it. For example in python, we can simply achieve it by using just a command <num2word>. I am just curious is there any module/ command which we can achieve the same result in LabVIEW.
10-21-2020 02:57 AM
Hi 123,
@123xj wrote:
I have years of experience in LabVIEW and I am clearly aware of how to convert number to word in LabVIEW using a "self created" look up table and algorithm as per mentioned by Christian.
Then place all this code into a VI.
@123xj wrote:
What i am looking for is a simpler way of doing it. For example in python, we can simply achieve it by using just a command <num2word>. I am just curious is there any module/ command which we can achieve the same result in LabVIEW.
Save the VI created in the first step using the name "num2word" and setup its connector pane.
Now you got your "command <num2word>" for simple usage…
10-21-2020 03:04 AM
OpenG has a 'Number to Proper English Text' VI and a 'Place Number to Proper English Text' VI in the string palette.
You find OpenG in the LabVIEW Tools Network
10-21-2020 03:06 AM
Hi GerdW,
Thanks for taking time to reply my question.
Maybe you should just simply reply me there is no ready to use function in LabVIEW that can convert number to word. Thanks.
10-21-2020 03:11 AM
Hi 123,
@123xj wrote:
Maybe you should just simply reply me there is no ready to use function in LabVIEW that can convert number to word.
I'm no Python expert, but I guess that "num2word" is not a part of the Python core implementation. It most probably comes with an additional toolkit/module/package (whatever they call it) you need to install…
The same applies to LabVIEW: such a function is not part of LabVIEW core, but you can create it on your own!
(Btw. your question is a perfect example why this specific function should NOT be part of a core package: there are way too many languages with way too many conversion rules out there to support them all with such a command!)
10-21-2020 03:28 AM
Hi UliB,
Thanks for the reply.
That's exactly what i need 😀
Best regards,