Jump to content


  • Posts

  • Joined

  • Last visited


MicrochipHo's Achievements


Newbie (1/14)



  1. This is what I am planning to do for context: I believe instead of the loop interations i have in the original sub vi. i will use the times that the whole loop incremented at whatever the user chooses, and the sine curve will be updated with that when the person chooses refresh. Then a sub vi is needed (it must be created) to calculate the rms value. Here are the quotes: Create a new vi and place the sine wave sub vi in a while loop delayed by a wait function that is synchronizable to the system clock. The loop is updated witha control in the units seconds. Place a momentary button named refresh that updates the display and writes the control values to the wave sin generator. Boolean controls to view the three awways shoul also be on the front panel. Place an error handler in the code to notify the user that a maximum voltage of 10 Vpp. Create a subvi that acquires 1 cycle of the generated data and calculates the rms value. save it in a wired and password protected version. i think i may have overdone the connector panes. Is it worth having a subvi at all?
  2. i am gueessing that the subvi is not the way to do it, because you still want to extract some of the parts of the sub vi - the gain, all the calculations and etc, and be able to graph it. Because eventually you want on the front panel, the update button which will replace the times generated by the loops, and then replot the sine curve. I also see the considerable amount of downloads but no answer, has everyone else just given up on this? If anyone is actually dissecting it, let me know if you are or have given up. I asked other people ni the class and they used enumeration rings and truth structures. It may have been the way i created the sine wave program in the first place, and now I am thinkig that he menat just make it its own seperate sect of code so it isn't manglrd. Also, the assigment was to use a sub vi, so i i assumed that you take the sine wave vi and put it in another vi. It doesn't seem like it can complete its purpose that way.
  3. Well, I tried to add a sequence to calculate the RMS. Here is the subvi, it works without the flat sequence. It's jsut the way that it is put together...i don't know if that's the way to pass in the data. It's a stumper.
  4. I am having trouble with this one task: wait function with system clock "Create a new VI and place the sine wave subvi in a while loop delayed by a wait function that is syncronizable to the system clock. The loop is to be updated with a control that works in units of seconds"? Range being 0-10, an increment being 0.05 seconds. WTF?! On the example final panel there is a Update(s) Control button that says 0.05. So, I guess you can change the updates in multiples of 0.01 seconds? How do I get all the stuff on my display panel on the sub-vi to show up on the the final display panel...or vice versa....
  5. Hi. I saw your other post on this. I did right click on one of the arrays and choose property node visible. I cannot write to that node, it gives me error in and error out clusters, and an output for visible. I am sorry i might need you to spell it out for me. I also want it to have a switch where you choose. I have seen other examples where they use state machines and make arrays for reference......i really am not prepared for that. If so...i would need some guidance.
  6. Ok, I have three indicators of arrays on the front panel. I know how to hide them on the front panel by right clicking them and pressing "hide indicator" but I would like to have the user be able to choose to hide them thru a boolean. Is there a way thru the property nodes?
  7. i have created a front panel which has an array of booleans indicator, and a numeric input. My assignment now is to generate a wire diagram that is used to activate individual elements of the away, turning the lights on when the true case is selected, and only one element should be true at any incident. After that it is to be put into a while loop to be terminated after each loop after wach element of the array has been true at least once. What I have is a conditional to see if the input number is even, and I have set a build array function outside the cause structure, to build an array. Right now it runs, but it only builds one element of the array each time it runs. Showing in the indicator when it is indexed at 0 and the input is even. I am guessing that there needs to be a loop to continuously feed a variable in thru the conditionals, or to have one input compared against three conditionals.. Here is what I have done so far... can someone give me a starting point
  8. QUOTE (Jim Kring @ Apr 21 2008, 07:26 PM) Thanks for the formula, I will keep that in the back of my mind until further use. the question remains is how to get it in real time, plot for 10 seconds every .25 seconds. and then to write it to a file. If anyone has any input by 3PM today, that'd be cool. I will keep on trying to figure crap out until then. See Vi in my latest post above.
  9. QUOTE (TobyD @ Apr 21 2008, 04:56 PM) Thanks for all your help guys! Ok, I got the program to run. I am having trouble getting my thermometer to measure in real time. I am guessing the 1-10 loop isn't going to count for 10 seconds..... The assigment is to get the thermometer to run for 10 seconds, gathering a data point for every .25 seconds. I have a feeling that I put the time delay in the wrong place....and I am going to have to rearrage the whole thing.... After the array is written,it has to be output on a chart and written into a spreadsheet . After pressing stop, the dialog box will appear, and ask the user to name the spreadsheet, and the file should appear....let me know what you think
  10. QUOTE (Chris Davis @ Apr 21 2008, 04:42 PM) Update: I tried doing this: two random # generators, one times 18, one times 24. Subtracted them, and returned that to a for loop (I disabled the indexing), and returned it to the Celsius to Farinheight. Am i going to have to put that into an array. What I want it to do is to stop collecting the 18-24 data and stop converting it, stop writing it to the array and etc... plan to do that with a while loop and/or case structure. ....
  11. Ok, Part of the assignment is to generate a number between 18 and 24, and then i want to return that number to a sub VI. What a I did is multiply the randome # generator by a 100, and then put a conditional if the number is greater than 18 and less than 24....can't return the actual value, because than the output is a boolean. There are examples of how to do this whole program on the internet, but I want to work with my own code. How do I get this to return the values in float precision? I know I sound lame but I am terrible at programming...but i am trying =(
  12. Well, I have taken a few comp sci courses, i have done badly in them all. I understand where to get some of the functions and what each one of them does, but hooking them all together... Did you look at my VI, is there some guidance you can provide me with?
  13. OK. Thanks. I am confused about the whole inputs and outputs thing (I was never good at programming, and I don't have an electrical background so the whole wiring thing confuses me) I have a crude block diagram 7.1. I need a little more guidance here. Anyone?
  • Create New...

Important Information

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