12-05-2019 07:46 AM
Dear Experts,
I am trying to recreate a specific piece of code which involves working with slider. I am wiring with all the same terminals and properties, still I am unable to succeed doing the same. Your help will be appreciated. Thank you.
CODE:
FRONT PANEL:
12-05-2019 08:00 AM - edited 12-05-2019 08:01 AM
It would be better if you attached the actual VI so we could poke around with it. A picture doesn't do much.
The one thing I see is that the string in the units converter appears different. One has a space before GHz, the other after.
Do you even need to use the units converter? That feature was a good idea in LabVIEW, but never really worked fully. It has some bugs associated. A few people here love it. Most, including me, just avoid it. The benefit has never outweighed the potential problems.
12-05-2019 08:14 AM
Also note that Expression Node and Convert Unit look exactly the same, but do something completelly different. I couldn't replicate your exact situation, but perhaps it's worth double checking.
12-05-2019 09:19 AM
Here's the code:
12-05-2019 09:27 AM
Hi salauddin,
two faults:
1. You are trying to wire the wrong input of NumberToFractionalString.
2. The slider named "DAC sampling…" already has a unit and ConvertUnit removes it while the slider "Slide" has no unit and ConvertUnit adds the unit. NumberToFractionalString does not support inputs with units - as is been reported by the context help when you hover over the broken wire…
Did you take the LabVIEW basics tutorials?