OOP question: self contained class or use of "external" typedefs...

Hi all,
I am trying my first steps into Labview OOP and am currently thinking on how to best proceed.
I have an existing RT application running on a CRIO system that has as one of its components,
a multi channel analyzer (MCA8000).
I thought this would be a good candidate for my first LV class since the vi's I curently have for this MCA
are all connected via a rather large cluster with sub-clusters to store status information and so on for
this device. Exactly the kind of data which is better defined as private within a class!
In the currently working code for the whole intrument (non-OOP) I use several queues to send commands
to indivudal loops of the software and one general message and error logging queue.
In the code I want to re-implement as OOP for the MCA I use data queues and the "general" logging
queue of the main program. These queues are all typedefed in the main program.
So instead of error in's and out's I have the typedefed logging queue as input and errors are logged there
when they occur. Not sure if this is good practice but this is a good way to let the user know of errors that occur
on the RT target since the queued log "entries" are all sent to the UI which runs on a laptop.
The MCA specific queue typedefs I can include into the class project so that they are part of the MCA class.
What I am not sure about is how to handle the "general" logging queue since it is also used elsewhere in the main
program. And I am not "yet" planning of re-implementing the whole thing using oop, I wanted to start with a small
overseeable project.
In a fully OOP project I would probably define the logging queue in a parent class if I understand OOP correctly?
Sorry, I am rather new to LV OOP so I might be asking something obvious...
Olaf

If you are really planning on implementing your OOP in pieces I would recommend attacking it from the most common and shared items first. So, start with your logs, error processing and messaging components. These are the types of things that will get used by your higher level classes. They also tend to be a bit more self contained and easier to start with.
Mark Yedinak
"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot

Similar Messages

  • Question on what class to use

    I like the way JList shows stuff and how it's like a visual array. The one problem is that i don't like how it's created and edited. Is there a class like JList that allows me to display a list of data but allows me to add and remove individual items?

    If you use a ListModel, like a DefaultListModel with the JList, then you can add and remove items.JList myList = new JList(); //use whatever constructor or method to fill the list
    DefaultListModel myListModel = (DefaultListModel)myList.getModel(); Then you can use the List Model's methods addElement(Object o) and removeElement(Object o)

  • Mac OS X: calling Self-Contained App Package Ant Tasks with jenkins

    Hello,
    we're trying to create a self-contained application package using the ant packager tasks running on Mac OS X Mountain Lion using Java 1.7.0_07-b10. This works fine when it is executed as a regular build. However, when we try to execute it from a Jenkins build job that is forced to use our "Mac Build Node" everything works fine as well BUT the packager fails to create a DMG-Image. It seems that the Applescript, created by the Packager to build the DMG, has problems to talk to the Finder application. Probably because it is executed remotely.
    Here is the Stacktrace:
    16:36:55 Using default package resource [script to run after application image is populated] (add package/macosx/sfx-client-post-image.sh to the class path to customize)
    16:36:55   Using default package resource [DMG setup script] (add package/macosx/sfx-client-dmg-setup.scpt to the class path to customize)
    16:37:09 /var/folders/rk/mtx558t16p1f50_432f2dkq00000gq/T/build6253445559899130246.fxbundler/macosx/sfx-client-dmg-setup.scpt:55:59: execution error: Finder got an error: Application isn’t running. (-600)
    16:37:09 java.io.IOException: Exec failed with code 1 command [[osascript, /var/folders/rk/mtx558t16p1f50_432f2dkq00000gq/T/build6253445559899130246.fxbundler/macosx/sfx-client-dmg-setup.scpt] in unspecified directory
    16:37:09      at com.sun.javafx.tools.packager.bundlers.IOUtils.exec(IOUtils.java:131)
    16:37:09      at com.sun.javafx.tools.packager.bundlers.IOUtils.exec(IOUtils.java:107)
    16:37:09      at com.sun.javafx.tools.packager.bundlers.IOUtils.exec(IOUtils.java:101)
    16:37:09      at com.sun.javafx.tools.packager.bundlers.MacDMGBundler.buildDMG(MacDMGBundler.java:356)
    16:37:09      at com.sun.javafx.tools.packager.bundlers.MacDMGBundler.bundle(MacDMGBundler.java:80)
    16:37:09      at com.sun.javafx.tools.packager.PackagerLib.generateNativeBundles(PackagerLib.java:452)
    16:37:09      at com.sun.javafx.tools.packager.PackagerLib.generateDeploymentPackages(PackagerLib.java:435)
    16:37:09      at com.sun.javafx.tools.ant.DeployFXTask.execute(DeployFXTask.java:215)I'd like to know if this is a known problem or a general limitation of the packager (or the way DMG creation works in OS X) ... OR if there is anything that I can do/configure/change to make it execute correctly when called via ssh on a remote mac?
    Thanks in advance!
    Jens

    Apple script is used to style dmg installer (position icons, etc.).
    This is unavoidable step unless you will only build .app and generate .dmg on your own.
    It should still work over ssh if you log as a same user on the desktop on the build system.
    Finder can not initialize if it can not display. We use Hudson in house to do builds and they are building .dmg bundles fine as long as build slaves
    have same user logged in on desktop on the slave node. I assume similar should work for Jenkins but i have not tried myself.
    Otherwise, you can do custom dmg along these lines:
    - create .dmg image once from manual build
    - convert .dmg file to read-write form
    - remove content of you application folder (but keep top level app directory)
    - add this dmg to the build (should be able to compress it if size is concern)
    - at the build time - mount it, copy .app content into the image, then convert .dmg into compressed read only form

  • Export Self-Contained / Sequence / Aspect Ratio Question

    Hello all,
    I have source clips, that look like this, with a command+I in quicktime:
    Format: 24-bit Integer (Little Endian), Stereo (L R), 48.000 kHz
    DVCPRO HD 1080i60, 1280 x 1080 (1888 x 1062), Millions
    FPS: 23.98
    Normal Size: 1888 x 1062 pixels
    Current Size: 1888 x 1062 pixels (Actual)
    Now, in FCP, I have to chop this source up into smaller clips, so as I set in and out points, I drag to my sequence, and let FCP adjust the sequence settings to match the clip. It auto-adjusts to:
    Frame Size: 1280x1080
    Aspect Ratio: HD (1280x1080) (16:9)
    Pixel Aspect Ratio: HD (1280x1080)
    Compressor: DVCPRO HD 1080i60
    Audio: 48khz, 24-bit, Channel Grouped
    When I export my clip, I want little/no processing of the source file, and want the aspect ratio to be locked at the highest quality possible, with no funky pixel aspects ratios, etc. So, I export a Quicktime Movie (no Quicktime conversion) with "Current Settings", and I make the clip self contained.
    The output ends up as follows:
    Format: DVCPRO HD 1080i60, 1280 x 1080 (1888 x 1062), Millions
    24-bit Integer (Little Endian), Stereo, 48.000 kHz
    FPS: 23.98
    Normal Size: 1920 x 1080 pixels
    Current Size: 1920 x 1080 pixels (Actual)
    So, obviously the pixel aspect ratio has done something in the export, as the original size was 1888 x 1062 and is now 1920 x 1080.
    Is there a way to process these clips on export from FCP, where the pixel is a normal 1:1 conversion, be it at 1280x1080, 1888x1062 or 1920x1080 with DVCPRO HD 1080i60, in FCP? Or is this something I have to achieve in Compressor? I'm looking for the Quicktime info on the resulting clip to return the same size for: Format, Normal Size, Current Size.
    Any help is appreciated! Thanks!

    I have read this post over and over and there are some strange things going on with analyzing media now. I am absolutely sure that my HD footage (from a Z1U) used to be read by QT at 1440x1080 (1920x1080). Actual pixels were 1440x1080, a 4x3 aspect ratio, but displayed at 1920x1080. Used to be, like I said. I recently upgraded to OS 10.6.4, and QT 10 is quite a bit different. (In fact, other that the new skin, I haven't found any new features I like. Beside the point.) Now I get a QT readout like yours: 1440x1080 (1888x1062). A 4x3 capture aspect ratio and a 16x9 display aspect ratio, but not the same numbers. This can't be right--by law one of them has to be incorrect. I suspect the new version of QT. The same clip in FCP is read as as 1440x1080 with the HDV pixel aspect ratio (Edit --> Item Properties --> Format.) Furthermore, the readout from MediInfo Mac (endorsed by Apple) is even stranger: 1416x1062, a 4x3 aspect ratio, betraying yet another suspect data output. May be MediaInfo is correct, maybe not. I suspect no--my gut says FCP is correct, since it was once matched by QT. So, three analyzations and three results. The only conclusion is one or more of the analyzers is incorrect.
    I suspect that the data readout in QT 10 is questionable. According to the Z1U manual, the camera records at 1440x1080, QT and FCP have this correct, but MediaInfo Mac does not. But the display raster information, as read by QT 10, has changed from 1920x1080 to 1888x1062.
    So, I did a test. I followed the same procedure you did, including letting FCP set the Sequence Settings (it was correct). The QT 10 data readout from the exported movie was, like yours, 1440 x 1080 (1888 x 1062). Same results when I forced the Sequence Settings to HDV 1060i first. [FCP 6.0.6, QT 10.0 (114) ]. This was consistent with the QT 10 readout for the original, raw media.
    My conclusion? Your movie is fine, there was no Pixel Aspect Ratio manipulation. The data readout in QT 10 is wrong. Sounds like a bug to me. I'd say MediaInfo Mac also has a problem--maybe they are both "drinking from the same poisoned well" somewhere deep inside the code.
    Last resort: if you have access to an older version of QT, try getting the readout from that. I'm going to. If you'd like to know the results, let me know.
    One thing you must do: check the Pixel Aspect Ratio in your edited sequence:
    [Sequence --> Settings --> General --> Pixel Aspect Ratio]
    Make sure yours is set to HD (1280x1080). Actually, check your camera manual to determine what it should be and make sure FCP is matching it. If not, force it.

  • Basic question... Mpeg2 vs Self-contained Quicktime?

    Hello, I am kind of ashamed to post this question only now but nothing is
    losf for asking...!
    I have so far made dvds with a Quicktime mov. file, which is
    Self-contained movies exported from Final cut, believing that it is the only way.
    But actually there is Mpeg2! with options to choose mbps ect.
    I have noticed that the color of dvds are slightly different; Mpeg2 has
    more deepness while Quicktime mov. less. But other than that,
    it doesn't seem problematic.
    Must we use always Mpeg2 or can se use self-contained Quicktime files as well?
    Still on an elementary level,
    Thank you!!
    Minobu

    Better to encode as m2v outside of DVD SP and not bring in a .mov
    Some reasons
    Compressor movie
    Calculating encoding rates

  • I am using FC Express HD, and for some reason, when I export a Quicktime movie, the final movie will only play audio, and the video is black.  I only get the actual video if I export as self contained, or if I exportusing quicktime conversion. Why?

    I am using FC Express HD, and for some reason, when I export a Quicktime movie, the final movie will only play audio, and the video is black.  I only get the actual video if I export as self contained, or if I exportusing quicktime conversion. Why?

    I am using FC Express HD, and for some reason, when I export a Quicktime movie, the final movie will only play audio, and the video is black.  I only get the actual video if I export as self contained, or if I exportusing quicktime conversion. Why?

  • Hopefully easy self-contained QT question...

    If I make a self-contained QT file, would I then be able to take ONLY THAT FILE to another computer for compression? My lengthy project is extremely heavy on effects, so I'm unsure if all the plug-ins and render files needed to make the original project would ALSO be needed on the other computer...
    Thanks, ahead of time!!

    If I make a self-contained QT file, would I then be able to take ONLY THAT FILE to another computer for compression?
    Yes.
    Though the length your project - and, by extension, what codec you've used - will determine your options when it comes to physically transferring between machines.
    That is, whether or not you can fit it onto a Data DVD or you'll need to attach an external drive to do the transfer. Just to name two basic workflows.

  • Can I use the inner class of one containing class by the other class

    Can I use the inner class of one containing class by the other class in the same package as the containing class
    eg I have a class BST which has inner class Enumerator. Can I use the inner class from the other class in the same pacckage as BST?

    Inner classes do not share the namespace of the package of the containing class. Also they are never visible to other classes in the same package.Believe what you want, then, if you're going to make up your own rules about how Java works. For people interested in how Java actually works, here is an example that shows why that assertion is false:
    package com.yawmark.jdc;
    public class Outer {
         public class Inner {
    }And...
    package com.yawmark.demo;
    import com.yawmark.jdc.*;
    public class Demo {
         public static void main(String[] args) {
              assert new Outer().new Inner() != null;
    }~

  • What setting do I use to make a self contained video file, not a DVD?

    I'm trying to use compressor to create video files to use on a friends Windows PC computer to be displayed from there, but I'm not sure what settings to use. I keep trying different things but I can't seem to get the audio to work. I read another response that the video and audio are saved separately but is there any way of merging them into a "self contained" video file?

    SD? HD? Do you need uncompressed (full res)? Can his computer play Quicktime movies? Can his computer play H.264? What format did you shoot, capture, and edit in? What program will the PC use as a player?
    The reason there are so many options as presets is because there is no best option. There are many needs for compression. Give more details about your workflow and output needs.

  • Using 'Save As' in a self contained file is dropping elements

    Hi there,
    I am finding with a fully self-contained Keynote file containing placed audio, movie and images, when you do a 'save as' it says there is a problem saving some elements in the file and they drop off. However if I duplicate the original file in the finder, then open in Keynote, delete and edit some pages and do a straight 'save' it works fine!
    Any suggestions would be most helpful so I can go back to doing 'Save As' - the more intuitive method of working.
    Thank you,
    Josh

    That is a typical behavior of Keynote 3 that disappeared with upgrade to Keynote 4 in my case.
    The respective files were probably rather aliased to some place (i.e., the trash), than stored in toto in the Keynote file. Again a problem of Keynote 3 not carried over to Keynote 4.
    On the other hand, Keynote 4 is much slower with large files, unfortunately.

  • Exporting Final Cut timeline in highest quality Quicktime (self-contained)

    Hi, I am wondering if you can help me. I just finished editing a film in HDV, 24P in Final Cut Studio 2 and need to export it as a stand alone quicktime file to take it to the color correction people and then for downressing in order to write to DigiBeta tapes.
    My question is, do I simply export to Quicktime movie self-contained file using default (current) setting? I also see there are options such as Applre ProRes422 HQ, uncompressed 8bit and 10bit. From what I've heard uncompressed 8 and 10 bit and also apple ProRes422 are higher qualities? Am I wrong?
    But going to Uncompressed 8bit or even to Apple ProRes won't make a difference since I only have HDV quality and that's the highest quality I can get anyway?
    Please advise.
    Thank you

    Exporting a self contained QT Movie, and not recompressing will get you an HDV file that is full quality. But unless the facility you are going to has FCP on the machine they load this, they won't be able to see it. Same with ProRes...which would be the better choice for color correcting (10-bit, I-Frame format instead of GOP). ProRes and HDV (and DVCPRO HD) are codecs that only come with FCP, and any computer, even a mac, that doesn't have FCP installed cannot even view those file formats.
    Shane

  • Exception Handling for many bean objects of a container class in a JSP page

    Hello,
    I have on container bean class. In this container class, there are several others class objects and the getter methods to get these objects out to the JSP pages.
    I have one JSP page which will use different objects in the container class object through the getter methods of the container class.
    My question is how to implement the exception handler for all the objects in the container so that the JSP page can handle all exceptions if occurrs in any object in the container?
    Please give me some suggestions. Thanks
    Tu

    Thanks for your reply.
    Since the container is the accessor class, I have no other super class for this container class, I think I will try the try catch block in the getter methods.

  • Cannot export a self contained Qucktime movie

    As of yesterday I have lost the ability to export a self contained Quicktime move from FCE. The sequence is complete and rendered and I have exported as recently as last month but now it simply makes what's known as a reference movie with the suffix .mov
    The Export drop down menu still displays all the Quicktime options.
    Additionally the Quicktime icon in my dock when clicked displays a question mark. I tried downloading Quicktime but still no go.
    Please help Tom

    Right but what I am trying to convey is that I need to generate the brushed chrome framed, high quality, up-loadable, stand alone video that I used to get with ease and I cannot get that with my FCE. What are you calling it, what is the proper term because I always called them Quicktime. I made one less than 2 months a go.
    Quicktime is present in my System Prefs but is not in the dock. When it was a question mark appeared over it. I cannot find it, launch it, etc.

  • How to run a self-contained (server-less) HTML5 page on iPad?

    Hi,
    For our company, we have an "app" in HTML5, though it's not an app in the Apple sense.  It's just a set of a couple of html5 pages, some javascript and css.  It requires no webserver.  It's purely self-contained. 
    My question is--how do I load this on our user's iPads?  I'm hoping I don't have to go through the whole maze of making it an 'app' on the appstore. 
    This is a private business app and again--it doesn't reach out to the internet.  It just displays an HTML page, has some links to other local html pages, uses some javascript, images, etc.  It does create some data files which we would extract from the iPad (or preferrable send via email).
    Is this something I can just copy to some folder on the iPad and somehow make a shortcut to the main html page as the launch icon?
    Thanks,
    --Jim

    You going to have to find some web browser that excepts local files. Try sending yourself an html file and see what happens.
    Check over in the developer discussion.
    https://discussions.apple.com/community/developer_forums
    At last option would be an open source browser.
    https://mike.tig.as/onionbrowser/
    Robert

  • Does the choice to export a self contained movie or not appear in FCE?

    That's my simple question. Then I will move on.
    I found this in the FCE manual under Exporting Sequences to DVD:
    2. Configure the Save dialog as desired.
    In most cases, you will leave the Include pop-up menu set to Audio and Video. If you
    have created any markers, choose DVD Studio Pro Markers in the Markers pop-up
    menu. iDVD can use either self-contained or reference movies, allowing you to decide
    whether to make the movie self-contained based on other requirements (disk space
    and so on).
    For more information, including detailed information on settings, see Chapter 72,
    “Exporting QuickTime-Compatible Files,” on page 995. Sara
    iMac   Mac OS X (10.4.8)   intel duo,Seagate 250gb hd, Canon 20d camera, Canon GL2 video camera, Epson 2400

    Did you see this in your other post? -
    All you need to do for top quality results is this:-
    1. Go to File>Export>QuickTime Movie.
    2. In the Save window that appears give it a title and DO NOT tick the "Make Movie Self-Contained" if you are using it on your present computer and are not deleting any files.
    3. Open iDVD and navigate to your QT movie and drag it into the iDVD's Theme that you have chosen.
    4. Do anything else you want in iDVD and burn the DVD.
    Ian.

Maybe you are looking for

  • Can I restore deleted images?

    I can see the photos In iphoto but I deleted the images in finder and trashed them any way I can save these pics

  • JEE 2 Source code

    Hi, is the source code of Java EE 5 available for downloading anywhere? Regards,

  • My font is white and will not change to black

    When I am on pages to type up a document the font is completely white and i go to the settings and hit blak but nothing what aremy other options?

  • LSMW - Material Master

    I am trying to upload data via batch input in LSMW for material master. I am getting error - Problem inserting  or updating MLAN The tax category fields are not appearing in converted data. Kindly help.

  • Jsp setproperty and getproperty

    Am quiet confused with jsp set and get properites. Pls. explain with a simple example. I'll be very gratefull. Its urgent