Generate front panel based on xml description

Is there a method to read an xml file and generate a front panel based on the description contained in the xml file?

Hello mcu_guy!
Thanks for contacting National Instruments!  This sounds like more of a Visual Basic 6.0 issue rather than a Measurement Studio issue, so perhaps Microsoft will be a better reference for you?   One great resource is Microsoft's Developer Network (MSDN).  I have also taken the liberty to dig through some of the documents I've seen before regarding dynamic creation of Form objects and I believe that this KnowledgeBase article on the MSDN should be a great start for you. 
Best of luck with your application, mcu_guy!
Derrick S.
Product Manager
NI DIAdem
National Instruments

Similar Messages

  • How to generate a report based on account description

    Hi Experts,
    How to generate the report based on account description, that means
    i want to generate a report on G/L account and which account numbers are having 'CASH' description.
    for Ex: G/L a/c no: 25010026-Cash and Bank balance(des)
    G/L a/c no: 101000-Cash-freight
    like this.
    please help to do this,
    good answer will be appreciated with points,
    Thanks in advance
    Venkat

    Hi shana,
    my requirement is
    I have G/L account numbers, that account numbers having some descriptions, in these some descriptions are belongs to cash transactions, i want to generate the report on these cash transactions, and the report is " G/L account, debit cash, credit cash, balance".
    is it possible or not,
    thanks in advance,
    Venkat

  • How can i dynamically generate an xslt based an XML?

    i have an XML file,i've designed the displaying style.
    now,i wanna generate an xslt file from XML files that have different nodeNames.
    what to do?
    is there any JAVA API who can implement the idea?
    thanks to whom giving any hint:)

    ooooh, I see!
    you can achieve this with one single universal XSL:<?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
         <xsl:output method="text"/>
         <xsl:template match="query">
              <xsl:apply-templates select="result[1]/@*" mode="heading"/>
              <xsl:text disable-output-escaping="yes">&#13;</xsl:text>
              <xsl:apply-templates select="result" mode="value"/>
         </xsl:template>
         <xsl:template match="@*" mode="heading">
              <xsl:value-of select="local-name(.)"/>
              <xsl:text> </xsl:text>
         </xsl:template>
         <xsl:template match="result" mode="value">
              <xsl:apply-templates select="@*" mode="value"/>
              <xsl:text disable-output-escaping="yes">&#13;</xsl:text>
         </xsl:template>
         <xsl:template match="@*" mode="value">
              <xsl:value-of select="."/>
              <xsl:text> </xsl:text>
         </xsl:template>
    </xsl:stylesheet>fun stuff, nope?

  • How to generate XSD schema based on xml instance

    Hi All,
      Am unable to generate valid Xsd schema,i have an XML instances am getting this instance from wcf service.please find the below XML instance file.please help me out its very urgent for me.
    <GetForOneCallResponse xmlns="http://www.abcservices.com/ReferralService">
    <GetForOneCallResult xmlns:a="http://schemas.datacontract.org/2004/07/abc.Services.Cms" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    <a:Message i:nil="true" />
    <a:ResponseData xmlns:b="http://schemas.datacontract.org/2004/07/abc.Services.Cms.Data">
    <b:BaseEntity i:type="c:Referral" xmlns:c="http://schemas.datacontract.org/2004/07/abc.Services.Cms.Models">
    <c:CHReferralUniqId />
    <c:CaseData>
    <c:DatAttorneyName i:nil="true" />
    <c:EventDescription i:nil="true" />
    <c:PatAttorneyAddress i:nil="true" />
    <c:PatAttorneyCity i:nil="true" />
    <c:PatAttorneyEmail i:nil="true" />
    <c:PatAttorneyFax i:nil="true" />
    <c:PatAttorneyFirmName i:nil="true" />
    <c:PatAttorneyName i:nil="true" />
    <c:PatAttorneyPhone i:nil="true" />
    <c:PatAttorneyState i:nil="true" />
    <c:PatAttorneyZip i:nil="true" />
    <c:SpecialInstructions>GCC Diagnostic Study: MRI Scan</c:SpecialInstructions>
    <c:TreatingDocAddress1 i:nil="true" />
    <c:TreatingDocCity i:nil="true" />
    <c:TreatingDocFax i:nil="true" />
    <c:TreatingDocFirstName>Dr/ Richard</c:TreatingDocFirstName>
    <c:TreatingDocLastName>Islinger</c:TreatingDocLastName>
    <c:TreatingDocPhone>9</c:TreatingDocPhone>
    <c:TreatingDocState i:nil="true" />
    <c:TreatingDocZip i:nil="true" /></c:CaseData>
    <c:CaseObjective i:nil="true" />
    <c:Claimants>
    <c:Claimant>
    <c:Address>
    <c:AddressOne>313 Liverpool Avenue</c:AddressOne>
    <c:AddressTwo i:nil="true" />
    <c:CellPhone i:nil="true" />
    <c:City>Egg Harbor city</c:City>
    <c:Countrty i:nil="true" />
    <c:County i:nil="true" />
    <c:Email i:nil="true" />
    <c:Fax i:nil="true" />
    <c:HomePhone></c:HomePhone>
    <c:LocationId>7729811</c:LocationId>
    <c:State>NJ</c:State>
    <c:WorkPhone i:nil="true" />
    <c:ZipCode>08215</c:ZipCode>
    </c:Address>
    <c:ClaimantId>1474969</c:ClaimantId>
    <c:Claims>
    <c:Claim>
    <c:Adjuster>
    <c:AddressOne>PO Box 14151</c:AddressOne>
    <c:AddressTwo />
    <c:City>Lexington</c:City>
    <c:Email>[email protected]</c:Email>
    <c:Fax />
    <c:FirstName>Kathleen</c:FirstName>
    <c:LastName>Hand</c:LastName>
    <c:Phone></c:Phone>
    <c:State>KY</c:State>
    <c:Zip>40512-4151</c:Zip>
    </c:Adjuster>
    <c:ClaimId>1637073</c:ClaimId>
    <c:ClaimNumber>002456054730</c:ClaimNumber>
    <c:InjuryDate>2005-06-10T00:00:00</c:InjuryDate>
    <c:StateJurisdiction>NJ</c:StateJurisdiction>
    </c:Claim>
    </c:Claims>
    <c:DOB>1953-07-05T00:00:00</c:DOB>
    <c:FirstName>Joann</c:FirstName>
    <c:Language i:nil="true" />
    <c:LastName>Wise</c:LastName>
    <c:SocialSecurity>142469412</c:SocialSecurity>
    </c:Claimant>
    </c:Claimants>
    <c:Company>
    <c:CustomerName>Sedgwick Claims Management Services, Inc</c:CustomerName>
    <c:PrimaryContact>
    <c:Address>
    <c:AddressOne>800 Ridgelake Blvd</c:AddressOne>
    <c:AddressTwo i:nil="true" />
    <c:CellPhone i:nil="true" />
    <c:City>Memphis</c:City>
    <c:Countrty>US</c:Countrty>
    <c:County i:nil="true" />
    <c:Email i:nil="true" />
    <c:Fax i:nil="true" />
    <c:HomePhone i:nil="true" />
    <c:LocationId>5747510</c:LocationId>
    <c:State>TN</c:State>
    <c:WorkPhone i:nil="true" />
    <c:ZipCode>38120-9427</c:ZipCode>
    </c:Address>
    <c:ContactId>339835</c:ContactId>
    <c:Email i:nil="true" />
    <c:Fax i:nil="true" />
    <c:FirstName>David</c:FirstName>
    <c:LastName>Seay</c:LastName>
    <c:Phone i:nil="true" />
    <c:Title i:nil="true" /></c:PrimaryContact>
    </c:Company>
    <c:CreatedAt>2012-05-14T11:00:06.62</c:CreatedAt>
    <c:Employee>
    <c:Address>
    <c:AddressOne>5795 Widewater Parkway</c:AddressOne>
    <c:AddressTwo />
    <c:CellPhone i:nil="true" />
    <c:City>Dewitt</c:City>
    <c:Countrty i:nil="true" />
    <c:County />
    <c:Email>[email protected]</c:Email>
    <c:Fax />
    <c:HomePhone>gg</c:HomePhone>
    <c:LocationId>6001741</c:LocationId>
    <c:State>NY</c:State>
    <c:WorkPhone i:nil="true" />
    <c:ZipCode>13214</c:ZipCode>
    </c:Address>
    <c:Email></c:Email>
    <c:EmployeeId>11568</c:EmployeeId>
    <c:FirstName>Karlie</c:FirstName>
    <c:LastName>Jarvis</c:LastName>
    </c:Employee>
    <c:Employer i:nil="true" />
    <c:ModifiedAt>2012-05-14T11:33:34.29</c:ModifiedAt>
    <c:Notes />
    <c:ReferralDate i:nil="true" />
    <c:ReferralId>422</c:ReferralId>
    <c:ReferralSource>GCC</c:ReferralSource>
    <c:ReferralType /></b:BaseEntity>
    </a:ResponseData>
    <a:Status>Success</a:Status>
    </GetForOneCallResult>
    </GetForOneCallResponse>
    Regards
    Srinivas reddy

    Hi,
    Can you point out what the error is exactly??
    Also on a general note try the following:
    1)Right click on the project, go to Add> Add generated Items
    2)Select Generate Schemas
    3) Select the required document type and provide the path to the xml and click OK
    If you have not installed the WFX module, you will get below highlighted error.
    'WFX to XSD schema generation module is not installed. Execute 'C:\Program files (X86)\Microsoft Biztalk Server 2010\SDK\Utilities\Schema
    Generator\InstallWFX.vbs to install the WFX to XSD schema generation module.(Path to the Biztalk Installation folder may vary)
    So go ahead and register the module as it needs to be registered for the first time do remember to execute this vbs script as an
    Administrator  if the normal execution fails.
    I tried generating the xsd using your schema and I was successful(I tried it using the Well Formed XML as the document type).
    Hope this helps
    Regards,
    Mandar Dharmadhikari

  • How can I create multiple front panels for a single block diagram?

    Hello,
       I have developed a VI with multiple controls and indicators that needs to run on computers with screen resolutions ranging from 800x600 to 1680x1050. The problem I'm having is that the front panel does not properly scale for this range of resolutions by checking the options in the "VI properties" option. Is there a way to create multiple front panels of various sizes for my block diagram and programmatically select the appropriate front panel based on the screen resolution?
    Solved!
    Go to Solution.

    See the attached Zip file.
    I have two different front panels.  Open either one and run it.  They both call MainCode.vi which takes the references passed to it and register for events.  From there, it does all the work of the code you would have put in your front panel .vi.
    This way each front panel can be laid out however you want for each screen resolution.
    Attachments:
    MainCode.zip ‏22 KB

  • Simple example - Break FOR loop inside an event structure based on Front panel event change.

    I am running a for loop inside a state machine architecture that contains a FOR loop. How can I break this For loop based on Event change in front panel ??
    Abhilash S Nair
    Research Assistant @ Photonic Devices and Systems lab
    [ LabView professional Development System - Version 11.0 - 32-bit ]
    LabView Gear:
    1. NI PXI-7951R & NI 5761
    2. The Imaging Source USB 3.0 monochrome camera with trigger : DMK 23UM021
    OPERATING SYSTEM - [ MS windows 7 Home Premium 64-bit SP-1 ]
    CPU - [Intel Core i7-2600 CPU @ 3.40Ghz ]
    MEMORY - [ 16.0 GB RAM ]
    GPU - [ NVIDIA GeForce GT 530 ]
    Attachments:
    Case inside Event 3.vi ‏19 KB
    Case inside Event.ctl ‏6 KB
    Case inside Event 2.ctl ‏6 KB

    Okay. Accpeting that the design is not favorable and not advantageous when my program expands. I have begin to follow producer/consumer programming architecture.
    Please find the attached program which is a simple producer consumer with event structure. I wonder how could I stop looping around the producer and consumer loops over and over again. I am pretty sure that this ENQUEUE ELEMENT loops back to the consumer loop and starts from begining.
    I hope my first program in PC architecture with State machine and Event structure is correct. 
    Abhilash S Nair
    Research Assistant @ Photonic Devices and Systems lab
    [ LabView professional Development System - Version 11.0 - 32-bit ]
    LabView Gear:
    1. NI PXI-7951R & NI 5761
    2. The Imaging Source USB 3.0 monochrome camera with trigger : DMK 23UM021
    OPERATING SYSTEM - [ MS windows 7 Home Premium 64-bit SP-1 ]
    CPU - [Intel Core i7-2600 CPU @ 3.40Ghz ]
    MEMORY - [ 16.0 GB RAM ]
    GPU - [ NVIDIA GeForce GT 530 ]
    Attachments:
    Case inside Event 3.3-ProducerConsumer Event.vi ‏25 KB
    Case inside Event.ctl ‏6 KB

  • Programmatically generate a new front panel object

    I'd like to see an example of how to programmatically generate a new front panel object like a button or sub-panel at run time.  Any pointers?
    I've looked for examples but don't seem to be having success.

    "Controls on the fly" (artwork courtisy of Christian Altenbach) is something I have done on more than one app.
    Also check out the Picture control thread for more links and idea.
    The easy method is to pre-create and hide.
    The amount of code that goes into supporting functional controls is enormous (been ther done that)
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Web based Front Panel

    Hello,
    I want to place an interactive vi on a website.  From what I have
    gathered from the help files the ni solution is non-interactive.
    Is that correct?   Are there unix friendly ways of loading vi online?
    Thanks

    For NI's remote front panel to be interactive, you need to install the LV run-time engine on the controlling computer.
    If you want a JAVA based solution, try looking at LabVNC.
    Try to take over the world!

  • Hi. I want to build a GUI based on several windows appearing following a certain sequence. How can i create different windows in the same VI? Also, i want the front panel of a subvi to appear when i run, how can i enable this.Thanks

    Having several windows appear ...

    Hi,
    You can't create several windows for one VI. But you can use the "Tab Control" and change tab's in the program. Or you can use sub VI's and show ther front panels.
    To show the front panel of a sub VI you have to open the VI you want to show and select "File->VI Properties". In the VI Properties window select Category "Window Appearance" and click Customize...
    In the Customize Window Appearence window, here you can set a number of attributes for how the window will appear, select "Show front panel when called" and "Close afterwards if originally closed" click OK and OK and save the VI, done.
    Now the VI front panel will appear then you use it as a sub VI.
    /Thomas

  • How to get the position of the stem in control valve using slider control in the front panel

    I have created a calibration program for a control valve. Signal (4-20mA) is generated from labview using slider contorl which is given to the valve via DAQ(module 9265) and again the feedback signal from the valve is acquired using DAQ(module 9203).. . There is an input ISO/ISC(Increasing signal to open/ Increasing signal to close) in the front panel.
    ISO would set the output to increase from (4-20)mA further opening the valve
    ISC would set the output to increase from (4-20)mA further closing the valve
    I have doubt, how can i get the position of a stem

    Ravens Fan wrote:
    If the position of the stem is being sent to the PC through a 4-20 mA signal into your DAQ 9203 module, then you just need to do an analog input read in order to get the signal.
    When reading this post, that is what came to mind...  So let's see if both RavensFan & I are trying to understand the same thing...  Are you saying that the position of the stem is linear (or scaled) to the amount of current sent to it?  Meaning a 4mA signal would move it a certain distance, and 10mA would move another given / known distance?  Or are you saying that it is calibrated so that a 20mA signal for a certain duration (ms) would move it a given distance? So the scale would be time and not current unless a lookup table is used to adjust the time duration based on the current being drawn...
    It's just that I am not familiar with solenoid / drive devices that related to current..  To voltage, yes.  To time, yes..  To current, I'm simply saying that I am not familiar with that.  Can you tell us more about this stem (mfg / model designation)?

  • Asus Xonar DGX no rear sound / mic. Front panel sound/mic ok. [SOLVED]

    Hi guys,
    I have a ASUS Xonar DGX PCI-E GX2.5 sound card since my onboard audio crapped out on my motherboard. I just did a first time install on my desktop and the rear portion of my card refuses to work. If I connect up my speakers to my analog output in the back I don't have any options in my sound manager for the analog output to just be a 2.0 system. I get 4.0, 4.1, 5.0, 5.1. All of which do not work obviously. Also my microphone doesn't work plugged into the actual card. If I plug them into the front panel audio, both the microphone and headphone out work. I did some searching, and it seems like a likely cause has something to do with amixer being multichannel. I tried several commands but wasn't successful in getting the audio to work through the back. Any help would be useful, I'm still trying to learn a lot about Arch while doing all this. Thanks in advance!
    Solution. Using Alsamixer in terminal and selecting the analog out as stereo headphones, instead of stereo headphones (fp).
    Last edited by 15goudreau (2014-08-04 21:56:36)

    Search for vid and pid combination, ergo 13f6:8788 in your case. This should be one of the search terms, vid and pid could be also separated, other search terms could include oxygen, sonar, dgx and so on. Simple google search should turn something up.
    Edit: The point is to locate a thread/post where the support for this card was implemented/talked about. It could provide some further insight.
    The simplest approach would be to download linux-rt sources from aur with yaourt, modify PKGBUILD, compile and then install.
    yaourt -G linux-rt
    cd linux-rt
    Copy this into PKGBUILD replacing the original:
    # Maintainer: Joakim Hernberg <[email protected]>
    # Contributor: Ray Rashif <[email protected]>
    # Contributor: timbosa <[email protected]>
    # Contributor: Tobias Powalowski <[email protected]>
    # Contributor: Thomas Baechler <[email protected]>
    pkgbase=linux-rt
    pkgname=('linux-rt' 'linux-rt-headers' 'linux-rt-docs') # Build realtime patched -rt kernel
    #pkgname=linux-custom # Build kernel with a different name
    _kernelname=${pkgname#linux}
    _basekernel=3.14
    _releasever=12
    _rtpatchver=rt9
    pkgrel=1
    _pkgver=${_basekernel}.${_releasever}
    pkgver=${_basekernel}.${_releasever}_${_rtpatchver}
    arch=('i686' 'x86_64')
    url="http://rt.wiki.kernel.org/"
    license=('GPL2')
    makedepends=('xmlto' 'docbook-xsl' 'kmod' 'inetutils' 'bc')
    options=('!strip')
    source=("https://www.kernel.org/pub/linux/kernel/v3.x/linux-${_basekernel}.tar.xz"
    "https://www.kernel.org/pub/linux/kernel/v3.x/patch-${_pkgver}.xz"
    "https://www.kernel.org/pub/linux/kernel/projects/rt/${_basekernel}/patch-${_pkgver}-${_rtpatchver}.patch.xz"
    # the main kernel config files
    'config' 'config.x86_64'
    # standard config files for mkinitcpio ramdisk
    "${pkgname}.preset"
    'change-default-console-loglevel.patch'
    '0001-Bluetooth-allocate-static-minor-for-vhci.patch'
    '0002-module-allow-multiple-calls-to-MODULE_DEVICE_TABLE-p.patch'
    '0003-module-remove-MODULE_GENERIC_TABLE.patch'
    '0006-genksyms-fix-typeof-handling.patch'
    '0007-asus-xonar-dgx.patch')
    md5sums=('b621207b3f6ecbb67db18b13258f8ea8'
    '89a5af1f3609d0c27e63fea298dd80ed'
    '2aa3614e488efa939007a1c428406c30'
    'a8126ad28c0a902a575397cacd099db2'
    '843119a441c942efc5ec4b73c3c6ced5'
    'eb14dcfd80c00852ef81ded6e826826a'
    '6623d69fdc936d707990ca060dabd2ce'
    '6839ddec74a5300beff1709a81b0e4f3'
    '706549e8a05f33f7fc697f28c0ca71d2'
    'd23fc66be93ebce698bd7da844789de1'
    '16a161979f846b049e90daea907c35dd'
    'SKIP')
    prepare() {
    cd "${srcdir}/linux-${_basekernel}"
    # add upstream patch
    msg "apply patch-${_pkgver}"
    patch -p1 -i "${srcdir}/patch-${_pkgver}"
    # add realtime patch
    msg "applying patch-${_pkgver}-${_rtpatchver}.patch"
    patch -p1 -i "${srcdir}/patch-${_pkgver}-${_rtpatchver}.patch"
    # add latest fixes from stable queue, if needed
    # http://git.kernel.org/?p=linux/kernel/git/stable/stable-queue.git
    # set DEFAULT_CONSOLE_LOGLEVEL to 4 (same value as the 'quiet' kernel param)
    # remove this when a Kconfig knob is made available by upstream
    # (relevant patch sent upstream: https://lkml.org/lkml/2011/7/26/227)
    msg "change-default-console-loglevel.patch"
    patch -p1 -i "${srcdir}/change-default-console-loglevel.patch"
    # Fix vhci warning in kmod (to restore every kernel maintainer's sanity)
    msg "0001-Bluetooth-allocate-static-minor-for-vhci.patch"
    patch -p1 -i "${srcdir}/0001-Bluetooth-allocate-static-minor-for-vhci.patch"
    # Fix atkbd aliases
    msg "0002-module-allow-multiple-calls-to-MODULE_DEVICE_TABLE-p.patch"
    patch -p1 -i "${srcdir}/0002-module-allow-multiple-calls-to-MODULE_DEVICE_TABLE-p.patch"
    msg "0003-module-remove-MODULE_GENERIC_TABLE.patch"
    patch -p1 -i "${srcdir}/0003-module-remove-MODULE_GENERIC_TABLE.patch"
    # Fix generation of symbol CRCs
    # http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=dc53324060f324e8af6867f57bf4891c13c6ef18
    msg "0006-genksyms-fix-typeof-handling.patch"
    patch -p1 -i "${srcdir}/0006-genksyms-fix-typeof-handling.patch"
    msg "0007-asus-xonar-dgx.patch"
    patch -p1 -i "${srcdir}/0007-asus-xonar-dgx.patch"
    msg "All patches have successfully been applied"
    if [ "${CARCH}" = "x86_64" ]; then
    cat "${srcdir}/config.x86_64" > ./.config
    else
    cat "${srcdir}/config" > ./.config
    fi
    # if [ "${_kernelname}" != "" ]; then
    # sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"${_kernelname}\"|g" ./.config
    # sed -i "s|CONFIG_LOCALVERSION_AUTO=.*|CONFIG_LOCALVERSION_AUTO=n|" ./.config
    # fi
    # set extraversion to pkgrel
    #sed -ri "s|^(EXTRAVERSION =).*|\1 -${pkgrel}|" Makefile
    # set localversion to pkgrel-rt
    sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"-${pkgrel}${_kernelname}\"|g" ./.config
    # don't run depmod on 'make install'. We'll do this ourselves in packaging
    sed -i '2iexit 0' scripts/depmod.sh
    # get kernel version
    make prepare
    # load configuration
    # Configure the kernel. Replace the line below with one of your choice.
    #make menuconfig # CLI menu for configuration
    #make nconfig # new CLI menu for configuration
    #make xconfig # X-based configuration
    #make oldconfig # using old config from previous kernel version
    # ... or manually edit .config
    # rewrite configuration
    yes "" | make config >/dev/null
    # stop here
    # this is useful to configure the kernel
    #msg "Stopping build"; return 1
    build() {
    cd "${srcdir}/linux-${_basekernel}"
    make ${MAKEFLAGS} LOCALVERSION= bzImage modules
    package_linux-rt() {
    pkgdesc="The Linux Kernel and modules (with realtime preemption)."
    #groups=('base')
    depends=('coreutils' 'linux-firmware' 'kmod' 'mkinitcpio>=0.7')
    optdepends=('crda: to set the correct wireless channels of your country')
    # provides=("kernel26${_kernelname}=${pkgver}")
    # conflicts=("kernel26${_kernelname}")
    # replaces=("kernel26${_kernelname}")
    backup=("etc/mkinitcpio.d/${pkgname}.preset")
    install=${pkgname}.install
    cd "${srcdir}/linux-${_basekernel}"
    KARCH=x86
    # get kernel version
    _kernver="$(make LOCALVERSION= kernelrelease)"
    # _basekernel=${_kernver%%-*}
    # _basekernel=${_basekernel%.*}
    mkdir -p "${pkgdir}"/{lib/modules,lib/firmware,boot}
    make LOCALVERSION= INSTALL_MOD_PATH="${pkgdir}" modules_install
    cp arch/$KARCH/boot/bzImage "${pkgdir}/boot/vmlinuz-${pkgname}"
    # add vmlinux
    install -D -m644 vmlinux "${pkgdir}/usr/src/linux-${_kernver}/vmlinux"
    # set correct depmod command for install
    cp -f "${startdir}/${install}" "${startdir}/${install}.pkg"
    true && install=${install}.pkg
    sed \
    -e "s/KERNEL_NAME=.*/KERNEL_NAME=${_kernelname}/" \
    -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/" \
    -i "${startdir}/${install}"
    # install mkinitcpio preset file for kernel
    install -D -m644 "${srcdir}/${pkgname}.preset" "${pkgdir}/etc/mkinitcpio.d/${pkgname}.preset"
    sed \
    -e "1s|'linux.*'|'${pkgname}'|" \
    -e "s|ALL_kver=.*|ALL_kver=\"/boot/vmlinuz-${pkgname}\"|" \
    -e "s|default_image=.*|default_image=\"/boot/initramfs-${pkgname}.img\"|" \
    -e "s|fallback_image=.*|fallback_image=\"/boot/initramfs-${pkgname}-fallback.img\"|" \
    -i "${pkgdir}/etc/mkinitcpio.d/${pkgname}.preset"
    # remove build and source links
    rm -f "${pkgdir}"/lib/modules/${_kernver}/{source,build}
    # remove the firmware
    rm -rf "${pkgdir}/lib/firmware"
    # gzip -9 all modules to save 100MB of space
    find "${pkgdir}" -name '*.ko' -exec gzip -9 {} \;
    # make room for external modules
    ln -s "../extramodules-${_basekernel}${_kernelname:--rt}" "${pkgdir}/lib/modules/${_kernver}/extramodules"
    # add real version for building modules and running depmod from post_install/upgrade
    mkdir -p "${pkgdir}/lib/modules/extramodules-${_basekernel}${_kernelname:--rt}"
    echo "${_kernver}" > "${pkgdir}/lib/modules/extramodules-${_basekernel}${_kernelname:--rt}/version"
    # Now we call depmod...
    depmod -b "$pkgdir" -F System.map "$_kernver"
    # move module tree /lib -> /usr/lib
    mv "$pkgdir/lib" "$pkgdir/usr"
    package_linux-rt-headers() {
    pkgdesc="Header files and scripts for building modules for linux kernel (with realtime preemption)."
    # provides=("kernel26${_kernelname}-headers=${pkgver}")
    # conflicts=("kernel26${_kernelname}-headers")
    # replaces=("kernel26${_kernelname}-headers")
    install -dm755 "${pkgdir}/usr/lib/modules/${_kernver}"
    cd "${pkgdir}/usr/lib/modules/${_kernver}"
    ln -sf ../../../src/linux-${_kernver} build
    cd "${srcdir}/linux-${_basekernel}"
    install -D -m644 Makefile \
    "${pkgdir}/usr/src/linux-${_kernver}/Makefile"
    install -D -m644 kernel/Makefile \
    "${pkgdir}/usr/src/linux-${_kernver}/kernel/Makefile"
    install -D -m644 .config \
    "${pkgdir}/usr/src/linux-${_kernver}/.config"
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/include"
    for i in acpi asm-generic config crypto drm generated keys linux math-emu \
    media net pcmcia scsi sound trace uapi video xen; do
    cp -a include/${i} "${pkgdir}/usr/src/linux-${_kernver}/include/"
    done
    # copy arch includes for external modules
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/arch/x86"
    cp -a arch/x86/include "${pkgdir}/usr/src/linux-${_kernver}/arch/x86/"
    # copy files necessary for later builds, like nvidia and vmware
    cp Module.symvers "${pkgdir}/usr/src/linux-${_kernver}"
    cp -a scripts "${pkgdir}/usr/src/linux-${_kernver}"
    # fix permissions on scripts dir
    chmod og-w -R "${pkgdir}/usr/src/linux-${_kernver}/scripts"
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/.tmp_versions"
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/kernel"
    cp arch/${KARCH}/Makefile "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/"
    if [ "${CARCH}" = "i686" ]; then
    cp arch/${KARCH}/Makefile_32.cpu "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/"
    fi
    cp arch/${KARCH}/kernel/asm-offsets.s "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/kernel/"
    # add docbook makefile
    install -D -m644 Documentation/DocBook/Makefile \
    "${pkgdir}/usr/src/linux-${_kernver}/Documentation/DocBook/Makefile"
    # add dm headers
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/md"
    cp drivers/md/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/md"
    # add inotify.h
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/include/linux"
    cp include/linux/inotify.h "${pkgdir}/usr/src/linux-${_kernver}/include/linux/"
    # add wireless headers
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/"
    cp net/mac80211/*.h "${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/"
    # add dvb headers for external modules
    # in reference to:
    # http://bugs.archlinux.org/task/9912
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb-core"
    cp drivers/media/dvb-core/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb-core/"
    # and...
    # http://bugs.archlinux.org/task/11194
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/"
    cp include/config/dvb/*.h "${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/"
    # add dvb headers for http://mcentral.de/hg/~mrec/em28xx-new
    # in reference to:
    # http://bugs.archlinux.org/task/13146
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb-frontends/"
    cp drivers/media/dvb-frontends/lgdt330x.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb-frontends/"
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/i2c/"
    cp drivers/media/i2c/msp3400-driver.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/i2c/"
    # add dvb headers
    # in reference to:
    # http://bugs.archlinux.org/task/20402
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/usb/dvb-usb"
    cp drivers/media/usb/dvb-usb/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/usb/dvb-usb/"
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb-frontends"
    cp drivers/media/dvb-frontends/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb-frontends/"
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/tuners"
    cp drivers/media/tuners/*.h "${pkgdir}/usr/src/linux-${_kernver}/drivers/media/tuners/"
    # add xfs and shmem for aufs building
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/fs/xfs"
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}/mm"
    cp fs/xfs/xfs_sb.h "${pkgdir}/usr/src/linux-${_kernver}/fs/xfs/xfs_sb.h"
    # copy in Kconfig files
    for i in `find . -name "Kconfig*"`; do
    mkdir -p "${pkgdir}"/usr/src/linux-${_kernver}/`echo ${i} | sed 's|/Kconfig.*||'`
    cp ${i} "${pkgdir}/usr/src/linux-${_kernver}/${i}"
    done
    chown -R root.root "${pkgdir}/usr/src/linux-${_kernver}"
    find "${pkgdir}/usr/src/linux-${_kernver}" -type d -exec chmod 755 {} \;
    # strip scripts directory
    find "${pkgdir}/usr/src/linux-${_kernver}/scripts" -type f -perm -u+w 2>/dev/null | while read binary ; do
    case "$(file -bi "${binary}")" in
    *application/x-sharedlib*) # Libraries (.so)
    /usr/bin/strip ${STRIP_SHARED} "${binary}";;
    *application/x-archive*) # Libraries (.a)
    /usr/bin/strip ${STRIP_STATIC} "${binary}";;
    *application/x-executable*) # Binaries
    /usr/bin/strip ${STRIP_BINARIES} "${binary}";;
    esac
    done
    # remove unneeded architectures
    rm -rf "${pkgdir}"/usr/src/linux-${_kernver}/arch/{alpha,arc,arm,arm26,arm64,avr32,blackfin,c6x,cris,frv,h8300,hexagon,ia64,m32r,m68k,m68knommu,metag,mips,microblaze,mn10300,openrisc,parisc,powerpc,ppc,s390,score,sh,sh64,sparc,sparc64,tile,unicore32,um,v850,xtensa}
    package_linux-rt-docs() {
    pkgdesc="Kernel hackers manual - HTML documentation that comes with the Linux kernel (with realtime preemption)."
    # provides=("kernel26${_kernelname}-docs=${pkgver}")
    # conflicts=("kernel26${_kernelname}-docs")
    # replaces=("kernel26${_kernelname}-docs")
    cd "${srcdir}/linux-${_basekernel}"
    mkdir -p "${pkgdir}/usr/src/linux-${_kernver}"
    cp -al Documentation "${pkgdir}/usr/src/linux-${_kernver}"
    find "${pkgdir}" -type f -exec chmod 444 {} \;
    find "${pkgdir}" -type d -exec chmod 755 {} \;
    # remove a file already in linux package
    rm -f "${pkgdir}/usr/src/linux-${_kernver}/Documentation/DocBook/Makefile"
    # vim:set ts=8 sts=2 sw=2 et:
    Then create the file '0007-asus-xonar-dgx.patch' with the following content:
    --- a/sound/pci/oxygen/oxygen.c 2014-08-01 20:45:20.299191180 +0200
    +++ b/sound/pci/oxygen/oxygen.c 2014-08-01 20:46:11.179947117 +0200
    @@ -105,7 +105,7 @@
    { OXYGEN_PCI_SUBID(0x10b0, 0x0219), .driver_data = MODEL_CMEDIA_REF },
    { OXYGEN_PCI_SUBID(0x13f6, 0x0001), .driver_data = MODEL_CMEDIA_REF },
    { OXYGEN_PCI_SUBID(0x13f6, 0x0010), .driver_data = MODEL_CMEDIA_REF },
    - { OXYGEN_PCI_SUBID(0x13f6, 0x8788), .driver_data = MODEL_CMEDIA_REF },
    + { OXYGEN_PCI_SUBID(0x13f6, 0x8788), .driver_data = MODEL_XONAR_DGX },
    { OXYGEN_PCI_SUBID(0x147a, 0xa017), .driver_data = MODEL_CMEDIA_REF },
    { OXYGEN_PCI_SUBID(0x1a58, 0x0910), .driver_data = MODEL_CMEDIA_REF },
    /* Asus Xonar DG */
    Finally run makepkg, should there be errors try removing the src dir first 'yes|rm -r src', then run makepkg again. Should there still be an error post here.
    As for the patch, should there be no real difference there is also MODEL_XONAR_DG, might be worth trying out.
    Last edited by emeres (2014-08-01 22:34:05)

  • Put the front panel of a vi to an ftp server

    I have made a vi and i want to put the front panel of it to an ftp server.
    I tried to do this with FTP Put File VI but I didn't manage to do that.
    I think that the wrong part is at the remote path, because i don't know what to write.
    Attachments:
    D2_v18c.vi ‏322 KB

    I don't quite understand what you're doing. Where is D2_v18b.html being generated?
    Your code is a mess. You have way too many local variables (in several spots I see you write to the indicator AND to a local variable of that same indicator!). I also see numerous race conditions, which means your code is unlikely to work as you think it will.  I also see lots of code duplication, which means you should be creating subVIs. I would guess you have a background in text-based programming. I'm certainly not going to rewrite your code, but I would suggest you do, and you should look into an application design patterns like a state machine.
    Message Edited by smercurio_fc on 06-15-2009 09:17 AM

  • RT Remote Front Panel issues.

    I'll start with my setup:
    2 PXI-1042 chassis connected via fiber-optic using NI PXI-8336 (MXI-4) cards.
    Chassis 1:  PXI-8108 embedded controller running LabVIEW Real-time OS (2010), PXI-6528 DIO, PXI-8336 MXI-4.
    Chassis 2:  MXI-4 in slot 1, 4 PXI-8334 DMM, PXI-6528 DIO, PXI-6281 M-series DAQ.
    The real-time executable monitors analog and digital inputs and DMM measurements, displays the values using numeric and boolean indicators, generates alarms and allows users to acknowledge alarms via a Remote Front Panel.  The code has a custom error handler that traps errors and stores them in a global array.  This allows the code to display them on a console and allows the user to acknowledge and clear errors, and scroll through multiple error messages.  We used property nodes sparingly.
    The system is monitored by two laptops with the correct run-time engine installed (both laptops have the LabVIEW development suite).  Under normal conditions, one laptop keeps control of the Remote Front Panel at all times.
    The problem:
    The system was running flawlessly for 3 months of continuous use.  Then, for no apparent reason, the indicators that display measurements from "Chassis 2" (specifically the DAQ) stopped updating. 
    If the user refreshed the browser, the Remote Front Panel client would reconnect to the RT Web Server and get updated values, but they were always static.  Essentially, refreshing the browser took a "snapshot" of the data, but the indicators did not update continuously as before.  At the same time, DIO inputs to "Chassis 1" responded appropriately to changes in state. 
    Refreshing the browser on one laptop would update the values for that laptop only, and the other laptop could be refreshed independently and have different values displayed, but both laptop's indicators were static.  During this time, the DMM measured inputs were not changing and the "Chassis 2" DIO inputs did not change state (i.e., we could not perturb the inputs), so we could not determine if those indications were affected.
    Also, the error console did not respond to user input until the browser was refreshed and the client reconnected to the target.
    We know the RT application is running on the target because there is code that monitors the status of the loops by changing state every loop iteration and displays the status to the user.
    Our short-term solution was to reboot the RT controller by powering down both chassis, starting "Chassis 2", then starting "Chassis 1".  It's been running for a few days now without incident.
    Since the data displayed after refresh was accurate based on comparison to gages in the system, we do not suspect a measurement problem.
    Possible culprits:
    1.  The RT Web Server has malfunctioned in some way (memory problems, synchronization, etc.)
    2.  The MXI-4 link.
    3.  Cosmic rays?  Sunspots?  Nearby radar stations?  Neighboring HAM radio operators (with massive amplifiers)?
    If anyone has any ideas, they are welcome.  We are concerned that this will be an ongoing problem, if only every few months or so.

    Could you clarify a bit on how the PXI-6528 was acting while you were seeing these problems? Does this card have values display on the Remote Front Panel, and if so were they still updating properly? I believe you were saying that, but I wanted to be sure because that makes a big difference. 
    If everything became static, including the DIO card, at the same time, then I'd say see if your browser updated, or something in your network settings was changed without you noticing. Perhaps an update ran and reset some of your firewall settings, or an Internet Explorer update changed something that required a reboot. 
    If just the outputs of chassis 2 were the problem, and the DIO card values on your remote front panel still worked well, then it is most likely a problem with your MXI-4 cards or your fiber optic cable that cause the change in behavior. 
    Miles G.
    National Instruments
    Applications Engineer

  • I have a VI and an attched .txt data file. Now I want to read the data from the .txt file and display it as an array in the front panel. But the result is not right. Any help?

    I have a VI and an attched .txt data file. Now I want to read the data from the .txt file and display it as an array in the front panel. But the result is not right. Any help?
    Attachments:
    try2.txt ‏2 KB
    read_array.vi ‏21 KB

    The problem is in the delimiters in your text file. By default, Read From Spreadsheet File.vi expects a tab delimited file. You can specify a delimiter (like a space), but Read From Spreadsheet File.vi has a problem with repeated delimiters: if you specify a single space as a delimiter and Read From Spreadsheet File.vi finds two spaces back-to-back, it stops reading that line. Your file (as I got it from your earlier post) is delimited by 4 spaces.
    Here are some of your choices to fix your problem.
    1. Change the source file to a tab delimited file. Your VI will then run as is.
    2. Change the source file to be delimited by a single space (rather than 4), then wire a string constant containing one space to the delimiter input of Read From Spreadsheet File.vi.
    3. Wire a string constant containing 4 spaces to the delimiter input of Read From Spreadsheet File.vi. Then your text file will run as is.
    Depending on where your text file comes from (see more comments below), I'd vote for choice 1: a tab delimited text file. It's the most common text output of spreadsheet programs.
    Comments for choices 1 and 2: Where does the text file come from? Is it automatically generated or manually generated? Will it be generated multiple times or just once? If it's manually generated or generated just once, you can use any text editor to change 4 spaces to a tab or to a single space. Note: if you want to change it to a tab delimited file, you can't enter a tab directly into a box in the search & replace dialog of many programs like notepad, but you can do a cut and paste. Before you start your search and replace (just in the text window of the editor), press tab. A tab character will be entered. Press Shift-LeftArrow (not Backspace) to highlight the tab character. Press Ctrl-X to cut the tab character. Start your search and replace (Ctrl-H in notepad in Windows 2000). Click into the Find What box. Enter four spaces. Click into the Replace With box. Press Ctrl-V to paste the tab character. And another thing: older versions of notepad don't have search and replace. Use any editor or word processor that does.

  • Front Panel Mass Binding Project Variables Issue

    Hello -
    When attempting to bind controls to shared variables through the front panel mass binding option, there is an issue where you can not seem to bind a "project item" to the control. The method of binding I am using is to export a text list of control names, urls, mode, and function to a text editor utilizing the front panel binding mass configuration options.  The text editor shows, in the fourth column, a "0" for no function, a "1" for network item, and a "2" for project item. when attempting to import the list back into the front panel binding mass configuration, all "2" indications become "1", as all items are treated as network. Thus one can not effectively bind to a project shared variable item.
    The binding works fine manually by means of utilizing the properties selection of the control, but it is difficult to do this for 821 controls, as in my application.
    My application is based on a OPC served group of 821 variables which are linked to controls and indicators through the shared variable representation for each item created in the multiple variable editor.
    Does anyone have a work around for this issue, as it is a showstopper right now, ie, you can not effectively bind a large quantity of controls or indicators to project located shared variables as required.
    The rationale behind utilizing project located variables instead of network located variables is to reduce the amount of calls to the OPC server which was causnig a large latency in the refresh of the 821 items. With the items defined as shared variables within the project, a single call is issued, which has tremendously sped up the refresh cycle for the list of variables.
    Thank you in advance for your insight in this matter,
    John DeCroos

    Hello Brian A.,
    In response to you comment --
    "in 2006, and John did not follow up with any more information for Efosa"
     -- a great deal of information was provided to NI (Efosa and many, many others, up to the product manager for the DCS module). I have never heard back on a fix for this bug for the identified version of LabVIEW. The reply by Efosa here was well after we had shipped our product -- (please see date + Efosa's apology) -- we had found our own solution as is identified in the original post.
    My solution was, as is also indicated in my original post, to manually bind each variable. This was unbelievably time consuming, but was all I had.
    The version of software I am now working on uses far less variables, manually bound to avoid the multiple binding issue we had in the past.
    I have checked the mass binding function in LV 8.5.1, it works fine now. I guess it would have been nice to have had a reply that the bug had been resolved ---- would have helped me out a bit.
    Thank you,
    John DeCroos

Maybe you are looking for

  • What do you do about a denial in the Mountain Lion Up-To-Date program?

    I ordered my new Mac Mini from Amazon.com on Friday, July 27th and received it on July 28th.  Later that day I filled out my Up-To-Date application form and uploaded a copy of my Amazon invoice.  That evening I received a denial email saying: Receipt

  • Problem viewing Argo - subtitles

    Rented the movie ARGO and experienced issue of subtitles remaining on screen.  Only way to get subtitles off was to stop movie, exit out of movie and then resume playing.  Extremely annoying as I had to repeat process about 20 times.  Same issue occu

  • WHAT IS THE DIFF B/N DRILLDOWN REPORT AND INTERACTIVE REPORT

    HI EXPERTS CAN U HELP ME FOR THIS THANKU

  • ABAP Query and ABAP Report

    Hi, 1.What is the difference between ABAP Query and ABAP report? 2.What are the advantages of LSMW over BDC? Regards, Ajit

  • Time Format of device

    hi is there any way by which i can obtain the Time format followed by device during runtime in my java application i.e. whether it is am-pm format or hr format