Jump to content

meocop

Members
  • Posts

    26
  • Joined

  • Last visited

    Never

Everything posted by meocop

  1. Crelf, I don't know if you're being serious or not, but since I got chewed out by Mike for showing a messy VI, I've tried to ask simple questions and given clear examples. These simple things play big role in an application I am trying to develop. See, I write C++ and Java, so my boss thinks that I can write Labview and that's why I am assigned with some labview projects and not sent to any training course. So I appreciate any help I can get. Dan, sorry for falsely accusing your VI not working. But I still think the Enabling Index will work better for me if I can make it work. MC
  2. Thank you Dan, but I don't think your program works the way I want it. The max and min results did not look right because they were greater than 1. The RNG should give numbers between 0-1. Also I've written my program in such a way that using Enabling Index is the most simplest way and I like to make it work that way. Thank you. MC
  3. Crelf and Mike, What I want to do is to to take a bunch of data points on my N part and then a bunch of points on my S part, then calculate some statistical vaules such as max and min. So I used the Enabling Index concept and it seemed to work. However I kept getting 0 for the min and I am not sure why. Please help. Meo Cop Download File:post-4960-1161363802.vi
  4. Thank you all for helping me. You guys are great!!! MeoCop
  5. Re- attach the test.vi MC Check out the VI again. That's my solution to my problem. The code is horrible, but it does the job. Pleae share a better way of doing this if you think up one. Make sure you use capital N or S. Thank you, MC Download File:post-4960-1160000195.vi Download File:post-4960-1160002038.vi
  6. Mike, - You're absolutely right that my code is a mess and unreadable - You're wrong that this is school/course work Attached is a simplified version. Basically depending on the user input (N or S), I want to plot on the Norht or South graph. I have two analog signals, one used for x and one for y. I use 2 RG in their places in the code. Where I am stuck is in the False case, I don't know how to wire. Your help is appreciated. Meocop Download File:post-4960-1159988801.vi
  7. Hello, In my application, I have two xy graphs, one for the North and the other for the South. So depending on what the user input is (N or S), I want to plot the information on the correspondent graph. I used Match True/False string to capture the user input, then use a Case structure to pass my information to the correspondent graph. I does not work. Please see my attached VI and help!!! Download File:post-4960-1159977483.vi
  8. Mike and Dave, thank you. Both ways worked. It's great. MC
  9. Hello, I am working on a simple excersise. I'd like to automatically reset my Total (please refer to my attached VI) to 0 (basically resetting my shift register to 0) when it reaches a certain value, let say 20. Could anyone help me make that happen? I am stuck. Thanks, MC Download File:post-4960-1156894826.vi
  10. meocop

    Counting Events

    Gary, Yeah I know that I did not explain clearly what I am trying to do here. But believe, your program helped me get my project done, at leat I am 90% sure at this point. I need to test it over and over to make sure there are no glitches. People on this website are awsome. Thanks Gary. MC
  11. meocop

    Counting Events

    Thanks again Pete. I know some more about my hardware. Well I thought of something and now turn my problem in to this: let say I want to compare two successive signals, and if the first signal is zero and the second signal is not zero, I'll increase my count by 1. Would you help modify my program? I am sweating over here as dealine is around the corner. I use a random number generator in place of my signal. Thanks in advance. Download File:post-4960-1150825099.vi
  12. meocop

    Counting Events

    Pete, I think this is what I have: AMUX 64T hooked up to a SC2050 cable adapter board (these two boards sit in an electrical box), sort of acting like a enclosed connector block. I also have a ATMIO 16E10 board sitting in my computer. Regardless of the hardware though, I don't feel comfortable with using a timer because something can happen to my process that will throw the timer off. I am thinking about something like a gate switch or event trigger or something of that nature, but I don't have a good knowlege on any of those things. Thanks for trying to help Pete. MC
  13. meocop

    Counting Events

    I have an old NI Amux 64I card. Yeah I am aware of all the problems you mentioned, but I don't know how to "tell my program to count once", to use your phrase. Using a timer does not work for me because my process is not stable ( I mentioned above that the cycle duration is not constant). Using a comparator (greater or less than a certain value) does not work either because my signal fluctuates a bit. Can you tell me how to count just once per cycle? Thank you. MC
  14. meocop

    Counting Events

    I forgot to attach the VI, sorry. Here it is. Thanks. Download File:post-4960-1150757490.vi
  15. Hello, This is sort of a follow up question to my previous post "Keeping Count". Thanks for your help, I now know how to use shift registers to keep count. I am running into a bit of a problem with a real application here at work. I have a pulsing voltage signal that goes from 0 to roughly 4.5 volt and goes back to zero, counting as a cycle. For each cycle the peak is not constant, nor is the duration of the cycle. What else do I need to do to count the cycles when timer and comparators don't do the job?? Thx, MC
  16. Great, great tip Guillaume. I appreciate it. MC Download File:post-949-1150195544.vi :thumbup: Great job! You might want to explore the comparison palette a bit more. Press <CTRL-H> to turn on the context help and you will see some basic info on the different operators. Thank you for your help as well Phillip. I got most of what you said except the "reset to zero each time pressing the stop button". With your program, the counter is still reset to zero each time I stop and start, is it not? MC
  17. Thanks Guillaume. The problem is I'm not quite sure how to use the shift register with my Case Loop. MC Well, I changed my code a bit but it's working better, but not totally right. It's resetting my Count to 0 when the comparitor is false. I don't want it to that. What changes do I need to make here? MC Download File:post-4960-1150153978.vi
  18. Hello all, How do I do this in Labview? - Generate a number between 0-1 - If the number is less than .5, increase my count by 1 I read about shift register, but it's for For loop and While loop only. Attached is my code, which does not work. Please help modify my code. Thanks, MC Download File:post-4960-1150148738.vi
  19. Hello, I am trying to re-write an old Labview program which has this small block that I am not quite sure what its function is. Would anyone help explain to me what it does?. Attach is the VI (after I deleted the rest). Thanks, MC Download File:post-4960-1149291231.vi
  20. That's awsome. It worked now. Thanks for your help ES. MC
  21. Hello, I am trying to write selective data to a file. By "selective", I mean I want the users to turn a on/off switch to only save the data that they like. So I figured if I put my data through a Case loop and wire an On/Off button to it, that will do the trick. Attached is my vi. I have two problems with it. 1. Some how, even I put everything in a while loop, the execution stops after 1 iteration. Can anyone help explain? 2. For my Case loop, I hope that the False case would not give any data, but that's not the case. False case gives "0". Is there a better way to do this? Your respons is much appreciated. MC Download File:post-4960-1148504903.vi
  22. I found a solution. I used Express XY graph instead of XY graph. Express XY graph gives me an option of "Not clearing previous data" whereas XY graph does not. Thanks for looking into this guys. I am sure I'll have more questions in the future. MC
  23. Thanks. Can you be more specific by giving detail instructions or examples? I appreciate your help. MC
  24. Thanks. But that's not exactly what I try to do. On my front panel I have a number controller and my application requires the user to click on the number controller to provide the location (1, 2, 3) and each location will have a voltage reading. Thus, I cannot use a For Loop. MC
  25. Hi all, Thanks in advance for any of your advice. I am trying to do a very simple task. I want to display a voltage signal (corresponds to some quality parameter I need to monitor) on a XY graph. I need to display a static upper control limit and lower control limit and a moving, real-time value with the user supply the location (x axis). In my attached program I used a random number generator in place of the voltage signal. The problem I have is I can only display one point at a time. What do I need to do to display the last twelve data points? I have tried many different ways (using loops, array etc.) but to no avail. Please help. MC Download File:post-4960-1148421910.vi
×
×
  • Create New...

Important Information

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