Jump to content

Michael Malak

Members
  • Posts

    18
  • Joined

  • Last visited

Everything posted by Michael Malak

  1. I'm reading in a BMP, converting it to a pixmap, and making it the background image to an XY graph. Is there a way in LabVIEW to scale a pixmap, or do I have to write my own image scaling code?
  2. QUOTE (normandinf @ May 27 2009, 10:40 AM) When I tried that yesterday, it only changed the size and location of the interior graphing area, leaving the visible Waveform Graph frame & scales where they were originally.
  3. QUOTE (Jaromir Ludwin @ May 27 2009, 06:26 AM) Yes, but how did you get Width and Height to be writeable properties? On my LabVIEW 8.2.1, the option "Change to Write" is grayed out. And the help for GObject Bounds:Height says "No" for "Settable when the VI is running".
  4. I'm trying to resize a Waveform Graph at runtime (as the main front panel is resized, in response to the Resize event), and I'm starting to think it's impossible. I see that the GObject Width and Height properties are read-only. The "VI Properties->Window Size->Scale all objects on front panel as window resizes" does not produce acceptable results because if the user shrinks a window to be small and then enlarges it again, buttons, text, etc. start to overlap because they do not return to their original positions. I tried to protect sub-areas of the panel by putting them (e.g. aligned buttons) into tabs, but that automatic "scale all objects" evidently does a deep search to resize and does not respect tabs as protection. I thought maybe I could utilize a splitter since the splitter seems to have nice resizing capabilities, but I then wanted to make the splitter invisible (to invoke it only at run-time) but that seemed to be impossible. How can I intelligently rearrange VIs on my front panel, in order to accommodate different screen resolutions?
  5. QUOTE (normandinf @ May 23 2009, 06:52 AM) That was it! I deleted my XY Graph, placed a new one, and wired in the data generation from the LabVIEW example code for multiple plots. Then I created a new reference from that and deleted the data generation code. Thanks for the help.
  6. Plotting multiple plots to a single XY Graph is easy enough when the XY Graph is in the same VI -- thanks to the Multi Plot example that comes with LabVIEW. Specifically, create a 1-D array of clusters of a 1-D array of (x,y) points/clusters. This can connect directly to an actual XY Graph. But all I have is a reference to an XY Graph. When I select the "Value" property, it won't accept multiple plots. It will only accept a single plot. What property(ies) should I be using to plot multiple plots on an XY graph?
  7. QUOTE (Neville D @ May 14 2009, 03:32 PM) I should have mentioned that it was what I decided upon at the end of this thread: http://forums.lavag.org/Instantiate-WaveGr...aded#entry62912 In a nutshell, I need 12 WaveGraphs, independently controlled (including zoom), yet treatable as an array. So I am using an array of 12 references to 12 independent WaveGraphs. The attached diagram shows my current solution, which is to wire the array of references directly to where it is needed in the event loop.
  8. OK, so now I've decided to have an array of references to 12 WaveGraphs. And it works. For the sake of keeping the diagram clean, I would like to separate the initialization of this array from the use of the array. But when I right-click on the output of the Build Array VI, the option "Create Local Variable" is not available. Is there an alternative to wiring the array directly to where it is being used, or is there some way I can separate my initialization code from my event-handling code?
  9. QUOTE (mross @ May 13 2009, 03:34 PM) Thanks for the info on instantiation. I had guessed that perhaps it might be possible with the "Open VI Reference" VI, but I guess now that that's not the case. Manually placing N WaveGraphs (12 is all I need immediately for the next month) and then placing references to them in an array is the approach I'm going to take to achieve simultaneously the programming convenience of arrays and independent properties (such as zoom) in the WaveGraphs. I'll simulate instantiation via the "Visible" property of each WaveGraph.
  10. QUOTE (normandinf @ May 12 2009, 05:13 PM) The inability to independently specify zoom would indeed be a bummer, which leads me to my original question this thread (which still hasn't been answered): how to dynamically instantiate a WaveGraph?
  11. QUOTE (ShaunR @ May 11 2009, 03:53 PM) OK. How can I change the size of the control array at run-time? The Array Property Node "NumCols" seems to be read-only. UPDATE: Never mind -- I discovered "Make write-only" on the Property Node.
  12. QUOTE (Mark Yedinak @ May 11 2009, 04:46 PM) I probably should have also included up front that I have 2-3 decades of non-LabVIEW experience and that the requirements for this project are well-defined and set in stone due to the existence of a previous application lineage with the same use interface in continuous use for the past 15 years. The suggested solution of an array of clusters of WaveGraphs is probably going to work for me, and actually answers directly the previous question I asked on the User Interface subforum here, which is why could I create an array of toggles, a cluster of WaveGraphs, but not an array of WaveGraphs.
  13. The number of graphs does need to be determined at run-time, depending upon how many channels are in the file being read in (will be in the range 1 to 64). Now my question is how to dynamically instantiate WaveGraphs using "Open VI Reference". I've just now asked this separately in a new thread in the Application Design & Architecture subtopic.
  14. I am new to LabVIEW. I am trying to read in a file that has N channels, where N is somewhere between 1 and 64. I need to display each channel in its own graph (overlapping is not acceptable to the users). Thus, I would like to dynamically instantiate at run-time N instances of WaveGraph. How do I do this? I see that there is a VI called "Open VI Reference", but it requires as input what seems to me to be a physical path to the VI source. How can I use "Open VI Reference" to a built-in VI such as WaveGraph? And is there anything else I need to do to get it to be displayed on my VI's front panel?
  15. QUOTE (normandinf @ May 11 2009, 11:15 AM) My users demand separate waveforms on separate plots (e.g. eight channels in a 2x4 arrangement of plots), even when this makes each plot tiny.
  16. I am new to LabVIEW. On a VI front panel, it seems that I can create an array of toggles or a cluster of WaveGraphs, but that I cannot create an array of WaveGraphs. Is this a known limitation, and if so, is it documented somewhere and is there a rationale for it?
  17. You guys did such a great job answering my first question http://forums.lavag.org/Newbie-Q-Writing-t...ols-t13762.html now on to the second. Is there a way to define ALT-key keyboard shortcuts on drop-down menus? E.g., have the "F" in "File" underlined and where the File menu drops down when the user presses ALT-F? The "shortcut" field in the Run-Time Menu editor seems to be for CTRL-style keyboard accelerators (e.g. "CTRL-C" for Edit->Copy). And the run-time Insert Menu Item VI doesn't seem to allow either style of keyboard shortcuts to be defined.
  18. 30 years software development experience, but new to LabVIEW. The control/indicator dichotomy has me flummoxed. I would like to programmatically set the default values of user input controls. Is this possible? I'd like to have a "setup" dialog or window populated with controls, where the user can select a file containing a "setup" that populates the controls with the settings from that setup file, and then the user can fine-tune the values in the controls. How can this be done?
×
×
  • Create New...

Important Information

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