Need help on a project...

In the attached draft, I want to send one of the two channels (currently) to a Zebra printer. I just got stuck where I want to select the string to display (in the Process - Run.VI class), I think the problem is with the overall architecture, but I don't know how to fix it. If someone could look over it and give me feedback that would be appreciated.

In Main.vi inistantiate the correct class type for the printer you are working with. There are different ways to do this, but I advise to use a plugin approach. In this way, you can add new printers in the future without changing your code. Party plugin architecture would have a method for choosing the corect type based on what plugins are available. This could be done either through a configuration file specifying the type or a user selection.

Your Run.vi would simply have the methods of the parent class. The class on the part of the input connector would be the parent of the class type. Wiring in a class of the child will work. Specific methods (you need to be substituted) by the child classes would be configured for dynamic distribution. This allows LabVIEW choosing the right method when running.

The other stuff I said was more general and not specific to your application.

Tags: NI Software

Similar Questions

  • I need help for my project

    Good day to you all

    I am Mohammed Ali, and I am doing my final project. I would like to have your help and your support to complete my project. in fact I build a mobile application on Blackberry JDE with UI contained Student ID and password it suppose to connect with http://www.ucsi.edu.my/ses/ to check and then get the next page to display on the blackberry app?

    So, someone has idea how to do it?

    I'd appreciate efforts, thank you in advance

    Mohammed Ali

    On BlackBerry, you have a plethora of options:

    If you just want a link to an existing Web page just mobile create weblink as:

    import net.rim.blackberry.api.browser.Browser;
    import net.rim.blackberry.api.browser.BrowserSession;
    import net.rim.device.api.ui.UiApplication;
    
    public class simpleshortcut extends UiApplication {
    public static void main(String[] args){
    simpleshortcut instance = new simpleshortcut();
    instance.enterEventDispatcher();
    }
    
    public simpleshortcut() {
    BrowserSession site = Browser.getDefaultSession();
    site.displayPage(https://yourwebsite);
    System.exit(0);
    }
    }
    

    You will need to adjust the code for 6.0 devices, although I think... can't remember...

    You can also use the widget framework or keep native java and use a httpconnection. Go to the forum of java and the research of httpconnection. There is no shortage of information... you can also read the post of PeterStrange at the top of the java forums. Its quite likely the best thread beginner on Earth... I have it in my favorites. also find the java forums to "versatilemonkey", it is a few threads that deal with a custom class versatile monkey wrote that make connections much easier. You have to decide from there that the best approach for your application...

  • need help on security projects

    Hello

    We are suppliers of small network. We supply routers, switches, the firewall and also make configurations.

    now, we are interested in large projects. For this I want to know, which include security projects?

    Please give me details on security projects. Details of the project if possible of real time.

    help would be appreciated in advance.

    Concerning

    skrao

    Hi peojects of safety include everything. the security perimeter that secures routers, switches firewallas, VPN, ids, and ips. OS hardening.vulnerability assessment, audit, assessment of risks, anti-virus ateways, url filtering, anti-spam and email security, security windows for customers. I hope that that asnwers your question. At latest

    Assane

  • I need help with a project

    In this short video, I explain my problem and I hope someone can help me

    There are several ways to achieve this.

    1. the Guy in black layer the layer background of parents.  Him animate separately

    or

    2. instead of applying tracking data to the guy in the black layer, create a No layer that contains the tracking data.

    The guy in the black layer at the layer draw parents while holding the SHIFT key.

    Now, you can animate the guy in black layer separately, while retaining the same track keyframes.

    Here are some resources and tutorials on parenting

  • need help with a project

    I worked on a project using CS5 where I have about 300 photos distributed randomly on X, Y and Z coords, I want to achieve the look where the camera flies up to an image and rest motionless for a few seconds so that the viewer can look at the picture, then the aircraft flies to another image and did the same thing, rinse and repeat so to speak. Can someone tell me how I can do this or post a link of a tut?

    Yes, there are updates to all versions of VC for CS5 plug-ins. If this isn't the case, you can still use the version based on a script that comes from originally.

    Mylenium

  • Need help with sizing and save files in batches

    Hi need help with a project.

    I have thousands of vector files that I need size of 350px X 350px, and then place it on a work plan x 600px-600px.

    Then I need to save it to the web as a PNG with a transparent background.

    Could I do a script for? or is there another way to do it in batches?

    I wouldn't have to open them one by one and resize the work plan then the image and save it one by one as that would take forever.

    Any help some suggestions would be greatly appreciated.

    ID do as a series of actions photoshop if the end result is png,

    pro image processor can help you make automatically, if you must resize batch additional... >

    https://sourceforge.NET/projects/PS-scripts/files/image%20Processor%20PRO/v3_2%20betas/

    I think that your work can run in a few steps, but for simplicity, I would like to start / test with a new photoshop action recording

    Open a file, change the size of the image to 350 x 350

    Change the canvas size,

    then save under...

  • Need help with video scrolling

    Hello

    I need help with a project. Subsequently, I want is that a webcam controls the position of the mouse and the mouse position

    control of a video. But I would like the part where the mouse position controls the video.

    So, if the mouse is on the left on your screen, the video will be on the first image and when you move, you're the mouse for

    the right to the video play as a result traffic. and stop when the mouse is completely right.

    Effectivly the scrolles from the mouse through the video. It must be on the x-axis.

    I'm not that formilliar with flash, so any help would be great

    THX!

    Thijs

    what you need to do, is to designate a rectangle where users can use their mouse to scroll through the video.  If this rectangle has instance name bar, you can use:

    var m, b:Number;

    var lastSeek:int = getTimer();

    flv_pb.addEventListener (MetadataEvent.METADATA_RECEIVED, f);

    bar.addEventListener (MouseEvent.MOUSE_MOVE, moveF);

    function f(e:MetadataEvent):void {}

    paramF (0,0,stage.stageWidth,e.info.duration);

    }

    function moveF(e:MouseEvent):void {}

    {if (getTimer () - lastSeek > 1000)}

    flv_pb. Seek(m*e.stageX+b);

    lastSeek = getTimer();

    flv_pb. Play();

    }

    }

    function paramF(x1:Number,y1:Number,x2:Number,y2:Number):void {}

    m = (y2 - y1) / (x 1 - x 2);

    b = y1 - m * x 1;

    }

  • Need help with Sprite´s. (Rectangles and circle)

    Hello!

    I kinda need help with a project. I m supposed to do a script that responds to a click and moves the circle of one rectangle to another.

    (Here's a picture)

    howtosprite.JPG

    So, what I want is: when I click on the blue rectangle to the right, the circle must move instantly in the rectangle on the right. And same thing on the opposite path.

    Thanks in advance!

    -Best regards,.

    Aleksandar "Dyxir" B.

    import flash.events.MouseEvent;

    leftRec.addEventListener (MouseEvent.CLICK, fCircle);
    rightRec.addEventListener (MouseEvent.CLICK, fCircle);

    function fCircle(evt:MouseEvent)
    {
    Circle.x = evt.currentTarget.x;
    Circle.y = evt.currentTarget.y;
    }

    Note: Point for all alignment: Center

  • Need help on choosing 11.1.2.3.500 or 11.1.2.4 for Hyperion financial planning project

    Need help on choosing 11.1.2.3.500 or 11.1.2.4 for Hyperion planning project implementation.

    Currently, we are debating on the following points, so need for expert advice, if someone have already done this.

    • As all our previous implementation are on 11.1.2.3 500 and we know with certainty, it is stable
    • 11.1.2.4 is fairly new in the market

    That said y at - he already put 11.1.2.4 implemented for the PPP in particular, if yes how is the stability. As we have hard time have no place for the bugs that deals.

    Thanks in advance,

    Deker P.

    I don't think that 11.1.2.3.500 for planning is massively different the 11.1.2.4 so for stability, they should be similar, the improvements are mainly around the simplified interface.

    I would recommend going with 11.1.2.4, he is already on his third patch for the planning so I hope that all important questions will have been met, if there is a concern, then perhaps you should look at POC.

    See you soon

    John

  • I need help my project is due Friday and im totally stuck

    I need help im stuck I get this error message.

    ArgumentError: Error #2025: the supplied DisplayObject must be a child of the caller.
    at flash.display::DisplayObjectContainer/removeChild()
    to MethodInfo-(150)

    I will attach my swf and the bearings of the code and links work just roll on video clips won't go away, I would be very grateful to any idea that I might get thank you for your help.

    my code
    import caurina.transitions.Tweener;
    import flash.display.MovieClip;
    import flash.events.MouseEvent;

    var contact2:MovieClip = new con1();
    var contact2link:URLRequest = new URLRequest("http://www.diamondgorilla.com/contact.html");

    var demo:MovieClip = new demoreel();
    var demolink:URLRequest = new URLRequest("http://www.diamondgorilla.com/contact.html");

    var bio1:MovieClip = new bio();
    var bio1link:URLRequest = new URLRequest("http://www.diamondgorilla.com/contact.html");

    var web:MovieClip = new webdesign();
    var weblink:URLRequest = new URLRequest("http://www.diamondgorilla.com/contact.html");

    var logo:MovieClip = new logowork();
    var logolink:URLRequest = new URLRequest("http://www.diamondgorilla.com/contact.html");

    var photo:MovieClip = new stuff();
    var photolink:URLRequest = new URLRequest("http://www.diamondgorilla.com/contact.html");


    this.b1.addEventListener ('mouseOut', function(logo_up) {
       Tweener.addTween(b1, {scaleX:1, scaleY:1, rotation:0, time:1});
        removeChild(contact2);
       });
    this.b1.addEventListener ('mouseOver', function(logo_up) {
       Tweener.addTween(b1, {scaleX:1.2, scaleY:1.2, rotation:5, time:1});
       addChild(contact2);
       contact2.x=217.6;
       contact2.y=353.5;
       });

    this.b1.addEventListener(MouseEvent.CLICK, onClick_b1); function onClick_b1(event:MouseEvent):void {
       navigateToURL(contactlink);
       }





    this.b2.addEventListener ('mouseOver', function(logo_up) {
       Tweener.addTween(b2, {scaleX:1.2, scaleY:1.2, rotation:5, time:1});
        removeChild(Demo);
       });

    this.b2.addEventListener ('mouseOut', function(logo_up) {
       Tweener.addTween(b2, {scaleX:1, scaleY:1, rotation:0, time:1});
        addChild(demo);
       demo.x=279;
       demo.y=354;
       });

    this.b2.addEventListener(MouseEvent.CLICK, onClick_b2); function onClick_b2(event:MouseEvent):void {
       navigateToURL(demolink);
       }

      
      

    this.b3.addEventListener ('mouseOver', function(logo_up) {
       Tweener.addTween(b3, {scaleX:1.2, scaleY:1.2, rotation:5, time:1});
        removeChild(bio1)
       });

    this.b3.addEventListener ('mouseOut', function(logo_up) {
       Tweener.addTween(b3, {scaleX:1, scaleY:1, rotation:0, time:1});
        addChild(bio1);
       bio1.x=355;
       bio1.y=355;
       });

    this.b3.addEventListener(MouseEvent.CLICK, onClick_b3); function onClick_b3(event:MouseEvent):void {
       navigateToURL(bio1link);
       }

      
      
      
    this.b4.addEventListener ('mouseOver', function(logo_up) {
       Tweener.addTween(b4, {scaleX:1.2, scaleY:1.2, rotation:5, time:1});
       removeChild(web)
       });

    this.b4.addEventListener ('mouseOut', function(logo_up) {
       Tweener.addTween(b4, {scaleX:1, scaleY:1, rotation:0, time:1});
        addChild(web);
       web.x=445;
       web.y=352;
       });

    this.b4.addEventListener(MouseEvent.CLICK, onClick_b4); function onClick_b4(event:MouseEvent):void {
       navigateToURL(weblink);
       }

      
      
      
    this.b5.addEventListener ('mouseOver', function(logo_up) {
       Tweener.addTween(b5, {scaleX:1.2, scaleY:1.2, rotation:5, time:1});
        removeChild(logo)
       });

    this.b5.addEventListener ('mouseOut', function(logo_up) {
       Tweener.addTween(b5, {scaleX:1, scaleY:1, rotation:0, time:1});
         addChild(logo);
       logo.x=526;
       logo.y=352;
       });

    this.b5.addEventListener(MouseEvent.CLICK, onClick_b5); function onClick_b5(event:MouseEvent):void {
       navigateToURL(logolink);
       }
      
      
      
      

    this.b6.addEventListener ('mouseOver', function(logo_up) {
       Tweener.addTween(b6, {scaleX:1.2, scaleY:1.2, rotation:5, time:1});
        removeChild(photo)
       });

    this.b6.addEventListener ('mouseOut', function(logo_up) {
       Tweener.addTween(b6, {scaleX:1, scaleY:1, rotation:0, time:1});
         addChild(photo);
       photo.x=577;
       photo.y=351;
       });


    this.b6.addEventListener(MouseEvent.CLICK, onClick_b6); function onClick_b6(event:MouseEvent):void {
       navigateToURL(photolink);
       }

    most of your mouse passage is remove a child, and most of the corresponding mouseout/mouseouthandler() is adding a child.  and that is probably the reverse of what you want and will cause an error, even if that's what you want.

  • I need help with an installation failure to interpret and troubleshoot a Setup log.

    Background: A few years ago, many editors of cinema used Final Cut Pro 6 (also contained in Final Cut Studio 2) for their editing projects.  Shared Apple Final Cut X uses a different format that is not compatible with FCP6.  Sometimes, these editors are called to work on a few historical projects that have been published in FCP6 and need this version to run now.

    Starting with OS X Lion, FCP6 would install not in Lion and thereafter.

    According research by Jeremy Johnston as noted on his blog, he discovered that Apple has inserted a file in the folder CoreServices in the Library folder of the system folder that causes versions the version Final Cut Pro X (and other older Apple programs in the same situation) do not settle.  He suggested changes to this file that would seek to prevent interfering with the installation of FCP6 in Lion, many users of final cut PRO 6 were successful in their efforts to install in Lion and work with it.

    Later in a discussion update on installing FCP6 in Mavericks, HawaiianHippie determined that the simplest way to perform the installation of FCP6 was simply copy this file and remove it from the system folder, install FCP6 and then restore the copied file:

    https://discussions.Apple.com/message/26309669#26309669

    I used this method with success to install FCS2 in Yosemite:

    [click on images to enlarge]

    However, in my attempts to install FCS2 in El Capitan, it fails in the last 5% to install the first DVD:

    First of all, I need advice on how to display an extremely large Setup log in this thread (on MacRumors, it is a method to insert a 'code' in a small box that can be the object of a scrollbar if necessary to read all along).  I am unable to find such a method to post here.

    Then once approved, I need help to determine which component is causing the installation to fail and perhaps this element can be omitted from the installation:

    If this element is not required, then maybe FCP6 can be installed successfully without it.  And if that omitted element is necessary, perhaps a manual method to install it can be determined by pacifists.

    It is my goal to help those who need to install and use FCP6 on their new Macs running El Capitan.

    Here is the post on MacRumors with pre-installed Setup log:

    http://forums.MacRumors.com/threads/i-need-help-with-an-installation-failure-to-interpret-and-troubleshoot-an-Installer-log.1954786/#post-22541389

  • Need help on calculation of complex math in labview

    I need help in being pointed in the right direction.  I have an old piece of lab equipment that I have linked to the labview.  In order to send commands to the hardware, I have to calculate a checksum.  The checksum algorithm requires me to take alphanumeric, convert them to binary, perform a binary addition, perform an Xor, hide some numbers and convert the resulting binary string to an ascii character.  LabVIEW has the capabilities to do it on its own, or should I look for to connect to something like an external dll?

    I have Visual Studio 2008 and some previous experience in VB, so I think I could write a program that would make the calculation, but don't really know exactly what kind of project (dll, etc.) is preferable.  Are there specific for the dll parameters so that labview can use it.  I see an example for C++ to Visual Studio 2005, but that's as close as I can get.  I only know VB, c#, or C++

    Can someone tell me please in the right direction?

    Tron

    You essentially have some quarters of logical work and ANDS.

    Check version 2.

    /Y

  • Need help of LabView on loops

    I'm doing a LabVIEW MyRIO project on how to display the values. Basically, I give myself a LCD screen and a keyboard. I'm supposed to show three sequences in the order. First, it must ask the user to enter a number on the keyboard to choose his field of interest. Then depending on the number, the user is prompted again to choose another number to specify the particular value he or she wants to watch. Finally, the value is displayed and the user can choose to return to the previous sequence interface by pressing a key. Each of the three sequences are able to "hold" until the user presses a button.

    I am able to attend the second interface using all loop inside a structure of the case, but I don't know how to start pressing a button to return to previous sequences. I need help on this particular part.

    Thanks in advance!

    The code that looks way too complicated for the problem you described.  Where is the state machine that we suggested to you?  Why so many useless people sequence structures?

  • VISA + Serial Communication - need help!

    Hello world

    I have a lot of help with my project of this forum and I'm looking for more . Thank you for taking the time to help. Please bear with my as I ask a LOT of questions.

    I intend to control a frequency converter using its series terminals and send orders from my PC + LabVIEW it. The commands do the basic functions like, start, stop, speed up/down etc etc. I use a converter Series USB to transfer data.

    Now, I ve played with examples like SERIAL COMMUNICATION VI and others and I begin to understand the functioning of VISA.

    Q1. In order for LabVIEW + VISA contact my frequency converter, do I need to install some sort of a driver for him to recognize? The frequency controller is old ages, even I don't know and I don't think I can find a driver for it any time soon? What kind of driver I'm looking for? Is it possible to customize my own driver and which would be easy?

    accessory included - process.jpg

    I downloaded some pictures about the problems of data format. I need to send information to the converter to format "telegram" as shown in the image below. Each 'function' in the 'format telegram' has varied length in bytes: some have 1 others have 2, other 4...

    I also downloaded an image called "Format.jpg" which indicates what information each of these 'functions' will contain. Note:-the frequency converter uses only the last 4 bits.

    Say for example:

    START function will have this bit of information-

    Start the Byte - ASCII ' 59 "

    Address - 00

    Control character -? I'm not sure what it should be I need to use the converter based on parameter values - is confused on what to choose - C, U, I or r Start, stop, etc. have their own specific parameter values such as 402, 404 RESP, so I guess I want update (U)?

    Word of State control -? depends on the previous action

    Sign - do not necessary

    Data - 0

    Comma - is not necessary

    check the sum - is not necessary

    Stop the Byte - ' > ' (ASCII: 62)

    Phew... How would I go about clubbing this whole format together to send a control signal? Put all this information in a table allow somehow?

    Please help to me... to achieve desperately need...

    Thank you

    Sandeep

    It would be useful that you could find a driver, but it is not absolutely necessary to have a. You can write your own, use the Instrument i/o Assistant, or use VISA readings and some discreet.

    The format of the commands is a bit complicated but not impossible. You just need to be careful to have the exact number of bytes.

    What I don't see in the atttachments, it is possible words to control and the State and the number of parameter. I hope these are in another part of the manual.

    A bytes example (without the control and settings) to update the frequency to 12.34 could be '<00U________+123403??>'.

  • I need help burning a cd from Director of windows. When it burns, it leaves aside the last few photos on the cd.

    All the music Burns fine on the cd, but for some reason, simply of turns black towards the end of the program, leaving aside the last pictures of the film.  I need help!

    You may add too many files on the CD.
    And a project too complex can cause problems...
    too many transitions, effects, splitting, etc...

    And... It may be useful if you are going to... Tools / Options /.
    ... Compatibility tab and left click to restore all
    Default button.

    One or more files also may have compatibility
    questions:

    Several formats are apparently compatible with
    Movie Maker, but the most reliable choices are:

    Photos - bmp
    Video - wmv or dv - avi
    Audio - wav, wma, wmv

    Try to save the project in the. WMV video format
    in a folder on your hard drive and then burn the
    . File WMV to CD using other software.

    To save in a .wmv movie file...
    Type of... CTRL + P (or go to...) File / save movie file)
    to open the wizard movie recording.
    Choose... My computer.
    Next /.
    Enter a name and a location.
    Next /.
    ICT... "Best quality for my computer.
    Next /.
    Wait while the movie is saved.
    Finishing...

    See the following article:

    Movie Maker - video recording on a CD - R, CD - RW.
    http://www.windowsmoviemakers.NET/tutorials/HowToSaveCDRom.aspx

    The free software CDBurnerXP allows you to burn your video
    file on a data CD.

    CDBurnerXP
    http://CDBurnerXP.se/
    (Yes, it works on XP, Vista, 7)

    CDBurnerXP - create data disc
    http://CDBurnerXP.se/help/data/compiledata

    And... If you decide to create a video DVD... the
    following freeware can be worth a try:

    (FWIW) It's always a good idea to create a system
    Restore point before installing software or updates)

    DVD Flick
    http://www.Digital-Digest.com/software/download.php?sid=1246&SSID=0&did=2
    (the download is: "dvdflick_setup_1.3.0.7.exe")

    Save the file to your desktop or a folder on your
    hard drive and install from there.

    Be sure to read the Guide:
    http://www.dvdflick.NET/Guide.php

    Tutorials:

    Tutorial DVD Flick
    http://beginwithsoftware.com/videoguides/DVD-flick-Guide.html

    Burn any Format video DVD PC
    http://www.freevideoworkshop.com/dvdflicktutorial.htm

    AVI to DVD with DVD Flick Guide
    http://www.Digital-Digest.com/articles/AVI_to_DVD_using_DVD_Flick_page1.html

    To create a video DVD base that should play in a free
    permanent drive DVD... try the following...

    First... read the DVD Flick Guide to familiarize
    with the program.

    Open DVD Flick and insert a blank DVD in your drive.

    If the window of Autorun from your computer... just close it.

    Click the project settings button and check... Video /.
    Target format... residents United States... Choose... NTSC /.
    Accept.

    The title button left click Add and navigate to your
    Video clips and select the ones you want on the DVD.

    You can have by selecting one and then use
    the up and down buttons.

    Left click on the button create DVD / OK / Yes / Yes.

    Please wait while the DVD is created.

    When the text "Completed successfully" is displayed you
    DVD Flick can close. Now you can eject your DVD
    and play in your DVD player.

    At some point you might want to buy more
    Advanced Cyberlink, Nero, Roxio, software
    Ulead, etc... but at least it is a start.

    Good luck.

Maybe you are looking for