Using the file protocol to read a URL from a DataSocket Link (DSL) file

Hey people,
The text of the message subject is almost directly lifted from the
LabVIEW help file. I'm currently a DataSocket server for communication
between a laptop and a Compact FieldPoint unit. My application is
currently functioning, but I'm searching for a way to easily change the
IP of the server without having to recompile the VI into a startup.exe
file.
The help file says it is possible to create a file (.dsl extension)
which contains the URL of the server, with the following format:-
[InternetShortcut]
URL=dstp://servername.com/tag
I have created such a file, but the help file refers to reading the URL
from the DSL file directly, which I'm not sure how to do. The examples
use hard-coded strings as their reference URLs, so no help there, and
as far as I can see the question has not been raised before on these
boards.
I am aware that I could probably use the File Open vis and manually
read the information contained within the file, but then it wouldn't
make sense to rename it to .dsl or to have any other text other than
the URL contained within.
Thanks for your replies.

Hey Lost And Found,
There is actually a great example on using .dsl files with DataSocket.  You can append "file:" to the beginning of the path of your .dsl file, and wire it directly into the "connection in" pin of the DS Read.  Check out the example here: http://digital.ni.com/public.nsf/websearch/FCC19AF27EFED9A5862569A500709C58?OpenDocument.  I think that it will provide everything you need and if not, just ask.
Hope this helps!
Megan B.
National Instruments

Similar Messages

  • How can I use the color adjustments interface that shows up for camera RAW on jpeg files?

    How can I use the color adjustments interface that shows up for camera raw on other files types? The HLS controls had the secondary color adjustments (6 colors instead of the 3). Plus, it had same vibrancy and a better Curves interface. Yesterday was the first time I imported raw into Photoshop CS5 and I got that really cool interface. What is that? Can I use that on other file formats?

    Actually I am using the Tradional Chinese Version, when I try to edit the jpg file with camera raw, the system shows that there is no camera raw plug-in. The cmaera raw never work.

  • Is it possible to send a text message using the UDP protocol?

    Support doc
    http://www.adobe.com/support/director/multiuser/using_udp/using_udp02.html
    says to use the following format with connectToNetServer:
    errCode =
    gMultiuserInstance.connectToNetServer([#remoteAddress:
    "chatServer.myCompany.com", #logonInfo: [#userID: "Bob",
    #password:
    "MySecret", #movieID: "Tech Chat"], #mode: #smus,
    #localUDPPort: 1627,
    #localAddress: "123.45.67.89", #remoteTCPPort: 1626])
    But if I change the mode to #text, it still sends out
    messages as smus.
    In fact, if I leave out the UDP parameters altogether but
    still use the
    list parameters for connectToNetServer, it still always sends
    as smus.
    Sends as smus:
    errCode =
    gMultiuserInstance.connectToNetServer([#remoteAddress:
    "chatServer.myCompany.com", #logonInfo: [#userID: "Bob",
    #password:
    "MySecret", #movieID: "Tech Chat"], #mode: #text,
    #localUDPPort: 1627,
    #localAddress: "123.45.67.89", #remoteTCPPort: 1626])
    Sends as smus:
    errCode =
    gMultiuserInstance.connectToNetServer([#remoteAddress:
    "chatServer.myCompany.com", #logonInfo: [#userID: "Bob",
    #password:
    "MySecret", #movieID: "Tech Chat"], #mode: #text])
    Only the string parameter method can be made to send text
    messages.
    Sends as text:
    errCode = gMultiuserInstance.connectToNetServer("Bob",
    "MySecret",
    "chatServer.myCompany.com", 1626, "Tech Chat", 1)
    Am I missing something? Is this a known issue? Anyone have a
    work around?
    -Jeremy

    Drat!
    Thanks for the answer though.
    alchemist wrote:
    > The multiuserXtra supports either tcp text or tcp smus
    connections.
    > The ability to send udp messages was an expansion to the
    original mus
    > protocol/xtra and is valid only for muXtra instances
    already connected in
    > smus mode.
    > So, if you are asking if you can create a udp instance
    and use it at will
    > (exchange udp messages with some remote udp socket),
    then the answer is no.
    >
    >
    > "Jeremy Aker" <[email protected]> wrote in message
    > news:[email protected]...
    >> I'm really sorry that I wasn't clear enough. I'll
    repeat the questions
    >> more concisely.
    >> Is it possible to send a text message using the UDP
    protocol? If so, how?
    >> Is the bug I described in my original message (see
    below) really a bug or
    >> am I doing something wrong?
    >> If it's a bug, does anyone have a work around?
    >>
    >> alchemist wrote:
    >>> And the question is?
    >>>
    >>> "Jeremy Aker" <[email protected]> wrote in
    message
    >>> news:[email protected]...
    >>>> Support doc
    >>>>
    http://www.adobe.com/support/director/multiuser/using_udp/using_udp02.html
    >>>> says to use the following format with
    connectToNetServer:
    >>>> errCode =
    gMultiuserInstance.connectToNetServer([#remoteAddress:
    >>>> "chatServer.myCompany.com", #logonInfo:
    [#userID: "Bob", #password:
    >>>> "MySecret", #movieID: "Tech Chat"], #mode:
    #smus, #localUDPPort: 1627,
    >>>> #localAddress: "123.45.67.89",
    #remoteTCPPort: 1626])
    >>>>
    >>>> But if I change the mode to #text, it still
    sends out messages as smus.
    >>>> In fact, if I leave out the UDP parameters
    altogether but still use the
    >>>> list parameters for connectToNetServer, it
    still always sends as smus.
    >>>>
    >>>> Sends as smus:
    >>>> errCode =
    gMultiuserInstance.connectToNetServer([#remoteAddress:
    >>>> "chatServer.myCompany.com", #logonInfo:
    [#userID: "Bob", #password:
    >>>> "MySecret", #movieID: "Tech Chat"], #mode:
    #text, #localUDPPort: 1627,
    >>>> #localAddress: "123.45.67.89",
    #remoteTCPPort: 1626])
    >>>>
    >>>> Sends as smus:
    >>>> errCode =
    gMultiuserInstance.connectToNetServer([#remoteAddress:
    >>>> "chatServer.myCompany.com", #logonInfo:
    [#userID: "Bob", #password:
    >>>> "MySecret", #movieID: "Tech Chat"], #mode:
    #text])
    >>>>
    >>>> Only the string parameter method can be made
    to send text messages.
    >>>> Sends as text:
    >>>> errCode =
    gMultiuserInstance.connectToNetServer("Bob", "MySecret",
    >>>> "chatServer.myCompany.com", 1626, "Tech
    Chat", 1)
    >>>>
    >>>> Am I missing something? Is this a known
    issue? Anyone have a work
    >>>> around?
    >>>>
    >>>> -Jeremy
    >

  • Web Proxying to a WebLogic Cluster using the HTTPS protocol

    Hi all,
    I am recently involved into JWS proxying to WebLogic Cluster.
    I don't have any technical problems at the moment but "conceptual" problems, that is:
    - my jws proxy server should connect to a WebLogic Cluster through a Bea plugin configured wish SSL parameters;
    - my jws proxy server should pass the incoming request using a load-balancing algorithm among the two nodes of the cluster, that are actually installed on two different machines;
    - the jws proxy server doesn't seem to accept multiple certificates.
    My question is: how can I configure my proxy plugin to route the incoming requests to my WebLogic Cluster using the https protocol? As a matter of fact, each certificate should be hostname dependent, and it looks like that the proxy plugin doesn't accept a multiple certificate configuration (and it should actually match the CN entry in the certificates with the actual hostnames of the nodes).
    Any hint?
    Thx a lot,
    Luca

    It is supported in 5.2
              - Prasad
              Wei Guan wrote:
              > As I knew of, secure proxying is not supported yet.
              > --
              > Cheers - Wei
              > Bob Kiep <[email protected]> wrote in message
              > news:8bvvc7$7uf$[email protected]..
              > > The NSAPI plugin cannot perform SSL proxying, as documented at the bottom
              > of
              > > this message (taken from
              > > http://www.weblogic.com/docs/admindocs/nsapi.html#background). When
              > > Weblogic is the proxy, can I do SSL? If someone could send me the link to
              > > where is states whether is SSL or not would be very helpful.
              > >
              > > "The plug-in is for an environment where NES serves static pages, and a
              > > Weblogic Server (operating in a different process, possibly on a different
              > > host) is delegated to serve dynamic pages (such as JSPs or pages generated
              > > by HTTP Servlets). The connection between WebLogic Server and the NSAPI
              > > plug-in is clear text http, not SSL. To the end user -- the browser -- the
              > > HTTP requests delegated to WebLogic appear to come from the same source as
              > > the static pages. In other words, WebLogic on the back-end is invisible.
              > > Additionally, the HTTP-tunneling facility of the WebLogic client-server
              > > protocol can operate through the plug-in, providing access to all WebLogic
              > > services (not just dynamic pages). "
              > >
              > >
              Cheers
              - Prasad
              

  • How to pass multiple query string values using the same parameter in Query String (URL) Filter Web Part

    Hi,
    I want to pass multiple query string values using the same parameter in Query String (URL) Filter Web Part like mentioned below:
    http://server/pages/Default.aspx?Title=Arup&Title=Ratan
    But it always return those items whose "Title" value is "Arup". It is not returned any items whose "Title" is "Ratan".
    I have followed the
    http://office.microsoft.com/en-us/sharepointserver/HA102509991033.aspx#1
    Please suggest me.
    Thanks | Arup
    THanks! Arup R(MCTS)
    SucCeSS DoEs NOT MatTer.

    Hi DH, sorry for not being clear.
    It works when I create the connection from that web part that you want to be connected with the Query String Filter Web part. So let's say you created a web part page. Then you could connect a parameterized Excel Workbook to an Excel Web Access Web Part
    (or a Performance Point Dashboard etc.) and you insert it into your page and add
    a Query String Filter Web Part . Then you can connect them by editing the Query String Filter Web Part but also by editing the Excel Web Access Web Part. And only when I created from the latter it worked
    with multiple values for one parameter. If you have any more questions let me know. See you, Ingo

  • My screen opened, and with every click the page (letters/images) got bigger. I can not get it to return to normal image size. I have to use the slide bar to read across the page. What do i do to correct it back to normal size???

    Question
    My screen opened, and with every click the page (letters/images) got bigger. I can not get it to return to normal image size. I have to use the slide bar to read across the page. What do i do to correct it back to normal size???

    Hi jholzworth,
    It sounds like you might have accidentally hit the zoom button. Try hitting ''CTRL + 0'' to return it to normal size. Just so you are aware, ''CTRL'' and ''+'' will zoom in and ''CTRL'' and ''-'' will zoom out.
    Hopefully this helps!

  • What is the 'quickest' way to read char data from a txt file

    Hello,
    What is the 'quickest' way to read character data from a txt file stored on the phone to be displayed into the screen?
    Regards

    To be even a bit more constructive...
    Since J2me does not have a BufferedInputStream, it will help to implement it yourself. It's much faster since you read large blocks at ones in stread of seperate chars.
    something line this lets you read lines very fast:
      while ( bytesread < filesize ) {
             length = configfile.read( buff, 0, buff.length );
             // append buffer to temp String
             if ( length < buff.length ) {
                byte[]  buf  = new byte[length];
                System.arraycopy( buff, 0, buf, 0, length );
                tmp.append( new String( buf ) );
             } else {
                tmp.append( new String( buff ) );
             // look in tmp string for \r\n
             idx1 = tmp.toString().indexOf( "\r\n" );
             while ( idx1 >= 0 ) {
                //if found, split into line and rest of tmp
                line = tmp.toString().substring( 0, idx1 );
             /// ... do with it whatever you want ... ////
                tmp = new StringBuffer( tmp.toString().substring( idx1 + 2 ) );
                idx1 = tmp.toString().indexOf( "\r\n" );
             bytesread += length;
          }

  • Opening PDF Files in Adobe Reader XI directly from SharePoint 2013 Site

    I am trying to open PDF files in Adobe Reader XI directly from a SharePoint 2013 document library using Internet Explorer 11. When I click the file name it immediately opens the file in Adobe Reader, however it is downloading and opening the file locally
    from the Temporary Internet Files location. If I add a comment to the PDF file, and save it will perform a Save As and the location will default to the temporary folder.
    If instead of clicking the file name, I click the ellipses in SharePoint, copy the file URL, and go to Adobe Reader, click File > Open and paste the link into the file name, Adobe Reader will correctly open the file directly from the SharePoint site and
    prompt for "Open and Checkout, Open, or Cancel".
    Is there a way to get it so that when I click the file in IE, I get the same functionality as a File > Open in Adobe Reader?
    Thanks in advance!

    Hi,
    According to your description, you want to open pdf file in the Adobe Reader directly from document library.
    I suggest you do as the followings:
    1. In SharePoint Central Administration site, click Application Management->Manage Web Applications, select the web application for the site. Click Authentication
    Providers, select default zone, and select Yes for "Enable Client Integration?".
    2. click Site Settings-> Site collection features->"Open Documents in Client Applications by Default" click Activate
    3. set the default open behavior for a document library by using the document library settings page.
    4. Enable the “Adobe Arcobat SharePoint OpenDocuments Component”add-on in the IE11.
    5. Add your current site URL to the trusted web sites in IE11.
    There is a similar threads for your reference:
    http://blog.mikehacker.net/2010/05/03/unable-to-open-pdf-directly-from-sharepoint-2010/
    Thanks,
    Wendy Li
    TechNet Community Support

  • HT2518 I USED THE MIGRATION ASSISTANT TO TRANSFER MY PHOTOS FROM A PC TO MY NEW MAC. HOWEVER, THE PHOTOS ARE NOT ORGANIZED AT ALL. DID I DO IT WRONG OR DO THEY JUST TRANSFER OVER IN A BIG BATCH INTO IPHOTO?

    I used the migration assistant to transfer my photos from PC to mac. The photos were not organized at all. They were in the all files section in my finder. I just clicked and drug the pics file to iphoto and the are just in there in a big bunch. Was there a way I could have had them transferred over in there folders from PC?

    The Apple Support Communities are an international user to user technical support forum. As a man from Mexico, Spanish is my native tongue. I do not speak English very well, however, I do write in English with the aid of the Mac OS X spelling and grammar checks. I also live in a culture perhaps very very different from your own. When offering advice in the ASC, my comments are not meant to be anything more than helpful and certainly not to be taken as insults.
    Do you know where the actual photo files are located on your laptop? If so, you can transfer them to the Mac over a LAN or by saving them to an external HDD, thumb drive or burning them to a disk. Then you can import the photos to the iPhoto app that came on your new Mac.
    It would be the same process for the videos, however, it would depend what type of video files they are, as to which Mac app might allow you to view them.
    BTW, since your Mac is new you need to Accept the iLife apps; iPhoto, GarageBand and iMovie into your Mac App Store/iTunes account. Open the MAS, sign into you account, go to the Purchased pane and accept the apps.

  • Since I upgraded to iOS 7.1.2, new Outlook calendar and contact items will not sync to/from my iOS devices - I am not using the iCloud, just sync'ing direct to/from laptop. Does anyone have a solution?

    Since I upgraded to iOS 7.1.2, new Outlook calendar and contact items will not sync to/from my iOS devices - I am not using the iCloud, just sync'ing direct to/from laptop. Neither direction seems to be working.
    Does anyone have a solution?

    Hello Happy-in-the-Mountains,
    Thanks for using Apple Support Communities.
    To troubleshoot this issue where you're unable to sync between your iPhone and Outlook, I'd like you to please follow the steps in the article linked to below.
    Troubleshooting Sync Services on Windows with Microsoft Outlook 2003, Outlook 2007, or Outlook 2010 - Apple Support
    Have a great weekend,
    Alex H.

  • How can I get the attributes details like user name, mail , from sAMAccount csv or notepad file through powershell or any other command in AD?

    How can I get the attributes details like user name, mail , from sAMAccount csv or notepad file through powershell or any other command in AD?

    Ok what about If i need to get all important attributes by comparing Email addresses from excel file and get all required answers
    currently I am trying to verify how many users Lines are missing , Emp numbers , Phones  from AD with HR list available to me.
    I am trying to Scan all the AD matching HR Excel sheet and want to search quickly how many accounts are active , Line Managers names , Phone numbers , locations , title , AD ID .
    these are fields I am interested to get in output file after scanning Excel file and geting reply from AD in another Excel or CSV file
    Name’tAccountName’tDescri ption’tEma I IAddress’tLastLogonoate’tManager’tTitle’tDepartmenttComp
    any’twhenCreatedtAcctEnabled’tGroups
    Name,SamAccountName,Description,EmailAddress,LastLogonDate,Manager,Title,Department,Company,whenCreated,Enabled,MemberOf | Sort-Object -Property Name
    Can you modify this script to help me out :)
    Hi,
    Depending on what attributes you want.
    Import-Module ActiveDirectory
    #From a txt file
    $USERS = Get-Content C:\Temp\USER-LIST.txt
    $USERS|Foreach{Get-ADUser $_ -Properties * |Select SAMAccountName, mail, XXXXX}|Export-CSV -Path C:\Temp\USERS-ATTRIBUTES.csv
    #or from a csv file
    $USERS = Import-CSV C:\Temp\USER-LIST.csv
    $USERS|Foreach{Get-ADUser $_.SAMAccountName -Properties * |Select SAMAccountName, mail, XXXXX}|Export-CSV -Path C:\Temp\USERS-ATTRIBUTES.csv
    Regards,
    Dear
    Gautam Ji<abbr class="affil"></abbr>
    Thanks for replying I tried both but it did not work for me instead this command which i extended generated nice results
    Get-ADUser -Filter * -Property * | Select-Object Name,Created,createTimeStamp,DistinguishedName,DisplayName,
    EmployeeID,EmployeeNumber,Enabled,HomeDirectory,LastBadPasswordAttempt,LastLogonDate,LogonWorkstations,City,Manager,MemberOf,MobilePhone,PasswordLastSet,BadLogonCount,pwdLastSet,SamAccountName,UserPrincipalName,whenCreated,whenChanged
    | Export-CSV Allusers.csv -NoTypeInformation -Encoding UTF8
    only one problem is that Manager column is generating this outcome rather showing exact name of the line Manager .
    CN=Mr XYZ ,OU=Users,OU=IT,OU=Departments,OU=Company ,DC=organization,DC=com,DC=tk

  • I bought the student and teacher version of CS5 extended for windows. Can I download the Mac version to my new  apple computer  and use the same serial number after removing phtoshop from my PC?

    i bought the student and teacher version of CS5 extended for windows. Can I download the Mac version to my new  apple computer  and use the same serial number after removing phtoshop from my PC?

    Can I download the Mac version to my new  apple computer  and use the same serial number after removing phtoshop from my PC?
    Short answer: not for CS5.
    Platform swaps are available but only for CS6
    Order product | Platform, language swap

  • Does Multithreading for file transfers work when using the WebDAV protocol?

    I am looking at recommending an upgrade from CS5.5 to CS6 for my job, but I am wondering if our server system will be able to use the multiple file upload and download feature new to CS6.  If this is not available for WebDAV then there is not much of a point on the Dreamweaver side for us to upgrade.
    Thanks

    From the documenation:
    http://help.adobe.com/en_US/dreamweaver/cs/using/WSc78c5058ca073340dcda9110b1f693f21-7eb4a .html
    "Background file transfer works for all of the transfer protocols supported by Dreamweaver: FTP, SFTP, LAN, WebDAV, Subversion, and RDS."
    Get the 30-Day trial to compare features.
    Nancy O.

  • When using the Database Connectivity Toolset, reads and writes with long binary fields are incompatible.

    I am trying to write LabVIEW Variants to long binary fields in a .mdb file using the Database Connectivity Toolset. I get errors when trying to convert the field back to a variant after reading it back from the database.
    I next tried flattening the variant before writing it and ultimately wound up doing the following experiments:
    1) If I use DB Tools Insert Data to write an ordinary string and read it back using a DB Tools Select Data, the string is converted from ASCII to Unicode.
    2) If I use DB Tools Create Parameterized Query to do an INSERT INTO or an UPDATE operation, specifying that the data is BINARY, then read it back using a DB Tools Select Data,
    the length of the string is prepended to the string itself as a big-endian four-byte integer.
    I can't think of any way to do a parameterized read, although the mechanism exists to return data via parameters.
    Presuming that this same problem affects Variants when they are written to the database and read back, I could see why I get an error. At least with flattened strings I have the option of discarding the length bytes from the beginning of the string.
    Am I missing something here?

    David,
    You've missed the point. When a data item is flattened to a string, the first four bytes of the string are expected to be the total length of the string in big-endian binary format. What is happening here is that preceding this four-byte length code is another copy of the same four bytes. If an ordinary string, "abcdefg" is used in place of the flattened data item, it will come back as <00><00><00><07>abcdefg. Here I've used to represent a byte in hexadecimal notation. This problem has nothing to do with flattening and unflattening data items. It has only to do with the data channel consisting of writing to and reading from the database.
    I am attaching three files that you can use to demonstrate the problem. The VI file c
    ontains an explanation of the problem and instructions for installing and operating the demonstration.
    Ron Martin
    Attachments:
    TestLongBinaryFields.vi ‏132 KB
    Sample.UDL ‏1 KB
    Sample.mdb ‏120 KB

  • Can I automate the creation of a cluster in LabView using the data structure created in an autogenerated .CSV, C header, or XML file?

    Can I automate the creation of a cluster in LabView using the data structure created in an auto generated .CSV, C header, or XML file?  I'm trying to take the data structure defined in one or more of those files listed and have LabView automatically create a cluster with identical structure and data types.  (Ideally, I would like to do this with a C header file only.)  Basically, I'm trying to avoid having to create the cluster by hand, as the number of cluster elements could be very large. I've looked into EasyXML and contacted the rep for the add-on.  Unfortunately, this capability has not been created yet.  Has anyone done something like this before? Thanks in advance for the help.  
    Message Edited by PhilipJoeP on 04-29-2009 04:54 PM
    Solved!
    Go to Solution.

    smercurio_fc wrote:
    Is this something you're trying to do at runtime? Clusters are fixed data structures so you can't change them programmatically. Or, are you just trying to create some typedef cluster controls so that you can use them for coding? What would your clusters basically look like? Perhaps another way of holding the information like an array of variants?
    You can try LabVIEW scripting, though be aware that this is not supported by NI. 
     Wow!  Thanks for the quick response!  We would use this cluster as a fixed data structure.  No need to change the structure during runtime.  The cluster would be a cluster of clusters with multiple levels.  There would be not pattern as to how deep these levels would go, or how many elements would be in each.   Here is the application.  I would like to be able to autocode a Simulink model file into a DLL.  The model DLL would accept a Simulink bus object of a certain data structure (bus of buses), pick out which elements of the bus is needed for the model calculation, and then pass the bus object.  I then will take the DLL file and use the DLL VI block to pass a cluster into the DLL block (with identical structure as the bus in Simulink).  To save time, I would like to auto generate the C header file using Simulink to define the bus structure and then have LabView read that header file and create the cluster automatically.   Right now I can do everything but the auto creation of the cluster.  I can manually build the cluster to match the Simulink model bus structure and it runs fine.  But this is only for an example model with a small structure.  Need to make the cluster creation automated so it can handle large structures with minimal brute force. Thanks!  

Maybe you are looking for