LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to wire a specific code

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:

salauddin_0-1575553309625.png

FRONT PANEL:

salauddin_1-1575553420785.png

0 Kudos
Message 1 of 5
(2,505 Views)

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.

0 Kudos
Message 2 of 5
(2,496 Views)

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.

0 Kudos
Message 3 of 5
(2,483 Views)

Here's the code:

 

0 Kudos
Message 4 of 5
(2,459 Views)

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?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 5
(2,454 Views)