LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

caliing My Computer in LabVIEW

Solved!
Go to solution

Somil it is nice. but one thing there is no delay in the loop it shoots up your CPU usage.

better use the wait for the front pannel activity function inside the loop.

 

Front pannel.JPG

Balaji PK (CLA)
Ever tried. Ever failed. No matter. Try again. Fail again. Fail better

Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
Message 41 of 83
(1,318 Views)

Oh, true.

 

I think putting a 1 millisecond delay will also do effectively

Somil Gautam
Think Weird
0 Kudos
Message 42 of 83
(1,315 Views)
Ya putting a 1ms delay reduce your CPU usage, but why you unnessasarily running your while loop 1000 times per second. Use wait front pannel activity function, your while loop wait untill a front pannel event happen.
Balaji PK (CLA)
Ever tried. Ever failed. No matter. Try again. Fail again. Fail better

Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
Message 43 of 83
(1,310 Views)

ok,

but this is what is happening when i use the function

Somil Gautam
Think Weird
0 Kudos
Message 44 of 83
(1,308 Views)

CPU process.JPG

 

I think you CPU usage shoots up because of some other reason not because of Wait For Front Panel Activity.Smiley Wink

Message Edited by Baji on 09-24-2009 12:05 PM
Balaji PK (CLA)
Ever tried. Ever failed. No matter. Try again. Fail again. Fail better

Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
0 Kudos
Message 45 of 83
(1,295 Views)

Somil wrote:

here it is


  • Why are the upper two property nodes inside the loop? They never change. They should be before the loop.
  • Why are you branching the reference wire? I doubt the property nodes can execute in parallel.
  • The string control should be "limit to single line".
  • Why is the front panel maximized? That's annoying.
  • I probably would use an event structure.

 

Message 46 of 83
(1,276 Views)

Ya, i also observed nothing with the property nodes. But even if you put them before loop, still you cant observe anything.

 

Also, see the effect of not wiring the property nodes.(Attached image) even though the property nodes can run in parallel

 

I really dont know the effect which " limit to single line" would make.  please explain

Somil Gautam
Think Weird
0 Kudos
Message 47 of 83
(1,267 Views)

Somil wrote:

 

I really dont know the effect which " limit to single line" would make.  please explain


Directly from the LV 8.6 Help. Smiley Happy

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 48 of 83
(1,245 Views)
ok
Somil Gautam
Think Weird
0 Kudos
Message 49 of 83
(1,240 Views)

What Altenbach was trying to tell you reg the property nodes is that if you branch the reference wire to 2 nodes, they may not execute in parallel. Also for things that are NOT going to be changed per loop iteration, it is meaningless to place them inside the loop & simply keep them running (writing/reading the same value across all iterations till the loop is stopped). Thats is why he told you to keep them before the loop. Smiley Happy

 

Not to disconnect the ref wire from one of the nodes; if you do so, LV will automatically show you the Syntax Error [broken Run button]. Smiley Wink

 

Hope this clears something for you...

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 50 of 83
(1,231 Views)