annulla
Visualizzazione dei risultati per 
Cerca invece 
Intendevi dire: 

Why it can't work?

Why it can't work,when I push this QQ图片20140407195030.jpg

0 Kudos
Messaggio 1 di 17
3.852Visualizzazioni

Don't know. It should work, when you see the run array unbroken.

 

Btw. you should not use "run continuously" with a VI. It's only intended for debugging purposes!

 

And you should search the term "coercion dot" in the LabVIEW help…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Messaggio 2 di 17
3.848Visualizzazioni

What does "work" mean to you?  Because the code will operate but maybe not like you expect.  In addition to using run continuous (which you should never do) you also have multiple controls with the same label.  This makes explaining the issue difficult but I'll do my best.

 

You have the a-b control as a double, and the a-b control as a U8.  The U8 only has values from 0-255 so if your subtraction has a result other then these 256 values you will not get what you expect.  It also has no fractional component and any subtraction that has a fractional component won't give you the value you expect either.

0 Kudos
Messaggio 3 di 17
3.763Visualizzazioni

Will this one run for you? I have included a while loop so that it behaves the same as the continous run but doesn't over use the CPU by running again and again as fast as possible.

 

Norm

0 Kudos
Messaggio 4 di 17
3.737Visualizzazioni

Well, this looks like a first LabVIEW exercise.

 

Note that if you place a slide indicator, you can show the digital display (right-click...) and now don't need a second indicator. Make sure the datatypes match, you want DBL here (right-click the blue terminal...representation...). You placed a progress bar, which is U8 by default, simply change it.

0 Kudos
Messaggio 5 di 17
3.725Visualizzazioni

Progress bar?  Hmm sounds like the thread to thread isolation is breaking down.

0 Kudos
Messaggio 6 di 17
3.723Visualizzazioni

@Viper wrote:

Progress bar?  Hmm sounds like the thread to thread isolation is breaking down.


The what?  In your first image you showed a progressbar.  In your VI that you just posted you did not have a progress bar.  altenbach was trying to say that the progressbar by default is a U8 and in your code it looks like you want a double.

0 Kudos
Messaggio 7 di 17
3.667Visualizzazioni

@Hooovahh wrote:

The what?  In your first image you showed a progressbar.  In your VI that you just posted you did not have a progress bar.  altenbach was trying to say that the progressbar by default is a U8 and in your code it looks like you want a double.


The first image and the VI were posted by different users. My comment was specific for the original question, which showed a progress bar, as can be seen from the terminal icon.

0 Kudos
Messaggio 8 di 17
3.656Visualizzazioni

Ahh guess I never realized that the icons actually contain useful information. I turn them off to save real estate.

 

 Thanks

0 Kudos
Messaggio 9 di 17
3.625Visualizzazioni

@Viper wrote:

Ahh guess I never realized that the icons actually contain useful information. I turn them off to save real estate.

 

 Thanks


A very large majority of developers do the same.  So much so that it was requested to make it non icon view by default.  It was shot down by NI.  If the poster had posted a VI (like everyone looking for help here should) then the icon view would also simply be wasting real estate.

0 Kudos
Messaggio 10 di 17
3.592Visualizzazioni