Jump to content

Ano Ano

Members
  • Posts

    132
  • Joined

  • Last visited

Posts posted by Ano Ano

  1. Yes you can do that, it's not too complicated, see this example that comes up when called, wait a few second and goes away.

    You can place it in antoher VI like you would put the "two button dialog" primitive.

    The VI is in LV 8.6, let me know if you have question about it.

    Thank you for your prompt response

    I want to be like a pop up window like the "one button dialog" but with out the button.

  2. Hello, I want to find away to reinitialise to default about 40 indicators at the start of my program. I am doing this because when I run the program again it uses the values that it previously had from the last run.

    I could use an invoke node 40 times but this is a bit tedious

    Does anyone know how to do it?

  3. Hello,

    I have a "start button" that is connected in a True/False case Structure (See attached picture). When the button is pressed it sends a "True" signal and the timer inside the case structure counts to 30". When the 30" is reached the structure gives a "True" signal out for the program to stop.

    The problem is that when I start the program again, the "start button" will start at the pressed position. How can I make the "start button" to always start at the unpressed position?

    Thank you in advance,

    post-20867-0-19507500-1305037422_thumb.j

  4. Hello,

    I have a while loop and I want to write to a file (spreadsheet) continuously. When the stop button is pressed the last data should be saved on the file.

    The first thing I write on the file is some header info and then the data that is in the loop.

    The problem is that for each loop the data is appended at the bottom of the old data, where as I want the new data ie from cell C3 to overwrite the old data in cell C3.

    I can try to set the append to file to "F" but it will delete my file header info.

    How can I overwrite the data without deleting the header info?

    Thank you in advance

  5. Hello,

    I just noticed a strange thing

    All the Y-axis in the vi that I am working on are gone!

    If I start a new (unconnected) graph in this vi, then the Y-axis will not appear

    If I start a new (unconnected) graph to a BLANK vi then the y-axis is there

    why is this happening?

    I just copy-pasted my code to a new vi and my y-axis magically appeared.

    Does anyone know why this happened in the first place?

    post-20867-0-91841800-1303394070_thumb.j

  6. Why are the configuration steps into the loop? you should initialize only once.... same as closing steps...

    So I should keep them out side the loop?

    Why are the configuration steps into the loop? you should initialize only once.... same as closing steps...

    Can you please tell me which parts to keep inside and which outside the loop?

  7. Well, maybe you should just read connected channels not every channel! Or use some case structure, if Temperature>1000°C then temperature=inf

    Thank you for your reply.:thumbup1:

    I followed your advice (if Temperature>1000°C then temperature=inf) and it works. I would have been nice if NI had a way to self diagnose which channels are not connected.

  8. Hello,

    I am using a USB-6255 to output/input data and it works fine (see part A & B in picture)

    When I added code (see part C) to input temperature data from a NI-6213 a strange thing happened.

    The graphs stopped showing data where as all indicators and probes show the data just fine!

    The code for the temperature works fine alone

    Why is this happening and why only graphs/charts are influenced?

    post-20867-0-53675100-1303382546_thumb.j

  9. Hello,

    I am trying to use a NI-9213 to read temperature.

    My setup reads all channels but I do not use the same channels each time so some are read by Labview but there is no thermocouple present. The reading from these "open" channels is 1376,34 C :wacko:

    How can I make them disply "Inf" or "Not Connected" etc?

    Thank you in advance

  10. Can you give us an overall picture of the program, I may have some thoughts regarding your problem, if you didn't already solved it;

    The code is too big area-wise to make a print screen. What you do not see in the attached picture is that the threshold detector and timer runs inside a while loop

    Before the threshold detector and timer there is code to output a 10V dc to the circuit and code fot the acquisition of the 10 signals.

    After the threshold detector and timer there is the data output code

    Is this information sufficient?

  11. Hello,

    I have a 10 input threshold detector in a while loop and I the data are collected outside the loop and saved when the "stop" button is pushed

    If this program mis interrupted by something else besides the "stop" button (ie power cut) then I will not save any data.

    How can I save the data while the program is running and also have some output IF the process is interrupted?

    I tried saving the data in the loop but it creates many files. I have placed a time tag on the file path so that each time the program starts it writes the data/time on the file name. Inside the loop when it saves the data, it tries to save it to the same file but the time and hence file name have changed, so it creates multiple files. How can I solve this?

    Thank you in advance,

  12. HI,

    You can use a for loop, you have to create an array of your threshold that you wire to the loop using indexing. you also can wire the "i" terminal to the array function on the left instead of wiring N inputs.

    Regards,

    Rodéric

    The threshold part works!

    There is a new problem now.

    - After the threshold is detected I have a timer, for each input, to measure the time until the threshold is reached and the time after the threshold is reached until the stop button is pressed.

    In other words I need a separate timer for each input. If I insert the timer in the for loop in order to use the same code, then the timer part does not work anymore properly.

    How can I make this timer integrate with the for loop properly?

    post-20867-0-45113300-1301664740_thumb.j

  13. The code almost looks deliberately wrong, which makes me wonder if it's a school assignment??? If so, while we're all glad to help people out here, we really shouldn't be doing your homework for you.

    Its work!

    What you see is a patch work from different other vi/examples etc, and no it is not "deliberately wrong"!

    Indeed, there's different ways to do this. and I dont think this is the simpler way, but if it works then...

    You seem to use an indicator as a control for the file path... or maybe I dont have the whole picture.

    Your design is a bit weird to me.

    It is an indicator, the file path is generated via a path/tag code. I chopped it off as I thought it might be confusing

  14. I think we've gotten to the point where you need to post some code of how you've tried to implement the suggestions Roderic and I have already made, and what's working and what's not working.

    I made it work (see Attached Picture)

    Where you talking about another way?

    Is there another way to make this, perhaps more simple?

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.