Use of "setfld" in ddt in 11.4

My company upgraded to 11.4 from 11.1. We use "setfld" in our DDTs, but it no longer populates the fields. It is my understanding that the syntax was incorrect, but 11.1 was forgiving and 11.4 is not. Here is an example:
If;A={!/XMLInput/LineOfBusiness/Programs/Policies/Policy/Vehicles/Vehicle[Type='HR']/Coverages/Coverage[CoverageType='BI']/AnnualPremium 1,10}::B={!/XMLInput/LineOfBusiness/Programs/Policies/Policy/Vehicles/Vehicle[Type='HR']/Coverages/Coverage[CoverageType='CSL']/AnnualPremium 1,10}::IF((A ='') or (B != ''))::Setfld(B, "BI_ANNUAL_PREM")::ELSE::Setfld(A, "BI_ANNUAL_PREM")::end
I am not sure if I need to add "Return" to go with each "Setfld" or there is some other problem.
I know how to create a dal to use, but we have quite a few setflds and I would like to be able to just fix it instead of having to create the dals.
Edited by: user10636267 on Apr 22, 2011 4:14 PM
Edited by: user10636267 on Apr 25, 2011 2:16 PM

My company upgraded to 11.4 from 11.1. We use "setfld" in our DDTs, but it no longer populates the fields. It is my understanding that the syntax was incorrect, but 11.1 was forgiving and 11.4 is not. Here is an example:
If;A={!/XMLInput/LineOfBusiness/Programs/Policies/Policy/Vehicles/Vehicle[Type='HR']/Coverages/Coverage[CoverageType='BI']/AnnualPremium 1,10}::B={!/XMLInput/LineOfBusiness/Programs/Policies/Policy/Vehicles/Vehicle[Type='HR']/Coverages/Coverage[CoverageType='CSL']/AnnualPremium 1,10}::IF((A ='') or (B != ''))::Setfld(B, "BI_ANNUAL_PREM")::ELSE::Setfld(A, "BI_ANNUAL_PREM")::end
I am not sure if I need to add "Return" to go with each "Setfld" or there is some other problem.
I know how to create a dal to use, but we have quite a few setflds and I would like to be able to just fix it instead of having to create the dals.
Edited by: user10636267 on Apr 22, 2011 4:14 PM
Edited by: user10636267 on Apr 25, 2011 2:16 PM

Similar Messages

  • Creative Decoder DDTS 100,

    Hello,
    I.m using a creative decoder DDTS 100. When i switch on the decoder i set the volume, in which mode it should be, the volume of center and rear speakers. My problem over here when i switch off and switch on the decoder it comes to the default setting. What i want is my settings needed to be saved each time time i switch off and should come up with the same setting when i power on. Please provide me with a solution for this.
    Thank you.

    hi,
    i found your question doin researching on what a creative ddts-100 is on google as i am clearing out my uncles house who died and he had one. would you be interested in buying this one if you have not already got one?
    i dont know much about them and not sure if all componenets are there,the box it was in had a piture on the front of the actual decoder and remote, i have both those and a power lead, box and instructions, it mentions here and there in the intructions about a switch box, which i do no have but can look again for it.
    if you are intertested i can list the item on ebay with a price that we can arrange for you to buy and i will post it off to you. where are you?
    sorry know this is a long shot but my uncle was a bit of a gadget man there is alot of stuff to clear and i know nothing about any of it!!!
    my email address is [email protected], if you are interested please get in touch.
    thanks
    katherine x

  • Reading back file for analysis purposes controlling X-axis

    Alright, I lose using labview.  I use it for a ton of different projects at work.  I have been fooling around with this for a while and maybe I am just missing it.
    Here goes, in one of my applications I record 4 AI channels at various rates (6, 600, 6000) Hz, I write the data to three different files depending on the record speed.  I create a .txt file using the "write to file" wizard.  I check the option to use one time column.  In the end I get a nice file with 5 columns the first being my time, and the other four being the data on the 4 AI channels. 
     Now I am trying to read this file back to graph and perform some analysis on it.  I have tried this a few different ways, with using charts and graphs.  My question is is there anyway to grab that first column and set it as my x-axis.  Right now the x-axis really dosn't make much sense.  Even if it graphed it as a sample number would be good.  Any help would be greatly appreated.
    Thanks
    Chris

    Hi Chris,
    attached vi will read your data...
    When you rename your txt to .lvm you may also use the "Read from measurement file" function. As I'm not using the dynamic datatype (DDT) (so far) I don't know how to separate the single signal from the output - but it is shown in the properties dialog...
    "Spreadsheet string to array" is located on the string palette - like any other string function too
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome
    Attachments:
    Read_Data_LV85.vi ‏81 KB

  • XY-Graph TORQUE AND POWER IN FUCNTION OF ROTATE SPEED

    Dear,
    I have  made a program in Labview for my endwork so i have now one problem ; i read data (torque,temperature,power,speed of an engine with an USB-6009 daq-kaart.) now i want to make a graph of the torque (koppel in dutch) in funtion of rotate speed and also power(vermogen in dutch).  i have used xy graph but  i get nothing  . What do i wrong can some one help me? I send the program also as attachement ; on the y i will torque(=koppel) and x i will rotate speed (toerental)  
    thank you
    Attachments:
    Eindwerk_data.vi ‏346 KB

    Hey Drayton,
    Please have a look at the attached VI.  
    Left
    of the While Loop I created a 2 dimensional array.  Column zero is
    representing the RPM, column 1 the Torque (koppel) and column 2 is the
    Power (vermogen).
    Then I am simulating the measured data of RMP,
    Torque and Power.  As I would like to limit the number of elements in
    the array, I used the "Remainder and Quotient" function to round to a
    nearest lower multiple of 20.  This means you will have steps of 20 RPM
    in your graph.  The lenght of the array is in the case: 4000 RMP max /
    20 = 200 elements.  Of course you can change this but then also your
    array size will become larger (more processor time needed to analyze).
    Next
    step is to get the index number in the existing array which equals the
    current measured RPM.    This index is needed to replace the
    corresponding torque and power values in the array.
    If the newest
    torque or power value is greater than the already available value for
    the corresponding RPM,  then this value will overwrite the existing
    value. If not, then the existing torque and power value will be kept.  
    Finally I will extract the complete columns of the array for RPM, torque and power to apply them to the XY graph.
    You can almost copy/paste this into your VI.
    As
    your data is coming from Express VI, the wires contain waveform data
    which also inclused timestamp information.  As you cannot use waveform
    data with arrays and actually don't need it, you have to use the
    function "From DDT". This is also an express VI to convert the Dynamic
    Data Type from the Express VI into a scalar datatype.  You can show to
    analyze only one point at a time of by using an array.
    I have also seen that you have place additional numeric indicators on your front panel beside the meters.
    This is great. You only used an additional object to do so causing also an additional terminal appearing on your block diagram.
    Actually,
    the numeric front panel objects have already an numeric indicator
    related to it.  This way no additional block diagram terminal will show
    up.
    You only need to enable it.
    Right click on the object to open
    the shortcut menu ---> Visible Items --> Numeric Display.  There
    is your numeric indicator directly related to the object.
    If you do this for all you front panel objects, your block diagram will look much nicer and easier to read.
    Best regards,
    Joeri
    National Instruments
    Applications Engineering
    http://www.ni.com/ask
    Make our forums great:
    If you like the answer, don't forget to "Kudos!".
    "Accept the Solution" if your question is answered!
    Attachments:
    Arrays.vi ‏18 KB

  • Repeated crashes when trying to add form

    Hello,
    I am using DW CS3 with DDT and whenever I try to add a Nextensio form to a page, DW will crash after I finish the wizard.
    I am using Windows XP pro SP2 and I have 2GB RAM.
    This is a new site ( I have to remake site as I had used ADODB in original)
    Any thoughts?
    Thanks.
    Chris

    Thanks Richard,
    That did the trick.
    Cheers.
    Chris
    [email protected] wrote:
    > I was having the same problem. This was a huge pain but check out this thread. It did work
    >
    >
    http://www.adobeforums.com/cgi-bin/webx/.3bc412a6/3

  • K8N Paltinum SLI no surround sound SPDIF not working

    I have a K8N Paltinum SLI. The one with the onboard Soundblaster live! 24 bit.
    I have this connected througt SPDIF and analog, but only my front speakers work. 
    I use the Cambridge Soundworks DDT 2500 which is an active decoder. (also from creative)
    I have already flashed my BIOS updated my drivers.  
    I have the Antec Sonate casing which uses a Antec truepower 380W power supply which has -5v.
    Can anybody help me??
     

    Quote from: Zilver on 14-April-05, 06:41:58
    Great Reply!! Thanks.
    But i still think it is strange from creative to supply you with an audio test, that apparently doesn't send out a proper signal to support 5.1
    Furthermore, besides the SPDIF there is also a black and green cable at the back of my DTT 2500 decoder. But these seem to have no sound at all running through them.
    If Ii disconnect the SPDIF I have no sound. But if I unplugg the black and green cable this has no effect. Has my DDT 2500 become obsolete??
    I had it attached to an older Soundblaster live, which had digital DIN, this worked great.
    Is there some wat to get surround sound up and runner for more than just DVD?
    Creative have a live! 24 card of their own, which probably has the multi-spdif jacksocket to support digital din. I don't believe creative are supplying speacial software to OEM's, so  the test is included as it will work with thier own card.
    Someone posted about a HDA MYSTIQUE card which supports "Dolby Live", but you have to import it yourself.
     

  • Speaker Issues [T7900 with Decoder]

    Hey all..
    Recently bought the Creative Inspire T7900 and also a decoder. Hooked up all the speakers to the main base unit, and all cables for the decoder etc.
    I have the decoder connected to the TV via a SCART connector. ie. one end is the SCART for the TV and the other is the Red, White and Yellow cables for the decoder but I can never get all speakers to work no matter what mode I am in.
    Any ideas how I can do this? I read the thread below but I wasnt to sure if it applied to me becuase my speakers are different.. I tried it, but I still can only get my right, left and center speakers working right, the rest, voices sound VERY squeaky. :S
    Iv been terrorising Irish Support for ages about this whole matter of connecting it to the TV and when I finaly got it working (or so I thought) I hung up and then realised it wasnt all working - not all speakers work :| lol.
    Hope you guys can help.
    Cheers.
    Message Edited by sullyirl on 10-12-2005 03:46 AM
    Message Edited by sullyirl on 10-12-2005 03:53 AM

    I am using the Creative Decoder DDTs-100 as advertised on the main site Im using Analog connection and Dolby Pro Logic II doesnt seem available to me (the mode doesnt go down as far as that).
    Whats weird is, it was working at the start when I tried it but when I re-arranged all the wires etc. now its only the right left and centre speaker that work. :S
    Hope you can help

  • Creative MegaWorks THX 6.1 650 and PS3

    I know I can use the Creative Decoder DDTS-100 to connect my PS3 to my sound system to get true surround sound, but is there any other way to do the same?

    http://ecoustics.pricegrabber.com/search_getprod.php/masterid=779899
    Note that it can help if you search for "Cambridge MegaWorks 650" as well as "Creative MegaWorks 650". The speakers are based off of mini-HT speakers manufactured by Cambridge SoundWorks.
    Cambridge SoundWorks does not have the MegaWorks 650 as they have been discontinued for the GigaWorks.

  • DAQ Input Signal into Array

    Hi,
    I have an input (voltage) signal comming into my DAQ assistant (6008). This information displays well into a chart, but I also want to covert the same data into array format so that I can do further calculations. So, basically I would like to put a DAQ signal into an array. I'm having a lot of trouble doing so, please help,
    thank you
    Nick

    Hello Nick,
    I can use the function "From DDT" in the Function palette Express -> Signal Manipulation.
    When you place it on the block diagram, a windows opens and you can configure: 1D Array of Scalar - Automatic.
    Best regard
    Nick_CH

  • ActiveX excel aquisition

    Hello,
    I am trying to aquire data straight into excel using active X. I found a sample code below that will do exactly what I want. It generates random data and writes it to excel on demand by user selecting a button. The data it writes now is just random data. I added a DAQ with 6 channels that will aquire one sample on demand which is what I want, and I would like to write this data into excel instead of the random data. I tried replacing the random data by the DAQ data using a conversion from DDT, but then the loop indexing does not work, and it would not let me disable indexing. I am sure this is a simple solution and I would like your help.
    Cheers,
    Alloush
    Attachments:
    Excel Write to Active Cell Example Aquire.vi ‏144 KB
    write_to_active_cell.llb ‏175 KB

    The random data you are generating is a 2 dimensional array of floating point numbers, the data coming out of your DAQ is a 1 dimension array of floating point numbers.
    That is why your for loops aren't indexing properly. If you only want to acquire one column of data, insert a 'build array' function to add a dimension to your 1D array of data.
    If you want to add a new set of captured data each time you press the 'Write to active cell' button you will need to store the last row or column index and add it too the row or column value you started with. 
    Troy
    CLDEach snowflake in an avalanche pleads not guilty. - Stanislaw J. Lec
    I haven't failed, I've found 10,000 ways that don't work - Thomas Edison
    Beware of the man who won't be bothered with details. - William Feather
    The greatest of faults is to be conscious of none. - Thomas Carlyle

  • Can I use SetFld during GenPrint for banner page fields?

    I have a banner page form that has multiple variable fields on it to display information specific to the batch it's being included with (for out post-composition handling area). I currently set those fields' values by assigning variables of the same name (as the fields) within a DAL script called as my BachBannerBeginScript for that batch. The fields on the Banner page form/section have a rule of NOOPFUNC, so without that assign process happening during the DAL script, they inherently hold no value. This has worked fine so far.
    Now I have a new banner page for a different process/batch, and it's purpose will be to be a "summary report" of sorts, detailing on the banner page high-level information about each document within that batch. I take information from the batch file (bch), read in an additional external file and aggregate the data in GVMs (to form an array, basically) during the BatchBannerBeginScript. The problem I now have is that I have a variable-sized array (based on the document-count within my batch file), yet my understanding is that I can't use functions available to me in GenData, so I have to basically pre-define as many instances of the section (if I do a report line per section) or field (if I do one section with all instances of the field on it) as I think are possible (max-case scenario, basically).
    However, after I have my Section/Fields defined, I still need to use DAL scripting to populate those fields. I tried to use SetFld to populate them, but the values don't show up in my output, leading me to believe that function/rule doesn't work in GenPrint. Is there a better way to set all those fields than to explicitly assign each instance of a field? I'd rather have a short While loop that takes a GVM's instance and assigns it to a variable field name than have hundreds of assign statements where I explicitly assign each possible field.
    Thanks,
    Gregg

    Aha. So you have an existing script that is executing somewhere to assign some other field during print. Depending upon what and when this script runs, you may be trying to set your banner fields too late. You see, as a default the banner page is temporary. Generally it is created, printed, then destroyed all before the first real page of your transaction prints. If you are not using the TransBannerBeginScript INI option as mentioned earlier, you might try to use that method to run your script which should be while the banner page is still alive.
    There is another way that you could try to run your script on the given page using what is called a "print time" or "macro" field. This would involve creating one more field on your banner section and name it like this:
    ~DALRUN MyScript.DAL
    Yes, you can name your script something other than MyScript.DAL.  The key is the ~DALRUN at the start, which will be interpreted at print time to mean that you want to run the DAL script and return a value. Now, of course you don't need a real value for this field, but there's nothing to stop the script from assigning data into the other fields at that time.
    You do have to make sure that this field is the first in sequence on the section. Otherwise, some of your fields may print before it gets to the point to evaluate this "print time" request.
    To make sure this is the first field in sequence will differ depending upon whether you are using DMStudio or the older Image Editor. Since you mentioned 11.5,  you could use either. In DMStudio, simply click on the "Objects" tab when the section is open and then click on the field to highlight it in the tree. Then use the button bar just above there to move the field to the top of the list.

  • Use DDTS-100 or Soundblaster 2 ZS for DTS applicatio

    Should I use the digital out for DTS enabled apps like DVDs or should I use the built in encoder on the Sound blaster 2 ZS? Would there be any difference?

    your speakers are analog connected ? use the ZS or the DTS = no difference.
    if digitaly connected, then you must use the DDTS-00 to decode the signal.

  • Can i turn down front left and right using ddts decoder with the g500

    hi want to get ddts 100 decoder for my gigaworks g500.when im watching a move i have to have it up on about 2.7 bars.to hear the center speaker then the action is to louad.i can turn down center and rear and sub but no front left and right.can you turn down front left and right using the decoder.do you still have to use the controll pod for the gigaworks if i had the decoder in or do u use the decoder to turn it up thanks plz help.

    System Preference > Accessibility
    Select   Mouse & Trackpad  in the left side box.
    Double-click speed 
    Make it slower by dragging the pointer to the left.
    Best.

  • Can the DDTS-100 be used on any speakers?

    Or just creative speakers?
    Thanks

    Hi,
    Firstly please check to see if your printer in the list:
    http://support.apple.com/kb/ht4356
    If YES, you can use this to fix
    iPad: http://www.apple.com/support/ipad/assistant/airprint/
    iPhone: http://www.apple.com/support/iphone/assistant/airprint/
    If NO you have to print using other apps (if applicable) such as:
       http://itunes.apple.com/au/app/hp-eprint-home-biz/id299531647?mt=8
    More info from this:
       http://h30434.www3.hp.com/t5/ePrint-Print-Apps-Mobile/Cloud-Services-Supported-Printers-ePrint-Airpr...
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Creative ddts-100 crackling with Optical In Use.

    . Hello, in the first time, sorry my english, i have some crackling issues like a lot of others users after a certain time when i use the optical in of the decoder. Since this trouble exist, are there any solutions other that power "off" and "on" the decoder ? because the trouble appears since the beggining and even after a come back in warranty to Creative support.
    Thanks for all responses, M Denis M.

    Anyone?

Maybe you are looking for

  • Is there a way to disable the power button when iPhone is lock with a pass code?

    This is for security reason as you can still track ur iPhone/iPad when someone decides to steal it. My iPad 2 64gb + 3G and a MacBook Pro 17 was recently stolen and I was able to track it 10-15 mins (after the incident) until the thieve(s) decided to

  • Many small probs with my K8N Neo

    Specs: K8N Neo Platinum w/ newest version of BIOS (I checked) 1 GB PC3200 Kingston RAM (2x512MB) ATI brand Radeon 9700 pro 128MB 60.0GB Maxtor 5400RPM HD 500w Viomax PSU (30A on +3.3V, 50A on +5V, 25A on 12V) No other PCI cards installed at the momen

  • Apple tv & LCD samsung screen flashes & no signal

    Just purchased apple tv tried connecting to samsung LCD 1080p-720p after connecting hdmi cable between tv & apple tv get a no signal message then a flashing screen that briefly displays apple tv menu. Have changed tv settings to reflect hdmi to dvi n

  • MeetingPlace Express emailing password

    Hi We are currently using version 2.1.1.2 MeetingPlace Express and have noticed that when the meeting notification email is sent out it doesn't give the meeting password, instead it just says Required. The email template has : <td colspan="1"><b>$not

  • Is it a DNS issue?

    Hi guys! Im experiencing some problems with opening some pages (facebook or youtube) with any broser on my iMac and the pages that i had the chance to open make me wait too long. I was living in Turkey and never had this issue. Today i moved to Bulga