LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to enter constants into Labview that will affect the graph?

Solved!
Go to solution
How do you enter constants into Labview in which x and y would be dependent on them? Ex. Say I am creating a graph of voltage vs time and I want to have constants such as trigger level (such as wanting my graph to start recording data when it reaches 20 volts and stop recording after 20 volts). I would also want to have a time interval as a constant. I have no clue how to do this in labview so I am looking for some kind of help. Thanks
0 Kudos
Message 1 of 8
(3,625 Views)

You would just make the values write to an array of x vs y.
The values would only write if some boolean was true (such as voltage > 20)

Then cluster the x and y and send the cluster to a graph.

Message Edited by Cory K on 12-11-2008 11:04 AM
Cory K
Message 2 of 8
(3,624 Views)
Thank you, sorry if the question was on the dumb side. But i am very new to this program and before Christmas break I have to set something up for my job. I have been reading a lot about Labview and have done some tutorials, but nothing I have read has mentioned any of that and I am getting very annoyed with trying to figure things out by myself. Some of the stuff doesn't make any sense to me.
0 Kudos
Message 3 of 8
(3,617 Views)
Solution
Accepted by topic author jenifr2g@cox.net

What I was explaining before was correct, however disregard the image.

Here is the code you could use instead.

Message Edited by Cory K on 12-11-2008 11:19 AM
Cory K
Message 4 of 8
(3,615 Views)

Ok, thanks.

Where do you find the I32 constant? I can't seem to find it anywhere

0 Kudos
Message 5 of 8
(3,609 Views)
Nevermind, sorry, I feel really dumb right now. I just figured it out. Thanks for your help again 😃
0 Kudos
Message 6 of 8
(3,605 Views)
Does anyone know if once you have the code given above how you could incorporate it to give a table of the graph?
0 Kudos
Message 7 of 8
(3,574 Views)

After the build array function, right click on the output side, and click "create indicator".

This will put an array (table) on your front panel. 

Message Edited by Cory K on 12-12-2008 12:51 PM
Cory K
0 Kudos
Message 8 of 8
(3,542 Views)