Printing labels (barcode, datamatrix code, ...) with LabView via Codesoft

Hello together,
could anyone post a sample vi which enables printing labels (barcodes, datamatrix code, ...) with LabView
via the Teklynx Codesoft Runtime Software? There are no sample programs from Teklynx for LabView.
Many Thanks for your help, Thomas.
Message Edited by maximint on 01-04-2007 10:04 AM

maximint wrote:
Hi JLS,
thanks for the answer. I agree with you that closing the references is the best und most stable solution. But it is really slow. I made an exe but this is also slow.
But apart from this, the VI is running well, even with a handing over of variables. I guess this is one of the first VIs in the net which combines LV with
Codesoft from Teklynx.
Thanks, Thomas.
PS: I made a wrong click on the rating of your last post. Sorry. I guess I rated it too bad.
Well, this is easily solved with an intelligent global buffer VI or as they are also often called a LabVIEw 2 style global. I use them quite often for all kinds of reasons including to avoid globals in my programs almost 100% but this is one of the cases where they are also very handy.
Basically you write a VI that has a while loop, and a case structure inside. The while loop normally only executes once. One or more uninitialized shift registers store different values that can be reused on each call to that VI. The case selector is wired to an enum (I make them always strict typedefed) on the front panel and that one is connected to the connector pane of the VI.
Make the enum have init, print, close items and in the respective case frame do the opening of the refnum in the init case and anything else you need to do once at initialization time storing the refnum to the right shift register terminal. In the close case do everything to close done the software and then close the refnum coming from the right shift register terminal itself passing a Not A Refnum to the right shift register terminal. The print case uses the refnum from the right shift register terminal too, does all that is necessary to do printing and then stores the refnum back to the right shift register terminal. You now have an intelligent manager function for your interface to the printing software.
The init case is called somewhere during initialization of your application while the close case is called somwehre when you close your application. A variant is to combine the init and print case but forst test for the refnum to be Not A Refnum (comparison palette) and in that case do the initialization first, otherwise just do the printing. The advantage with this is that the Codesoft interface is only initialized if you really need it.
There is one caveat for this if you use dynamic top level VIs to implement for instance test steps or deamon like operation. LabVIEW remembers the top level VI under whom a refnum was opened and automatically closes refnums when that top level VI goes idle (stops running). So you would need to make sure that the initialization is done in the main hierarchy that is guaranteed to run for the entire time that your interface is required.
I have included a small archive containing an API for Codesoft 7 that also supports variable query and substitution in templates. It is an older version of something I'm currently using and not very well tested as is, but the newer version is a lot more involved and complicated and not suited to be put here. I also included another archive showing a version of such an intelligent manager buffer function using that API.
Rolf Kalbermatter

Similar Messages

  • HT203164 I used to be able to print labels for burned CDs with the cover being the playlist name and the other side the song titles...now the titles print out compacted, overlapping each other and illegible. I thought it was the printer but it happened w/

    I used to be able to print labels for burned CDs with the cover being the playlist name and the other side the song titles...now the titles print out compacted, overlapping each other and illegible. I thought it was the printer but it happened w/1 other printer as well,  which I used before for this exact thing w/no problem.

    Try cleaning the print head with rubbing alcohol wipe, then replace your print head. Keep pushing the Ok. 
    Go to this link and HP shows you how.
    support.hp.com/us-en/document/c01643079
    Lucky for me it worked!

  • SAP Script : Control Commands for printing Label (barcode) by Zebra Printer

    Hello,
    I would like to know the control commands in sap script for Zebra Printer. The purpose of task is to print a field in barcode format in Right Bottom of the label.
    The sample code is placed below. Kindly have a look at it. The problem now i am facing is, the barcode for Customer PO is printing on the wrong place (Left Bottom, the text & barcode are overwriting). Can anyone suggest a possible way or can any one send the document for Barcode commands in SAP Script for Zebra Printer.
    Sample script code:
    Initialization and reset Barcode
    XAMCY^XZ
    Start
    ^XA
    Barcode setup
    ^BY3,2.7,2.2
    Set label home position
    ^LH
    ^FWN
    FO385,025A0R,40,50FDPN: &VBAP-MATNR&FS
    FO385,725A0R,40,50FD&VBAP-ARKTX&FS
    FO385,1710A0R,40,50FDRtns: &zsntsc-contr&FS
    FO345,025A0R,40,50FDService Order# &AUFK-AUFNR&FS
    FO345,725A0R,40,50FDSerial# &EQUI-SERNR&FS
    FO345,1710A0R,40,50FDRepair Order# &VBAP-VBELN&FS
    FO245,025B3R,N,90,N,NFD&AUFK-AUFNR&FS
    FO245,725B3R,N,90,N,NFD&EQUI-SERNR&FS
    FO245,1710B3R,N,90,N,NFD&VBAP-VBELN&FS
    FO138,1710A0R,40,35FDCustomer PO# &VBKD-BSTKD&FS
    FO98,025A0R,40,50FDWrnty: &W_WARRANTY&FS
    FO98,605A0R,40,50FDRoute: &W_ROUTE&FS
    FO58,025A0R,40,35FDShip-to-name: &W_NAME1&FS
    FO58,1325A0R,40,35FDMinor Group/Nr: &TVM5T-BEZEI&FS
    FO58,1325A0R,40,35FDMinor Group/Nr: &TVM5T-BEZEI&FS
    FO18,885A0R,40,35FDReported By: &QMEL-QMNAM&FS
    FO18,1710B3R,N,90,N,NFD&VBKD-BSTKD&FS
    ^XZ
    Thanks in Advance,
    Ramasamy

    HI
    GOOD
    GO THROUGH THIS
    A barcode solution consists of the following:
    - a barcode printer
    - a barcode reader
    - a mobile data collection application/program
    A barcode label is a special symbology to represent human readable information such as a material number or batch number
    in machine readable format.
    There are different symbologies for different applications and different industries. Luckily, you need not worry to much about that as the logistics supply chain has mostly standardized on 3 of 9 and 128 barcode symbologies - which all barcode readers support and which SAP support natively in it's printing protocols.
    You can print barcodes from SAP by modifying an existing output form.
    Behind every output form is a print program that collects all the data and then pass it to the form. The form contains the layout as well as the font, line and paragraph formats. These forms are designed using SAPScript (a very easy but frustratingly simplistic form format language) or SmartForms that is more of a graphical form design tool. 
    Barcodes are nothing more than a font definition and is part of the style sheet associated with a particular SAPScript form. The most important aspect is to place a parameter in the line of the form that points to the data element that you want to represent as barcode on the form, i.e. material number. Next you need to set the font for that parameter value to one of the supported barcode symbologies.
    The next part of the equation can be a bit tricky as you will need to get a printer to print that barcode font. Regular laser printers does not normally print barcode fonts, only specialized industrial printers that is specifically designed to support that protocol and that uses specialized label media and heat transfer (resin) ribbon to create the sharp image required for barcodes.
    Not to fear though, there are two ways to get around this:
    - You can have your IT department do some research - 
    most laser printers can accept a font cartridge/dimm chip (similar to computer memory), called a BarDIMM that will allow a laser printer to support the printing of barcodes.
    - Secondly, you can buy software that you can upload in your SAP print Server that will convert the barcode symbology as an image that will print on a regular laser printer. I found that this option results in less sharper barcodes. This option is really if you need to convert a large quantity of printers (>10) to support barcodes. 
    - Thirdly, you can buy a third party software like Barcode.dll and install on your frontend PC connected to the laser printer.
    Now you have a barcode printed - what next?
    Well there are two options, depending on your business requirements:
    - You can use an existing SAP transaction on a regular workstation and get a barcode wedge reader to hook up between the keyboard and the PC. These wedge readers comes in a wand or scanner format. There are even wireless wedge scanners available that allows you to roam a few yards from the workstation to scan a label. This approach is mostly used where you want to prevent human errors in typing in long material, batch or serial numbers in receiving or issuing of material. The problem is that it's just replacing the keyboard input and you are basically locked down in one location and have to bring all the material to that location to process.
    - Another solution is to use SAPConsole transactions
    or write your own ABAP Dialog programs that will fit onto a barcode enabled wireless handheld terminal and that will follow the business logic as executed on the shop floor. 
    These programs are highly complex exercises in industrial engineering and ergonomics because of the limited screen sizes and limited ability to accept keyboard input. The user is instructed step-by-step and only scan and push F-keys to interact with the SAP system. Scan, scan, beep, beep, enter - highly automated.
    GO THROUGH THESE LINKS
    http://www.sap-img.com/abap/details-information-about-sap-barcodes.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/68/4a0d5b74110d44b1b88d9b6aa1315b/content.htm
    THANKS
    MRUTYUN

  • Can't print to Epson TM-U590 Slip Printer from Report Generation Toolkit with LabVIEW 8.6.1

    Hi all,
    I have an application that uses the Report Generation Toolkit to print tickets to a docket printer.  Usually this works fine - I have 8 existing installations where there are no problems
    I'm currently installing the software at a new site that uses an Epson TM-U590 slip printer and I can't for the life of me get printing to work
    Using a Standard Report, the Print Report.vi returns error -41002 which indicates it can't find the printer.  I've opened up the VI using remote debugging and it does find the printer name correctly with the Query Available Printers.vi.  It gets an error code -2147352567 from the Printout node, which then gets replaced with the -41002 error which is reported.
    For historical reasons I'm still using LabVIEW 8.6.1 for this project.  I'm considering moving to 2011 or 2012 but I've had reliability issues with other parts of the application after attempting to update to a newer LabVIEW version so I'd like to avoid that at this stage.
    The application is running on a standard desktop PC with Windows 7.  The slip printer works fine if I print to it from Notepad, and my application is happy to print to any other printer, just not the slip printer.
    The slip printer is using the LPT port.  Previously the docket printers I've used have been USB but I would expect the printer driver to hide this detail from the application...
    Any ideas would be much appreciated
    Cheers
    Brett
    Senior Software Development Engineer
    Certified LabVIEW Architect and LabVIEW Champion
    Solved!
    Go to Solution.

    I've managed to sort out the problem, thanks to this KB article: http://digital.ni.com/public.nsf/allkb/67D60209102E2161862568AC0074BF64
    I'm now having the same issue with a Star docket printer (a TUP592), this time with another program developed in LabVIEW 2011.
    As mentioned in the article, the problem is actually to do with the margin settings rather than the printer name, despite what the error message says
    After some experimentation, I've gotten the Star printer to work by setting a large (>14cm) right margin.  No idea why this is required as it seems to print right up to the right edge of the paper quite happily, but there you go.
    So I haven't defintely fixed the original problem yet as I haven't gotten back to the site, but hopefully this will be of some help to someone else.
    Cheers
    Brett
    Senior Software Development Engineer
    Certified LabVIEW Architect and LabVIEW Champion

  • Acquire images with labview via firewire and TWAIN

    Hi,
    I have a camera from optronics. This camera is plugged to my computer
    via a FireWire IEEE-1394 connection. The company optronics offers a
    TWAIN driver for this camera: some files like TWAIN.dll and
    TWAIN_32.dll. I would like to acquire images with labview and
    communicate with the camera but I have no idea on how I should get
    started.
    The 3 main things I'd like to do are: 1) change the exposure time 2) snap images 3) see the images in labview.
    I will really appreciate if someone could give me some ideas to get started...
    Michael

    AESulzer wrote:
    Michael, From a
    more general standpoint, what you'll need to do is use a Call
    Library Function Node (located in the All Functions>>Advanced
    palette) to call the necessary functions out of those DLLs. Before you
    can do this, you'll need to know some specifics about what functions
    are available in those DLLs and what parameters/outputs are associated
    with them. This information is typically available in the product
    manual or perhaps someone else with experience with your specific
    device can speak to that. Once you know the functions necessary to
    execute the desired operations, you simply configure a Call Library
    Function Node for each of them and place them in your LabVIEW code.
    Just
    saw this and want to clarify on this. This is a total no-go! The Twain
    interface is a very old technology from the days when Windows was a
    cooperative multitasking environment without real tasks or threads. In
    order for Twain to allow for some sort of multitasked integration into
    an application it requires you to integrate the Twain handling into the
    message loop of your application. As you do not have direct control
    over the source code LabVIEW is written from, this is a very tedious
    operation, with Windows message hooks and such, lots and lots of
    semaphore protection to avoid race conditions etc. etc.
    There is simply no way that you can do anything even remotely workable
    just by using the Call Library Node. You will need a (rather complex)
    external shared library that goes in between Twain and LabVIEW and
    takes care of all the subtleties. I know for sure because I wrote such
    a beast in the past.
    Now there is a Toolkit from the French Alliance member Alliance Vision http://www.alliancevision.com/us/index.html that
    does this. If you need Twain I would definitely go for this. My own
    library is only to the point of what I had needed for a particular
    project, (meaning it supports two specific scanners without issues) and
    without any documentation for external users and I couldn't give it
    away for free either.
    Just want to warn you but there is a good chance that the Alliance
    Vision Twain Toolkit does not really give you full programmatic control
    of all the parameters of non-scanner devices and you won't be able to
    avoid letting the Twain driver show the device specific configuration
    dialog to manipulate specific settings.
    In my own library I have low level functions to directly manipulate
    Twain attributes but in order to be able to use that you would need a
    through knowledge of the Twain specifications down to the API. That
    together with the difficulties to support other devices I don't have
    available, made us decide to not try to sell this Toolkit yet.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Interfacing C# code with SolidWorks via Softmotion

    Hi folks,
    I need to interface some C# code with a Solidworks model via LabVIEW/Softmotion, and in the interests of not going up too many blind alleys was wondering if anyone can give me any architectural pointers.
    I can interface LabVIEW itself with the code either as a DLL or a TCP/IP server, my preference is for a DLL but its not vital. What I'm wondering is if Softmotion will still interface with SOlidworks if I compile the LabVIEW project as a DLL? The C# app will be sending control commands to the Solidworks model, and receiving confirmation messages (e.g. prox switch open/closed) back, so the TCP/IP option seems to make more sense from the real-time control perspective.
    ANy pointers would be much appreciated.
    Thanks!

    Hi,
    Sorry in advance for not being particularly helpful, but I'm afraid you just have to try to build a DLL with SoftMotion and try interfacing it with SolidWorks to see if it works. I wasn't able to find any information from previous service requests or any other internal literature on this kind of integration; however, I don't think there would be any reasons why it wouldn't work.
    Regards,
    Imtiaz Chowdhury
    Head of Digital Technologies
    Brand786

  • Execute a VBAI code with Labview

    Hello
    I work with a CVS, and for that I create a VBAI code that I need to use with Labview, I already use the tool "migrate inspection to labview" and tryed this VI. I added the "inspect main" VI on my cvs target, but I did'nt do what I put on the VBAI code.
    How can I do to execute exactly the VBAI steps in Labview.
    Thank you for your help
    Attachments:
    Inspect Main.vi ‏103 KB

    Here's a sample LV 2013 project with a CVS target and the build specs to get a startup app.
    1. Right clikc on the CVS and select Properties. Change the IP Address to match your target's.
    2. Right click on the "My Real-Time Application" under Build Specification for your target and select Build
    3. Once the Build is done, right click again and select Deploy. This should automatically create a Configuration Files folder on the target with the correct files.
    4. Right click again and select "Run as Startup" and this will ask you to reboot. Now the VI will start running when the target reboots.
    If you need to debug, you can stop the startup app on the CVS by right clicking on the target and connecting. Then just open the Inspect Main.vi from the project when it's under your CVS target) and run it. The Configuration Files should already be downloaded to the target after following the above steps.
    Hope this helps,
    Brad
    Attachments:
    Sample Project.lvproj ‏36 KB

  • Interfacing Zigbee with Labview VIA RS232

    Hello all! I have a question that might be pretty simple. I am currently a student and am just getting into LabView for a senior project that I have to do with a team. We've run into a bit of a problem though. We can't get the Zigbee that is plugged into the RS232 board to be seen by MAX, and since we can't get it to show up in MAX I have a feeling we're not going to be able to get it into the VI.
    Does anyone know how to get the information that's coming in via the Zigbee to be placed into a blank VI?
    Thanks in advance!  

    I'm sorry for taking so long to get back to you on this but my team kind of gave up on this project for a little and have come back to it only to find that we've hit the same roadblock and can't figure this out at all.
    Let me try and explain what our project is doing so that hopefully it'll be easier for you to help me. We're going to be pulling brain waves off of a person those waves are going to be stuffed into an ATD that is built into the MC9S12 microcontroller. From there the output of the microcontroller is going to go into pin two on the Zigbee. All of this is completely devoid of a computer. Then on the laptop's side we're going to have a Zigbee plugged in to the RS232 chip and it's going to be picking this data up. I'm trying to get this data into LabView and then display the brain waves onto a waveform graph. The main issue right now is getting the digital data into LabView somehow. I mean the Zigbee is plugged in via USB (on the RS232), but I don't know what I need to use to get it into my program.
    I've checked the resources on the Learning Center and perhaps I'm just blind but I cannot find anything on there that pertains to my question and none of the online courses I've seen have anything on VISA programming with the Zigbee module if that's actually what I need to do.
    Furthermore, after we figure out how to get the Zigbee into LabView my team is going to have to figure out how to split the three signals that are being broadcasted to be split and sampled at different times.
    Got a feeling my team and I might have bit off way more we can chew right about now. :/ 

  • NVIDIA control (Shadowplay mostly) with LabVIEW via ActiveX - Does anyone have documentation?

    Hi Everyone,
    I'm looking to capture my monitor video at around 30fps. ShadowPlay works well with my graphics card, and I've found that there is an ActiveX Library on the PC. The attached screenshot shows an example code for 5 seconds of capture. 
    Shadowplay only captures one monitor but I want it to capture both, or make two videos (one for each monitor) preferably. Although a possible work around would be recording one at a time but being able to programatically change between the two. The Shadowplay library is: ShadowPlayServerLib and the NVIDIA Library is: NVI2Lib (I presume this is NVIDIA but could be wrong)
    I can't find any documentation on the activeX commands so I'm struggling to know what inputs and outputs of the property nodes should be. Does anyone have any? A search of the internet brings up my own forum post on NVIDIAs website: 
    https://forums.geforce.com/default/topic/805560/geforce-experience/shadowplay-activex-documentation-...
    Any help on the NVIDIA/ShadowPlay side of things would be great, alternatively any ideas for capturing video at 30fps (I tried to use .NET to capture the screen shots to png files but it only managed 2.5fps without saving them)
    Many thanks
    Attachments:
    NVI class.png ‏27 KB
    shadowplayActiveX.png ‏32 KB
    ShadowPlayCapture.vi ‏12 KB

    Hi Woody247,
    Here is brief overview to help using LabVIEW with ActiveX:
    http://www.ni.com/white-paper/2983/en/
    Here is an interesting example that could be useful to your application's functionality 
    https://decibel.ni.com/content/docs/DOC-41144
    Regards,
    Mark 
    Applications Engineer Intern
    National Instruments UK and Ireland

  • Fluke PM6304 controlled with LabView via RS232

    Hi,
    we're going to control our Fluke RCL Meter with Lab View via RS232.
    Does anyone has experience and show sample code?
    I failed already to make a terminal connection between my PC and the PM6304
    Thanks for comments, maximint.

    Okay, here goes. Once upon a time there was just serial and gpib. Each used completely different hardware,protocols, etc. and there were separate drivers for each. Years ago, a new instrument type was introduced. Based on a VME backplane, these were instruments on a card called VXI (VME with instrument extensions). So, a whole new low level driver was required. The makers of VXI, realizing that the first VXI instruments were the same as their GPIB instruments without a display or power supply, thought that it would be nice if the software that had been developed for the GPIB instruments could also be used for the VXI version. Several vendors, including NI, came up with something called VISA (Virtual Instrument Software Architecture). This was an API that united GPIB and VXI. If you wrote an instrument driver with VISA Writes and VISA Reads, it would work with either type of instrument. The VISA driver itself would determine the actual type of bus and handle all of the low level details. One of the goals of all these vendors was to also make it easy for users to change from GPIB to VXI instruments. While this didn't really happen, the idea of VISA caught on and became very popular and sort of a standard in many places. Eventually, other common forms of instrument busses were added to VISA. Among those are serial, ethernet, usb, pxi. All of the instrument drivers written by NI now use VISA.
    I downloaded the driver for the instrument you need and had a look at it. It really doesn't have much, it's very old, and uses the GPIB functions (not VISA). Since there were so few functions, I went ahead and replaced the GPIB Reads and Writes with VISA Reads and Writes. That will give you a start. You will also need to add some code to initialize the serial port. A great place to look to see how this is done is with an example that has shipped with LabVEIW for years. The HP34401 DMM driver that is on the instrument driver palette is a VISA driver with special support for serial. All of the serial setup is done in the initialize subVI. The type of interface is determined and if serial, baud rate, parity, etc. are setup. Another important setting is a termination character. Serial instruments usually require a CR or LF at the end of each command. You will need to determine what your instrument requires.
    Attachments:
    flpm6304.llb ‏141 KB

  • Verilog code in ISE 14.2 can be integrated with LABVIEW 2013?

    i just want to ask if it is possible to integrate the verilog code with the VI in labview? will it work properly?

    Yes it is possible to integrate Verilog code with LabVIEW 2013. The following KnowledgeBase article is currently being updated to reference LabVIEW 2013:
    http://digital.ni.com/public.nsf/allkb/7269557B205B1E1A86257640000910D3?OpenDocument
    I have used ISE 14.4 with LabVIEW 2013 without any issues. Hope this helps!
    Daniel K | NI Applications Engineer | Certified LabVIEW Developer

  • Can i run visual c++ code under labview?

    I have two instruments, one is controlled by labview and the other one is controlled by visual c++ code. is there any ways so i can run the c++ code in the labview environment. in other words, can i control the instrument which is only controllable by c++ code, with labview? does labview recognize .cpp files or .exe which is the compiled form of my c++ file ?
    thanks

    Check http://www.ni.com/devzone/idnet/library/instrument_driver_guidelines.htm. Another quick and dirty way to add instrument control is to use the Instrument I/O Assistant. This is not nearly as flexible as a full driver but might be enough for you. Before attempting either, you should get familiar with the instrument's remote control commands by using the interactive control feature in MAX (right click on instrument and select "Communicate with Instrument").

  • Can i genarate a VHDL skript with Labview?

    Hi,
    is it possible to genarate an VHDL skrit or .dat like
    name.vhd
    with Labview?
    mabye that i can write the code with Labview and save it as .vhd
    on this way it is very easy to use Labview as VHDL-software. is it possible to do this?
    thx

    I think it is not possible at this time.
    At my opinion NI is forced for releasing a tool that can do this in the future because there is software from the mathworks who can do this; 'Generating VHDL code for target independent hardware'.
    Magic Google words:
    http://www.google.be/search?hl=nl&q=%27Generating+​VHDL+code+for+target+independent+hardware&meta=

  • To print labels with barcodes in sap-scripts

    how to print labels with barcodes in sap-scripts . explain with example.

    Hi,
    What was wrong with the answers you were given the first time you asked this question?
    labels with barcodes in smart forms
    Why have you ignored their efforts and logged the same question again?
    Nick

  • Assistance with Printing to Zebra QL220 using the LabVIEW report VI

    I currently am trying to use the LabVIEW report VI to output a formatted set of strings to the above mentioned printer.
    The UMPC hardware that runs the developed application is bare bones XP box and doesn't' have MS office installed
    I use the LV new report set to a standard report and  successfully set orientation to portrait or Landscape, set margins and set report fonts and headers.. However  in sending the text strings to this label printer (labels are 45mm X 60mm) I find that that two issues arise.
    1. Printing out double labels. The pagination fails and prints a blank label after each print when text is output.  However if I disable all headers and body text (i.e blank label print). This pagination works fine.?
    2. The formatting of the information on the page reliably, I currently use inserted blank spaces, is there a better way?
    I thought, perhaps I should try using the ZLP programming language, but then not sure how to I send it to a USB printer? Has any one had any experience with this and these label printers ?  
    Thanks
    Greg Nicholls

    hi all
    i am C sharp programer
    and i have zebra QL 220 plus
    and roll type is 42X20mm
    and i have the zebra sdk
    and i create mobile application in C# smart device
    and i tring to connect to printer from my application by bluetooth
    in sdk i got this and use
    using System;
    using ZSDK_API.Comm;
    using System.Text;
    using System.Threading;
    // This example prints "This is a ZPL test." near the top of the label.
    private void SendZplOverBluetooth(String theBtMacAddress) {
    try {
    // Instantiate a connection for given Bluetooth(R) MAC Address.
    ZebraPrinterConnection thePrinterConn = new BluetoothPrinterConnection(theBtMacAddress);
    // Open the connection - physical connection is established here.
    thePrinterConn.Open();
    // Defines the ZPL data to be sent.
    String zplData = "^XA^FO20,20^A0N,25,25^FDThis is a ZPL test.^FS^XZ";
    // Send the data to the printer as a byte array.
    thePrinterConn.Write(Encoding.Default.GetBytes(zplData));
    // Make sure the data got to the printer before closing the connection
    Thread.Sleep(500);
    // Close the connection to release resources.
    thePrinterConn.Close();
    } catch (Exception e) {
    // Handle communications error here.
    Console.Write(e.StackTrace);
    // This example prints "This is a CPCL test." near the top of the label.
    private void SendCpclOverBluetooth(String theBtMacAddress) {
    try {
    // Instantiate a connection for given Bluetooth(R) MAC Address.
    ZebraPrinterConnection thePrinterConn = new BluetoothPrinterConnection(theBtMacAddress);
    // Open the connection - physical connection is established here.
    thePrinterConn.Open();
    // Defines the CPCL data to be sent.
    String cpclData = "! 0 200 200 210 1\r\n"
    + "TEXT 4 0 30 40 This is a CPCL test.\r\n"
    + "FORM\r\n"
    + "PRINT\r\n";
    // Send the data to the printer as a byte array.
    thePrinterConn.Write(Encoding.Default.GetBytes(cpclData));
    // Make sure the data got to the printer before closing the connection
    Thread.Sleep(500);
    // Close the connection to release resources.
    thePrinterConn.Close();
    } catch (Exception e) {
    // Handle communications error here.
    Console.Write(e.StackTrace);
     and once i use ZPL method it print 17 barcod always with 16 blank Patches (labels)
    and  when i use CPCL method it print 12 BarCode always with 11 blank Patches (labels)
    and i dont know why ?
    it must print 1 Patch (label)
    what i can do  and i dont think there is eny rong with my code
    all waht i want is how i can give Length and width and how much label print coz it is always print 17 or 12 what i can do ?

Maybe you are looking for

  • Calculation in BEx on Hierarchy Link Nodes

    Hello everyone. I am working on a BEx query that involves a hierarchy based on Controlling Area, Cost Center, and Cost Element. There is a case where I have 5 Cost Elements that belong to 2 Cost Centers. I can successfully create the duplicate nodes

  • Outlook cached mode, shared calendars, permissions and sync errors

    We have the following environment - Exchange 2010 SP2, no public folder DB; Outlook 2010 sp1 cached mode. under very specific circumstances, but unfortunately a common circumstance, we're getting sync errors - 15:59:56 Synchronizer Version 14.0.6126

  • Video capture creates hundreds of 2 second clips?

    If this behavior by-design? Or perhaps iMovie HD has a problem with my camcorder's date-time-stamping? I have an 8mm Sony D8 model DCR-TRV730. The behavior I expected to see was that a clip would be created every time it detected a start/stop based o

  • Apache-WebLogic Bridhge Failures

    Hi all, We are also having a similar setup, except that we are using WebLogic Server 5.1. We had this problem when the traffic in our production site is high. We thought we had solved the problem when we applied Service Pack 5. But after behaving for

  • Remove 9 prefix in voce mail email message

    When a user gets a voice mail Unity sends an email to the user that they got a voice mail.  In that message the calling number is listed but it has a 9 infront of it.  How can I get rid of that? Thanks Folks