LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with Labview

Now I don't blame labview with being a terrible language, besides it is not
meant for anything that can be done with some simple C coding
However I have a project due and I need answers. My project involves a
certain peice of data to be updated periodically
without being reset, meaning when I have an indicator set to a certain
number initially and through the program subtract some arbitrary number and
then I want to go and subtract from it again I would like to subtract from
the new value and golly gee Labview does not let me do that and No shift
registers are not my answer I need something a little more effective so if
there is any labview Gurus out there who think that they know the solution
please besides posting it up send me an e
-mail b/c I am not always checking
up on these messages.
I thank you for accepting my ignorance.
0 Kudos
Message 1 of 4
(4,037 Views)
Peyman Malekzadeh wrote:

> Now I don't blame labview with being a terrible language, besides it is not
> meant for anything that can be done with some simple C coding

I have yet to see any SIMPLE C code that can graphically display anything !

>
>
> without being reset, meaning when I have an indicator set to a certain
> number initially and through the program subtract some arbitrary number and
> then I want to go and subtract from it again I would like to subtract from
> the new value and golly gee Labview does not let me do that and

Not sure if I read this right. If you subtract from a number you get an
answer. If you take that answer you can subtract from it also.
All you need is to drop another subtract operator, wire the answer
from the first subtract in wire
the other side and you are done.
That is a close as I can get without more info
Kevin Kent
0 Kudos
Message 2 of 4
(4,037 Views)
> Now I don't blame labview with being a terrible language, besides it is not
> meant for anything that can be done with some simple C coding
> However I have a project due and I need answers. My project involves a
> certain peice of data to be updated periodically
> without being reset, meaning when I have an indicator set to a certain
> number initially and through the program subtract some arbitrary number and
> then I want to go and subtract from it again I would like to subtract from
> the new value and golly gee Labview does not let me do that and No shift
> registers are not my answer I need something a little more effective so if
> there is any labview Gurus out there who think that they know the solution
> please besides posting it up send me an e-mail b/c I a
m not always checking
> up on these messages.
> I thank you for accepting my ignorance.

I think you are looking for a local variable or a global variable. This will
let you read the value from a control or indicator at one place on the diagram
and write it at another. This serves the same function as a shift register,
but since it updates the screen each time it will be slower. If you
want to
see the value each time inside of the loop, but have better response, then
use the shift register and connect an indicator to it.

I think the conceptual problem here is that a wire from a controls isn't a
reference, but a value. Changes to value do not affect the control unless
written back using a local variable. A control isn't analogous to a C
variable, wires and shift registers are.

In the future, it might be more effective to spend time describing your
problem in greater detail and less time slamming the language you are trying
to learn.

Greg McKaskle
0 Kudos
Message 3 of 4
(4,037 Views)
Hi,
You can use local variables to do that, see ex1.vi

timo





Peyman Malekzadeh wrote:
>
> Now I don't blame labview with being a terrible language, besides it is not
> meant for anything that can be done with some simple C coding
> However I have a project due and I need answers. My project involves a
> certain peice of data to be updated periodically
> without being reset, meaning when I have an indicator set to a certain
> number initially and through the program subtract some arbitrary number and
> then I want to go and subtract from it again I would like to subtract from
> the new value and golly gee Labview does not let me do that and No shift
> registers are not my answer I need something a little more effective so if
> there is any labview Gurus out
there who think that they know the solution
> please besides posting it up send me an e-mail b/c I am not always checking
> up on these messages.
> I thank you for accepting my ignorance.

--
***************************************************
*Timo Miettunen *
* *
*Design Engineer *
*Fincitec Oy ASIC Department *
*e-mail: timo.miettunen@fincitec.fi *
***************************************************
*Address: * *
*Lumikontie 2 *Tel: +358-16-2151245 *
*PO BOX 11 *Fax: +358-16-221561 *
*FIN-94600 KEMI Finland * *
***************************************************
0 Kudos
Message 4 of 4
(4,037 Views)