Jump to content

twstedsurf

Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Posts posted by twstedsurf

  1. Comparing fractional numbers doesn't always return what we think it should. The decimal presision you are seeing in the probe is not the entire number, it's just it's set to display.

    Try creating a couple indicators on the front panel and set their properties to show 10 decimal places (or more if needed) and see if they really are equal.

    Ed

    5440[/snapback]

    yes, but even if it's padded with 0's, shouldn't "=" still return true?

  2. Hey all,

    i set up a program to read in from an excel file(using tab-delimited), and it seems to read into the arrays just fine. However, i need to look through the first column(of two) and pick out two values. I altered the read in vi for pick out the column, and it seems to be when i go through it after the vi runs. The problem with the vi occurs when it is comparing the values in the column array to the entered numbers. I have set probes to check the numbers being sent(and while it says that they are the same) the "=" doesnt recognize them as being the same. Attached is an example of what im trying to do.

    any help would be much appreciated, as this is driving me crazy.

    thanks,

    jesse

    post-2536-1122563519.jpg?width=400

  3. Either you didn't read very much or you just didn't try.

    See attached example.

    5364[/snapback]

    Yeah, i read just a bit to get the general idea about LV2's, but did attempt to make it work for quite a while. I couldnt get the download to work, as my version of LV is too old to handle it. After going back and looking over everything again I have gotten to the point to creating an array of the ctrl references, putting into a for loop and setting visible/invisible. However, i am at a loss for the global portion... i dont know what i should connect to the shift registers, and what i should return to the calling vi, and what this return would connect to(if anything at all). Sorry if im just being an idiot about this.

    thanks

  4. So for things where I have an insane amount of controls I need to work with, I create an LV2 global and initialize it with an array of references.  Thereafter I can select any other function that I program the global function to do.  So the moding enum might contain the values "Init", "Set Visible" and "Set Not Visible", but the only time it would need to be wired to the array of control references would be for the "Init" call, and thereafter the VI could be called anytime to perform the visibility functions.  If you are not familiar with LV2 globals (also known as functional globals) I would recommend reading up on them.

    5296[/snapback]

    So i read up a bit on LV2 globals, and i have not idea how to implement what you are suggesting. I understand how to use LV2 globals, but... would i, in the globalVI, use an array/cluster of property nodes? or of variables of the same name as the original program? A couple more pointers would be supremely helpful :worship: .

    Thanks.

  5. Hey everybody!

    I was creating my own run-time menu option, and noticed that if (during runtime) the option is selected a second time it wont do what it should :thumbdown:. I circumvented this originally with an event structure, but i was wondering if there is any other way to deal with it, as it is not worth the trouble to add an event structure at this point.

    Thanks!

  6. and if you turn it into a subvi it will take up even less space. SubVi are our friends :shifty:

    post-584-1121314855.png?width=400

    5335[/snapback]

    Sorry i didnt specifiy aobut the extent of using SubVIs. I merely ment that i wanted to retain a single front panel, rather than create a new panel for each sub portion of my program(the advantage to using tab menus/ring menus, in my opinion). Thanks for you idea.

  7. You can select an "Invoke Node" from the diagram palette under "Application Control".  Right click on it and select "SELECT CLASS" >> "VI SERVER" >> "VI" for it's class.  Then right click on it again and go to "METHODS" >> "REINITIALIZE ALL TO DEFAULT".

    1556[/snapback]

    Hi,

    i was wondering if you needed to include the reference number for the vi that you place the node into, or is that just necessary to reinitializing the variables in another vi?

    thanks,

    jesse

  8. Hey all,

    Im fairly new to LabView, and am building a program which is using a ring menu to bring up several options, depending on choice. I was wondering if there is any way (without using a subvi) to cut down on the number of property nodes that i need to use to enable/disable the visibility of each control, indicator, etc... Right now it is taking up a massive amount of space :headbang: in the panel, any help would be appreciated.

    Thanks,

    Jesse

×
×
  • Create New...

Important Information

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