Parse fieldpoint IAK file -- get channel names and ranges?

Hello,
I am looking for a way to read the fieldpoint channel names in their real order (not sorted) _and_ their corresponding range settings from an IAK file. Hardware is a FP-1001 network module connected via RS485 and a handful of AI-110s and AO-210s.
Has anyone found a way to do so yet?
Tried the FP get configuration info VI without succes, it sorts the channel names alphabetically. Edited the VI (threw out the sort array funktion), but no success: Channels now are mixed in no sensible way (the documentation confirms this behavior).
For the ranges, I've looked at the optomux !E, but a) it needs a FP ressource connected (can't work offline this way), and b) I have no clue yet of how to match these ranges with the well-mixed channel names :-(
Maybe someone here can help?
Yours, sincerely,
Sebastian F. Kleinau

Hi,
Please take a look at the following knowledgebase:FP Get Configuration Info.vi Returns Values in a Different Order
I think this is what you are looking for.
Regards,
Timo

Similar Messages

  • Getting channel units and length from .dbc file

    Can any one help me out. I was wondering how to get Channel units and channel size from the CAN db file similarly like getting channel names from Get Channel Names by Id vi.
    Thank you,
    Shanth.

    can you pls guide me to use this vi for my application
    i want to read the dbc    using NI CAN 8473
    i am getting error
    Attachments:
    USBCANBasicInput.vi ‏43 KB

  • How to Get Channel Name in Adapter Engine Alerts

    Hi All,
    I am using 'Alrtcatdef' and 'Rules' in RWB to generate Adapater Engine Alerts. I am aware of the standard containers that are available to compose Alert Email content.
    Is there a way I can read the Channel Name(and NOT Adapter type i.e Idoc, File) that errors out, in the email content.
    Channel Name is the name of the channel I proivde in Integration Directory.
    Thanks,
    Xier

    The above requirement could have been done with custom alert container variables ..... but defining custom alert container seems not possible.
    Workaround:
    When you run a scenario we have a fixed set of channel(s).....sender (optional) and receiver ..... an error in the sender channel goes back to the sending application and hence XI support personnel is excluded from it.....so now what remains is the receiver channel.
    So if your requirement is to include channel name for one (or few) of the scenarios then include it in the Alert message that you set in the ALRTCATDEF ..... i.e. hard-code it ...... wont be a good approach if you have to implement the same logic for all the scenarios.....
    Suggested the above approach thinking it is not possible to build custom container ..... if there is a way to do it then please even let me know.
    Regards,
    Abhishek.

  • "File with specified name and version number already exists. Result code= -48."   ...????

    Recently I have been getting this error message when I try to record an audio track in Logic... "File with specified name and version number already exists. Result code = -48."  WHAT IS THE PROBLEM?????? It's making me furious!

    Hi
    As the message says, there is a file at the recording directory that has the same name:
    http://support.apple.com/kb/ht1618
    Try changing the name of the track (this sets the filename in later versions of Logic 9
    CCT

  • Manipulati​ng the outputs of the Get Channel Names.VI version 5.1

    Using the get Channel Name VI. I get two arrays. One array lists the channel names acquired from the measurement and automation utility and the second array lists the accompanied units of those channels. The problem is in the order of channels listed. The VI sorts the array by date the channel was created in the measurement and automation utility. When I resort the channels in alpha numberic order I want to keep the units associated with their correct channels. How can this be done. Or can the get channel names.vi be modified to sort alpha numberically while outputing the correct units associated with those channels.
    Attachments:
    getnames.vi ‏19 KB

    Here's something to try (Sort 2D array ala index and bundle cluster array):
    http://sine.ni.com/apps/we/niepd_web_display.DISPL​AY_EPD4?p_guid=B45EACE3EA4356A4E034080020E74861&p_​node=DZ52026&p_submitted=N&p_rank=&p_answer=&p_sou​rce=External
    You just need to remove the indexing portion and directly feed in the names to the upper terminal of the index/cluster array and units to the bottom.
    2006 Ultimate LabVIEW G-eek.

  • Get Attachment Name and from address of mail in bpel process

    Hi All,
    I am using UMS Adapter to poll email server and  getting the attachment and saving it to local disk.
    In Payload from UMS adapter  i am getting href of the attachment  but I am not able to figure out as to how to get Attachment Name and From Address of a mail in my Bpel process.
    please guide me in getting them .
    Thanks in Advance
    Divyanshu

    1. Double click on your composite receive activity.
    2. Go to Properties tab in your receive activity.
    3. Click "+".
    4. Window that pops up,scroll down and select "jca.ums.from" and store it in some variable say fromAddress (Make sure before adding this property u create fromAddress variable of string data type).
    5. Click OK.
    6. In the same way add property for "jca.ums.msg.content-description" from drop down and assing it to some variable.
    you are good to go.
    Hope this helps.
    Regards,
    Karan
    Oracle Fusion Middleware Blog

  • How can I find the specific channel name and modify channel name in automatically in VBS?

    How can I find the specific channel name and modify channel name in automatically in VBS? (DIAdem 9.1)
    I would like to change channel name = "speed01" ... "speed10"  to  channel name = "velocity01"..."velocity10.
    martino

    Hello Martino,
    this script will help:
    Option Explicit
    Dim i
    Dim n
    For i=1 To 10
    If i < 10 then
    n = CNo("speed0" & i)
    Else
    n = CNo("speed" & i)
    End If
    If n > 0 Then
    If i < 10 then
    ChnName(n) = "velocitiy0" & i
    Else
    ChnName(n) = "velocitiy" & i
    End If
    End If
    Next
    Matthias
    Matthias Alleweldt
    Project Engineer / Projektingenieur
    Twigeater?  

  • Running iTunes 11.0.3 64bit Windows 7. The "join Tracks" line has disappeared from the box that opens when you click "options" after inserting a CD. Only 2 lines show up: "Get track names" and "Submit CD Track names". Where did "Join Tracks" go?

    Running iTunes 11.0.3 64bit Windows 7. The "join Tracks" line has disappeared from the box that opens when you click "options" after inserting a CD. Only 2 lines show up: "Get track names" and "Submit CD Track names". Where did "Join Tracks" go?

    i have the same problem no radio stations at all bit shabby hate technolgy now adays

  • Get User Names and Mail Ids present in Exchange Server

    Hello All,
    Can we get all the names and mail ids present in the exchange Server global address book?
    I tried one example but it is giving error.
    Exception in thread "main" javax.naming.CommunicationException: [LDAP: error
                code 2 - Protocol Error]; remaining name 's=satheesh'
    Code is given below:
    Hashtable env = new Hashtable(11);
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
    env.put(Context.PROVIDER_URL, "ldap://mailserver:389");
    DirContext ctx = new InitialDirContext(env);
    Attributes answer = ctx.getAttributes("s=satheesh");
    Any example code to get user names and mail ids will be helpful.
    Thanks in advance.
    Regards,
    Satheesh A
    [email protected]

    Hi Satheesh,
    I am new to LDAP. I am facing the exact same problem as you mentioned. Did you solve your problem?
    Thanks for any help you can provide.
    Hello All,
    Can we get all the names and mail ids present in the
    exchange Server global address book?
    I tried one example but it is giving error.
    Exception in thread "main"
    read "main" javax.naming.CommunicationException:
    [LDAP: error
    code 2 - Protocol Error]; remaining name
    aining name 's=satheesh'
    Code is given below:
    Hashtable env = new Hashtable(11);
    env.put(Context.INITIAL_CONTEXT_FACTORY,
    "com.sun.jndi.ldap.LdapCtxFactory");
    env.put(Context.PROVIDER_URL,
    "ldap://mailserver:389");
    DirContext ctx = new InitialDirContext(env);
    Attributes answer = ctx.getAttributes("s=satheesh");
    Any example code to get user names and mail ids will
    be helpful.
    Thanks in advance.
    Regards,
    Satheesh A
    [email protected]

  • I using new ipad 32gb and i cant get user name and password how i configure it ? please give me solution

    im using new ipad 32gb and i cant get user name and password how i configure it ? please give me solution

    What do you mean 'can't get user name and password' ? What are you trying to do with your iPad and what happens when you do it ?

  • How do I get channel names written into a logged ascii file in Signal Express

    Hi there,
    This maybe a rookie question but I am a relative rookie to this software, and I hope it has an easy fix!
    Background:
    Take a load of analogue inputs from a DAQ device into Signal Express, first thing that hits me is that unlike labVIEW you cannot right click in the channel configuration window and change the name from say... Dev2_ai0 to Air Pressure? I feel that if this was possible then I would overcome my problem? anyway I can't so onwards...
    I goto the DAQmx Acquire window on the top left and can right click and rename the channel, which is great... however this does not translate to the logged data as I get the ai0 channel names across the top of the columns and not the names that I have put in.
    Is there anyway of getting data like the attached snippet?
    Many thanks for your help in advance.
    Neil Barker, Redbull Technology.
    Attachments:
    Channel names.gif ‏4 KB

    Hi Dan,
    Thanks for the reply, that has certainly fixed my issue as I wasn't expanding the channel and selecting the channel that I had renamed.
    One last thing though:
    I now not only get the individual channel name but the prefix for the DAQmx Aquire, for instance I get the Input of Braketest and then the channels under the input data.
    It looks a bit like this....
    Braketest - Front Pres
    Braketest - Rear Pres
    Braketest - FR Temp
    Braketest - FL Temp
    etc etc...
    Now all of the channel names at the top of the columns have this long name. Can this be rectified? can I remove the "Braketest" bit?
    By the way I am saving it as an ASCII so that I can read it in excel.
    Many thanks, Neil.

  • Q: Parsing an IAK file in LabVIEW

    Hello,
    I am looking for a way to read the fieldpoint channel names in their real order (not sorted) _and_ their corresponding range settings from an IAK file. Hardware is a FP-1001 network module connected via RS485 and a handful of AI-110s and AO-210s.
    Has anyone found a way to do so yet?
    Tried the FP get configuration info VI without succes, it sorts the channel names alphabetically. Edited the VI (threw out the sort array funktion), but no success: Channels now are mixed in no sensible way (the documentation confirms this behavior).
    For the ranges, I've looked at the optomux !E, but a) it needs a FP ressource connected (can't work offline this way), and b) I have no clue yet of how to match these ranges with the well-mixed channel names :-(
    Maybe someone here can help?
    Yours, sincerely,
    Sebastian F. Kleinau

    I don't think that the ActiveX control exposes the
    necessary methods and properties to be able to read the range of
    FP-items. But there is another way to do that:
    You can use Logos to get the info you need. You use the Datasocket
    Read.vi in LabVIEW and use the Logos connection URL (ex.
    lookout:\\10.0.34.183\FP\1TC\00\ConfiguredRange) to get the data. If
    you have LabVIEW 7.0 or later it is even easier... Follow these step-by-step
    instructions:
    1) Open a new VI and place a Numeric Indicator on the front panel
    2) Right click on the Numeric Indicator and select "Data Operations >> Datasocket Connection"
    3) Click the "Browse" button and select "Browse Measurement Data"
    4) Type in the IP address of the FP controller and press the "Refresh" button
    5) Navigate to the Attribute you are intersted in (ex. FP>>1TC>>00>>Attributes>>ThermocoupleType)
    and press the "OK" button
    6) Click the "Attach" button
    7) This will allow Datasocket to read from the location specified (ex.
    lookout:\\10.0.34.183\FP\1TC\00\Attributes\Thermoc​oupletype) and
    populate that data into the Numeric Indicator.
    8) I found I needed to put a while loop around the indicator with a
    loop delay and stop button to get any good data out.
    *** The data you get back will be the code for the values... You will
    have to just experiment to see what value means which attribute.
    However, this will allow you to get the data. You can also cut and
    paste the URL you get from steps 1-5 into the URL input of a Datasocket
    Read.vi instead of using the Datasocket attach shortcut I do here...
    Best regards,
    Jochen Klier
    National Instruments Germany
    Message Edited by Jochen on 09-02-2005 08:34 AM

  • Getting Asset Name and ID using postgreSQL command line

    Hi,
    I`m excited by the possibility of getting/putting Annotations from/to FCSvr from command:
    /Library/Application\ Support/Final\ Cut\ Server/Final\ Cut\ Server.bundle/Contents/Resources/sbin/fcsvr_run psql px pxdb -c "select * from pxtcmdvalue;"
    Using grep and awk (print) it`s possible to extract individual fields. But first I need to identify
    Assets Names with Assets ID`s.
    Anyone know how to get from command line an asset name from ID and vice versa?
    In other words: If I grep for the ID and awk for the 3, 4, and 5 column I can extract TCIN, TCOUT and the Annotations from that Asset ID. But I want to know what Asset is and write to a text file with the asset name and not the asset ID.
    The syntax would be more or less like this:
    For each ID on the pxtcmdvalue (first column is entityID) get from FCSvr (or from db) the AssetName the columns with TCIN, TCOUT and Value of Annotations. Put (append if more than one entries) this on a tabulated text file named after AssetName.
    I`m sorry for not being so "program write" like, but I try! ahaah
    Thanks!

    Hey guys,
    Thank you very much for all this help! Especially fbm! Thanks a lot!
    Regarding inserting into annotation I could manage to do that , as I`ve said, I`m stubborn! hehehehe
    with this command you can insert an annotation (ONE with each command) into a clip:
    /Library/Application\ Support/Final\ Cut\ Server/Final\ Cut\ Server.bundle/Contents/Resources/sbin/fcsvr_run psql px pxdb -c "INSERT INTO pxtcmdvalue VALUES (72, 1527, '00:35:41;09/(30000,1001)', '00:36:28;24/(30000,1001)', 'if works I`ll be very happy!', 1, '2009-03-15 19:31:15.839795-03');"
    Of course, remembering to change all things inside single quotes.
    The only catch is that you`ll have to know the entityid for the asset in question. Of course, looking into fbm post above it`s possible to "translate" the entityid into the ASSETID, but I don`t know how to parse this inside the parentheses. Maybe letting the "72" (in my case) entityid as "entityid" and outside the parentheses translating with INNER JOIN???
    We`re almost there!! I`m glad that this is here, opened to every one that wants to adventure into FCSRV "dark" side!
    Just remember, this is NOT supported by APPLE! I`m testing this on a test FCSRV installed on a mini (yes I could "hack" into the "detecting hardware" and disable to manage to install).
    Just one more thing: I`ve read somewhere that the pxatommap table has ALL that FCSRV could provide (and of course yours custom md). I`m trying to get ALL this fields to each asset. I`ve tried the command:
    /Library/Application\ Support/Final\ Cut\ Server/Final\ Cut\ Server.bundle/Contents/Resources/sbin/fcsvr_run psql px pxdb -c "SELECT * FROM pxatommap INNER JOIN pxmdvalue ON pxatommap.id = pxmdvalue.fieldid"
    But it`s very messy and it`s not for one asset.
    Thanks again you all that took the time to post to help others like me!
    Regards!

  • Help, Ni-Daq channel names and labview program error 10001?

    Can anyone please help me, I have inherited a role that I know nothing about. I have managed to get an NT pc to now recognise the SC-2345 board, set up and configure two channels and test them in Measurement and Automation program, this I managed after getting error 10401 and looking within these message boards which are very good.
    I have then started a labview program, previously written by ex-employee, and now get error 10001, after trawling the FAQ and forums I think that I have a naming error in the virtual channels created, how do I find out what the channels should be named within the Labview program, do I need to load an editor etc and then open a config file?
    Sorry if this seams like a simple error, but I am trying to learn the software from a book that is a little tattered.
    Regards

    Hi,
      error 10001 can be caused by a few things including an incorrect scanning order.
    If you'd like to post your code back onto here (or if it's large, ftp it to ftp.ni.com/incoming and let use know the name of the zip file you've packaged it into), then we can see what the DAQ section is supposed to be doing and hopefully provide some clues as to where to look for the information / why the error is occuring.
    The first thing to do is go back to Measurement and Automation explorer and try setting up a global task that refers to the channels you're interested in.
    This removes the programming side of things, since you select from drop down lists, to verify that you can communicate correctly with the hardware at the rates and across the channels that you want.
    These links is going to be your best learning point for getting up an running with the program.
    http://digital.ni.com/public.nsf/allkb/DD52ABD7C15F0B15862562910074F09E
    http://zone.ni.com/devzone/cda/tut/p/id/3116
    http://zone.ni.com/devzone/cda/tut/p/id/4656
    In terms of LabVIEW, there's several I/O controls you can use which will list the hardware channels you have configured or the global tasks you have created in Measurement and Automation explorer. (see the last link above)
    Another option is to look at our Alliance Partners if you need things configured and up and running in a hurry.
    http://www.ni.com/alliance
    If you just need a little pointer on getting kicked off, then you could see if you local sales engineer is available to go through things with you for an hour if they're in your area at a convenient time (for the UK / Ireland, please call in on 01635 572410 and ask to go through to sales), or we do offer start-up assistance (but that's something you need to purchase) to get a day's onsite assistance with getting your hardware up and running and starting you off with advice / examples on your application (note this is an effort based thing rather than a results based guarantee)
    Finally you could consider coming on one of our courses on LabVIEW and / or Data Acquisition to learn more about the software / hardware and be better prepared to handle the implementation yourself.
    Hope that helps
    Sacha Emery
    National Instruments (UK)
    Message Edited by SachaE on 03-23-2007 11:49 AM
    // it takes almost no time to rate an answer

  • How to get the name and the path of the font used in photoshop (not textItem.font)

    I'm trying to get the real name of the font and the path, is there a "easy" way to do it ?
    i need to get the font file (*.ttf or *.otf) and copy to the same directory as the psd file, that's why textItem.font doen't work for me.
    thanks in advance

    You could try this as it looks as if you are using Windows.
    Run the VBS script to create a fontlist file on the desktop.
    Then run the javaScript on the PSD document.
    It should copy the fonts to the same folder as the document, it will also create a text file with a list of fonts.
    It didn't find all the fonts in my test psd maybe because it wasn't in the windows/font folder?
    VBS.
    Set wshShell = WScript.CreateObject("WScript.Shell")
    Set wshSysEnv = wshShell.Environment("PROCESS")
    sMyFile = "c:" & wshSysEnv("HOMEPATH") & "\Desktop\Fontlist.txt"
    Dim objFileSystem, objOutputFile
    Dim strOutputFile
    Set objFileSystem = CreateObject("Scripting.fileSystemObject")
    Set objOutputFile = objFileSystem.CreateTextFile(sMyFile, TRUE)
    Dim str
    Const HKEY_LOCAL_MACHINE = &H80000002
    strComputer = "."
    Set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _
    strComputer & "\root\default:StdRegProv")
    strKeyPath = "Software\Microsoft\Windows NT\CurrentVersion\Fonts"
    objReg.EnumValues HKEY_LOCAL_MACHINE, _
    strKeyPath,arrEntryNames,arrEntryZZZ
    For Each entry in arrEntryNames
    str = wshshell.RegRead("HKLM\Software\Microsoft\Windows NT\CurrentVersion\Fonts\" & entry)
           objOutputFile.WriteLine(entry & "," & str)
    Next
    objOutputFile.Close
    javaScript.
    #target photoshop;
    app.bringToFront();
    main();
    function main(){
    if(!documents.length) return;
    try{
    var Path = activeDocument.path;
    }catch(e){
        alert("This document needs to be saved before running this script!");
        return;
    var FontFile = File(Folder.desktop + "/FontList.txt");
    if(!FontFile.exists){
        alert("You need to run the vbs script first to create the FontList file!");
        return;
    var FontList = new Array();
        FontFile.open('r') ;
    while(!FontFile.eof){  
       strInputLine =FontFile.readln();
       if (strInputLine.length > 3) inputArray  = strInputLine.split(",");
       if(inputArray.length == 2) FontList.push([[inputArray[0]],[inputArray[1]]]);
    FontFile.close();
    var PSDtextLayers = getNamesPlusIDs();
    PSDtextLayers = UniqueSortedList(PSDtextLayers);
    for(var a in PSDtextLayers){
        for(var f in FontList){
             var rex = new RegExp;
             rex = PSDtextLayers[a].toString();
            if(FontList[f][1].toString().match(rex,"i")){
                var From = new File("/c/windows/fonts/" + FontList[f][1].toString());
                var To = new File(Path + "/"+  FontList[f][1].toString());
                From.copy(To);
                break;
    var rFonts = new File(Path + "/required Fonts.txt");
    rFonts.open('w');
    rFonts.write(PSDtextLayers.join('\n'));
    rFonts.close();
    function UniqueSortedList(ArrayName){
    var unduped = new Object;
    for (var i = 0; i < ArrayName.length; i++) {  
    unduped[ArrayName[i]] = ArrayName[i];
    var uniques = new Array;for (var k in unduped) {
       uniques.push(unduped[k]);}
    return uniques;
    function getNamesPlusIDs(){
       var ref = new ActionReference();
       ref.putProperty( charIDToTypeID( "Prpr" ), charIDToTypeID( 'NmbL' ));
       ref.putEnumerated( charIDToTypeID('Dcmn'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
       var count = executeActionGet(ref).getInteger(charIDToTypeID('NmbL')) +1;
       var Names=[];
    try{
        activeDocument.backgroundLayer;
    var i = 0; }catch(e){ var i = 1; };
       for(i;i<count;i++){
           if(i == 0) continue;
            ref = new ActionReference();
            ref.putIndex( charIDToTypeID( 'Lyr ' ), i );
            var desc = executeActionGet(ref);
            var layerName = desc.getString(charIDToTypeID( 'Nm  ' ));
            var Id = desc.getInteger(stringIDToTypeID( 'layerID' ));
            if(layerName.match(/^<\/Layer group/) ) continue;
            if (desc.hasKey(stringIDToTypeID('textKey'))){
                desc = desc.getObjectValue(stringIDToTypeID('textKey'));
                desc = desc.getList(stringIDToTypeID('textStyleRange')).getObjectValue(0).getObjectValue(stringIDToTypeID('textStyle'));
                var postScriptName = desc.getString( stringIDToTypeID('fontPostScriptName'));     
    Names.push(postScriptName);
    return Names;

Maybe you are looking for

  • Defaulting the new Indian Rupee symbol in Numbers

    In Numbers, when I choose Indian Rupee as currency in cell format, I am still getting the old Rupee symbol. When I try to change the symbol to the new one, the cell format is getting changed as text.  How do I default the new Rupee symbol in cell for

  • How long is the power cable?

    I'd like to know how far away from a power socket can I place this camera? 

  • Help !!! Homogeneous system copy hold on step: Create Database

    Group, we use homogeneous system copy to install PRD system. The system hold on step : create databse. When we check the server and found the data library has been restored from tape. The installation just hold on the step and can't going on.  And th

  • 8i password lost.

    Dear all, We have oracle 8i database. we dont have remember the system or sys password for dateabase . can you please tel me hove to change password of database. SRVMGRL is not working but SVRMGRL30 is working. how can i resolve this problem. Regards

  • Creation of pooled capacity

    Hi all, I would like to create a new pooled capacity for resource X. Please help me how to proceed? Is there any place in customizing where we need to maintain it? Or do we need to configure it?Please provide me the steps. Thanks in advance Regards A