09-08-2014 07:32 AM
Hello,
i have 2 Questions:
i want plot some plots like this: http://elektroniktutor.de/bauteilkunde/bt_pict/trkennl.gif
now all my plots have the X in the right position. Can i twist it to the left?
If i negate the X Side its looks ok but the X legend is wrong (because its negative).
I haave seen often in NI Programs that they have an run and stop button.
How can i implement this?
the programm runs all time....with start i start the task and with stop i end the task (but the program will still run)
i only yfound the Funcction "Stop" but it terminate the whole session.
Solved! Go to Solution.
09-08-2014 07:42 AM
3 Hour Introduction
6 Hour Introduction
LabVEW Basics
Self Paced training for students
Self Paced training beginner to advanced, SSP Required
LabVIEW Wiki on Training
09-08-2014 07:44 AM - edited 09-08-2014 07:49 AM
i have done the 3 and 6 hour introduction....
09-08-2014 07:51 AM
@nkritsch wrote:
i have done the 3 and 6 hour introduction....
And they didn't teach you to use a stop button? If you are using the Run Continuous button in the toolbar, stop doing that. Just use the normal run button.
It would help us diagnose your problem if you posted your code.
09-08-2014 07:54 AM
i will do it like : http://www.eng.auburn.edu/~niuguof/2210labdev/html/_images/bjt-iv.png
if i press run...the measure start....if i press stop the measure stops.
But the Program runs all the time.
Using the Buttons "run", "run cont." and "stop" i doont wanted to use
09-08-2014 09:13 AM
Hey crossrulz beat me to it.
Back to the posters issues. Yeah don't do what you code is doing. Try what I've attached. It is your program with some improvements. I think the functionality should be the same. Just click Run Once. Then when you want to run click the start button. To stop click the stop button again, or if the condition is met that normally would stop the VI happens, it will stop on its own. Also to stop the application click the close button (the red X) like a normal program. Of course if a test is running the stop will be ignored until the test completes. You can add your own abort test button if you'd like.
Other general comments. Don't use dynamic data types, don't use express VIs and DAQ Assistant. Don't make the block diagram have to scroll in more than one direction. Don't use run continuous. Don't use Abort VI toolbar button or primative.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
09-09-2014 12:27 PM
@crossrulz wrote:
3 Hour Introduction
6 Hour Introduction
LabVEW Basics
Self Paced training for students
Self Paced training beginner to advanced, SSP Required
LabVIEW Wiki on Training
Two more useful links that have been recently updated/added
learnni.com (currently just for LabVIEW)
ni.com/gettingstarted (which links to the LabVIEW Basics topic crossrulz suggested)
Jeff Peacock
Product Support Engineer | LabVIEW R&D | National Instruments | Certified LabVIEW Architect
09-09-2014 02:23 PM
@Jeff-P wrote:
Two more useful links that have been recently updated/added
That is fantastic, I'll be adding it to the list of recommended links for new users I post.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
09-10-2014 03:30 AM
Hello,
thanks to your code
How do you make it that when you "run" the program the front panel appers on a new window?
why its bad to use DAQ Assistant? in the introduction it was told that we should use it.
do you know how i can tell the XY Graph that i dont want get the Axes (of the X or Y) in the one direction, but in an other direction?
09-10-2014 06:42 AM
@nkritsch wrote:
How do you make it that when you "run" the program the front panel appers on a new window?
I'm not sure what you are asking here.
nkritsch wrote:
why its bad to use DAQ Assistant? in the introduction it was told that we should use it.
The DAQ Assistant is good for very quick programs where you are just quickly getting some data and showing it on a graph. If you need to do any more than that, go to the actual DAQmx API. The DAQ Assistant has a lot of inefficiencies that doesn't make it good for non-tiny projects. And its output is a Dynamic Data Type, which we HATE. The reason we detest the DDT is because it encapsulates the actual data. You will have no clue what the is just by looking at it. And we've seen some really messed up code because of that.
nkritsch wrote:
do you know how i can tell the XY Graph that i dont want get the Axes (of the X or Y) in the one direction, but in an other direction?
If you weren't use the DDT, I would likely say to use Transpose 2D Array.