Multiple writes possible in DS in labview but not in CVI?

Hi
Am using Datasocket to communicate between to VI's, In one of the VI's am opening a new dataitem in "readwrite" mode and doing both read and write operation, and in the other VI am just writing on the dataitem by supplying the URL to the write function, surprisingly this is possible even though i havent created the dataitem from DS manager and have not selected the option of "allow multiple writes".
But if am creating a CVI application, which opens the dataitem in "readwrite" mode, and if i write on that dataitem from labview, it gives me an error, i even tried selecting the "allow multiple write" on this dataitem.
Please suggest some solution. Also if i open a lot of Dataitems will it cause any problems?, i guess our project needs atleast 100 dataitems if i will have to use command and response in different dataitems.
thanx for the help
Arun

Hello,
The following Knowledge Base describes two possible soltions for this issue.
Why Does My DataSocket Connection in LabVIEW Fail with "Error: Can't connect to data item, another w...
The second solution is what you have already described with checking the box to Allow Multiple Writers. I am not sure why that is not working in your case, but I would suggest trying the first soltuion suggested in the KB. It involves creating the datasocket item a certain way in LabVIEW, and more details are available in the KB.
Scott Y
NI

Similar Messages

  • Vi works in LabVIEW, but not when executed by TestStand.

    Hi everybody.  I'm using LabVIEW 8 with the Sound and Vibration
    Toolkit, and TestStand2.  I am planning on using TestStand to
    execute a series of performance tests on an audio processing
    board.  When run independently, the vi (which I have attached
    here) runs correctly, and returns a value for the parameter being
    tested.  In this case it is SNR.
    However, when executed by TestStand, the vi seems to run correctly, but
    returns a value of "NaN".  This causes TestStand to fail the test.
    Does anybody know what is going on here?  I've checked FAQs and
    help files, etc...  Why would the vi work on its own but not in
    TestStand?
    Thanks.
    Brett Gildersleeve
    Attachments:
    SingleChannelSNR.vi ‏173 KB
    Test Sequence.seq ‏15 KB

    Hi Ray,  Thanks for the reply.
    Basically, when I run the VI on its own, I see the SNR value appearing
    both in the SNR indicator and in the Test Data Out cluster under
    Numeric Measurement.  The rest of the indicators are empty
    (string, report text, status, code, source).  My waveform graph
    shows an FFT of the signal.
    However, when running the exact same VI through TestStand, I get NaN as
    the output.  The FFT of the signal is NOT displayed in the
    waveform graph...  strange.  No errors are received.
    In order to make it easier to debug, I replaced all of the analysis functions
    with functions included in LabVIEW 8.  Now everybody should be
    able to run it.  I do a simple THD test this time around.  With the VI running
    on its own, I get a value of 1.8 as the THD and the Numeric Measurement of Test Data
    Out.  However, whenever running the test with TestStand, I get a
    value of NaN.
    Same problem.
    Any suggestions?
    By the way, what exactly do you mean by "wiring
    up the Error cluster and feed in to the Error Out."?  I'd
    like to try it out, but I'm not sure exactly what you mean.  I
    already have the Error out cluster wired up, I think.
    Message Edited by TheSleeve on 05-22-2006 12:12 PM
    Attachments:
    SingleChannelTHD.vi ‏159 KB
    Test Sequence2.seq ‏15 KB

  • Formatting of a chart works on a vi in labview but not with the same program as a .exe

    I am trying to make a labVIEW program into an exe using the application builder. I have managed to fix the other problems I encountered but there is one that I cant figure out. On the main screen of my program there is a chart with a drop down menu that displays different information. There is a subVI that I made to change the size and number of columns of the chart depending on the item chosen in the drop down menu. This seems to work fine in the program when run using labVIEW, but once I made it into a .exe file, the width and number of colums seems to have defaulted and will not change for each item chosen in the drop down menu as it did before. I am sure that I included the vi
    that controls this, but i cant seem to get it to work with the program as an exe.

    I cant find the runtime menu file. Maybe I explained my problem incorrectly. I am not using a runtime menu, I am using a menu ring. . .if there is any difference. I am attaching an example of what I suspect is causing the problem in my program. If you still think I need to include the runtime menu file, can you tell me where I can find it?
    Attachments:
    table_example.vi ‏52 KB
    table_formatting.vi ‏117 KB

  • Is it possible to Authorize to play, but not to purchase?

    I have a shared computers in some of the labs and don't mind folks listening to my purchased iTunes music, but don't want random elements to be able to purchase things from iTunes with my account name and password (and stored credit card number!!!). Is it possible to authorize playing, but not purchase? different passwords maybe?
    several   Windows XP   Mac and PC
    several   Windows XP   Mac and PC

    Just log off from your iTMS account after purchasing - that will leave your computer authorized for playing, but for purchases there is the need to enter your ID + PW.

  • I have multiple devices, I can share itunes music but not my apple apps.

    I have an imac, ipad and three iphone 5s.  I can share my itunes music but not my apps.  All three iphones have separate Apple id's.  Thanks

    Mac OS applications cannot run on iOS (or vice versa). If there is an iOS version of the same app available, use it for your iDevices.

  • Is it possible to reinstall the OSX but not erasing the existing documents?

    Is it possible to reinstall the system from my system install disk but keeping(not erasing) the existing documents,programs and other files which are created and saved so far in my MacHD?
    My Mac is MacBookPro OSX 10.6
    Thank you all in advance!

    Yes, I did too the first time. These improvements creep up on us.
    Stephanie, I just responded to another posting of yours with a Time Machine question. Multiple postings divert resources and you may end up with contradictory information.
    An install from the (grey) 10.6 disk will not erase your data. However, if you are using a TM backup that will write over everything and current data will be lost.
    As I understand your two posts, I suggest install the operating system from the 10.6 disk.
    Copy what data you can to your external hard disk.
    Restore from the TM backup.
    A restore from the Time Machine backup as I say will delete everything you have and replace it with the backup you select (depends on date). You can then transfer any files you copied to the hard disk if these are needed.

  • Pathetic Apple TV - no home sharing possible? Can connect mac but not ipad or iphone?

    Pathetic apple tv cannot do mirror airplay with iphone and ipad , which was possible before ???
    Miserable apple tv is not able to do home sharing and has frustrated me millions of times with turn on already on home sharing??
    And some of times it will start to have home sharing but slow or unable to play home sharing contents???
    Any chance I can replace or return this waste of money apple tv???
    APPLE SUPPORT STAFF SHAME ON YOU I READ THREADS AND THREADS AND NO SOLUTION POSTED OR QUESTION ANSWERED AT ALL

    this is a user helping user forum
    we are users like you not apple support staff
    use feedback if you want apple directly
    http://www.apple.com/feedback/appletv.html
    home sharing is appletv being able to access media from the shared lib of a computer with itunes
    airplay is using appletv as audio and or video output for ios and osx devices which support airplay
    what is it that you have problems with you seem to mix the terms

  • Do you use LabVIEW but not apply for the beta?

    Greetings,
    Do you make use of some portion of the LabVIEW platform but never sign up for a LabVIEW beta?  Please post here and let me know:
    What portions of the platform do you use? (LabVIEW only, RT, FPGA, DSC, etc.)
    Why do you not apply to be included in a beta?
    I'm not promising that anything will change as a result of your answer but...who knows?
    Regards,
    Robert

    Thoric wrote:
    I've used LabVIEW from V5, and also support a large number of applications so I've had a go at most of the toolkits (FPGA, RT, PDA)
    At work there's absolutely no opportunity to play around with BETA versions, there's too much risk involved given it's not a verified release. I'd play around with it at home, but I mainly use Linux (SUSE) and to be honest I have better things to do. As much as I love LabVIEW, my kids come first 
    Amen to that,
    I try to participate in al LabVIEW Betas. But I mostly do it to see if the new version fixed some of the reported bugs that have given grief in the earlier versions. Although I do not have much time to spend on beta testing but I do try.
    Joe.
    "NOTHING IS EVER EASY"

  • Is there possible to edit JTree cell but not by double click?

    Hi,
    I looked for few hours to solve that problem but couldnt find a good solution. I have JTree component a simple model, when I click on some button I would like to add a new item to my model and immidiately display editor in JTree's cell when new item was added to enter its custom unique name. Does an one know how to fire edit mode for cell?
    thanx and regards
    Adam

    The discussion in this thread from last week should get you started.
    [How can I add a node with with a user-chosen name to JTree in one action|http://forums.sun.com/thread.jspa?threadID=5325551]
    db

  • Noise pickup in Labview but not in MAX?

    Hello,
    I'm having some problems with picking up what i assume are noise peaks while running labview VI's. These peaks are not present when i look at MAX... only through labview. For example, i get periodic peaks of +- 2 degrees in a simple TC VI. Same thing occurs with other VI's i have created. Could i be missing something in my programming, or is it simply a physical connection somewhere?
    Thanks,
    Mike

    Mike,
    Are you using the same data acquisition rate? It is hard to see how it could be a physical connection if you are sure you are using the same analog input channel. Is the input configuration the same (Differential, RSE, or NRSE)?
    Allen

  • Is it possible to transform a Paint but not the Shape it fills?

    Is it possible to apply a transform (i.e., AffineTransform) to the Paint that is used to fill a Shape, without applying the transform to the Shape itself? I don't see a way to do that.
    I.e., when the Graphics2D transform is modified, it applies to both the Shape being filled and to the Paint that fills it. I would like a way of leaving the Shape alone, while still rotating or scaling the Paint effect within it.
    Thanks for any ideas!

    You do the transform on an image, then clip that according to the shape, then use that clip for the fill, or make a mask of the shape and have a transparency for the shape--over lay that onto your image that has been transformed. In any case you have to have discrete objects--an image and a shape, not an image with a shape in it already.

  • How to remote desktop user can read, write ,modify and traverse folder but not execute?

    Now I ceate a user accout whis is user type and put him into remote desktop group.
    he can login this server by remote desktop.
    My server is windows 2003 but not in nt domain and  it is a workgroup computer.
    I want to limit him access right on one folder in which have many folders and .exe file.
    I only want he can read , write,modify file and traverse folder but not execute any .exe file.
    How can I implement this through NTFS.
    Please give me some advice.

    Hi,
    I think you could using advanced option to configure the file or folder permission:
    http://technet.microsoft.com/en-us/library/bb727008.aspx
    Regards.
    Vivian Wang

  • Command Tilde works in most apps but not Safari or Preview

    Hi
    The Command-Tilde command (window-switching) works in most of my applications (Chrome, Firefox, jEdit, Finder, Terminal, Xcode(sometimes), etc.)  However,the command-tilde does not work in Safari or Preview.  Is there a way to fix this?  I find it quite annoying and have not been able to find a solution.  I have tried resetting the System Preferences shortcut and that did not work.  Uninstalling/Reinstalling Safari & Preview does not seem to be an option.  I am not willing to reinstall Lion unless absolutely necessary.

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins and log in as Guest. For instructions, launch the System Preferences application, select Help from the menu bar, and enter “Set up a guest account” (without the quotes) in the search box.
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    As Guest, test. Same problem(s)?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. The instructions provided by Apple are as follows:
    Be sure your Mac is shut down.
    Press the power button.
    Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
    Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on some Macs.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem(s)?
    After testing, reboot as usual (i.e., not in safe mode.) Post the results of steps 1 and 2.

  • Mac Pro 8 core - great, but not great... Any ideas please?

    Hi Guys,
    Firstly, let me say I'm Apple Certified in FCP so I'm not a newbie, however I am having a hard time coming to terms with my current situation.
    My G5 Quad appeared to be struggling on some basic (3 layers of text) real time stuff in PAL DV, and I was lucky enough to be able to upgrade to a Mac Pro 8 core 3.0GHz last week. "That will sort my stuttering problems" I thought...
    No it doesn't. Any new basic text (Boris) or any dissolve makes the playback jump, possibly worse than the G5 did. Aaaaargh! Anyone got any ideas why this shouldn't play back a dream?
    Also, does anyone know why the Blackmagic never appears as an option in the Effect Handling section of System Settings?
    Hope you can all help soon.
    p.s. I have not got any media on my startup disk, and the second disk is almost empty...

    Assuming your Scratch Disk is on the 2nd drive inside the Mac Pro, then let's see if that drive might be under-performing. Download Kona system Test v3 from http://www.aja.com/html/supportkona3swd.html and install it.
    Run the test on both drives, using the largest file size. Please report back on the read & write numbers you get on each drive.
    BTW, journaling should make no discernible difference on a SATA 3Gbps hard drive, and you most definitely SHOULD enable journaling on your boot volume. It doesn't matter either way for the media drive, but if you do not enable journaling for the boot volume, it will bite you in the butt someday. Trust me on that.
    Besides, journaling takes zero action on a disk read, which is what you are having problems with. It takes a tiny bit of time for the write heads to write the data to the journal, but not enough to make any real difference for your extremely speedy Mac Pro. The location of the journal file is on the outermost tracks on the platters, the fastest ones.

  • In FormView Pager Template shown in design page but not shown in runtime.....

    //////////////////////MY TABLE//////////////////
    USE [logistics_tab]
    GO
    /****** Object:  Table [dbo].[dtype]    Script Date: 02/07/2015 10:19:00 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    SET ANSI_PADDING ON
    GO
    CREATE TABLE [dbo].[dtype](
    [dtid] [int] IDENTITY(1,1) NOT NULL,
    [dtcd] [char](5) NOT NULL,
    [desp] [char](15) NOT NULL,
     CONSTRAINT [PK_dtype] PRIMARY KEY CLUSTERED 
    [dtid] ASC
    )WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY],
     CONSTRAINT [Uq_dtcd_Dtype] UNIQUE NONCLUSTERED 
    [dtcd] ASC
    )WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
    ) ON [PRIMARY]
    GO
    SET ANSI_PADDING OFF
    GO
    ////////////MY STORED PROCEDURE/////////////////////
    USE [logistics_tab]
    GO
    /****** Object:  StoredProcedure [dbo].[dtype_pro]    Script Date: 02/07/2015 10:21:42 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE PROCEDURE [dbo].[dtype_pro]
    @dtid as int=0,
    @dtcd as char(5)='',
    @desp as char(15)='',
    @status as varchar(50)=''
    AS
    BEGIN
    SET NOCOUNT ON;
    if(@status = 'Display')
    begin
    Select * from dtype
    end
    else if(@status = 'Add')
    begin
    Insert into dtype(dtcd,desp) values (@dtcd,@desp)
    end
    else if(@status = 'Update')
    begin
    Update dtype set dtcd=@dtcd, desp=@desp where dtid=@dtid
    end
    else if(@status = 'Delete')
    begin
    Delete from dtype where dtid=@dtid
    end
    END
    GO
    //////////MY DESIGN PAGE/////////////
    <%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="DestnType.aspx.cs" Inherits="LogisticsApp.DestnType" %>
    <asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    </asp:Content>
    <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:FormView ID="FormView1" runat="server" DataKeyNames= "dtid" GridLines="Both" 
            AllowPaging="True" PagerStyle-BorderStyle="NotSet" PagerStyle-ForeColor="Black">
            <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
            <PagerStyle BackColor="#B5C7DE" ForeColor="Black" HorizontalAlign="Center" Font-Bold="true" Font-Size="Large"/>
            <ItemTemplate>
                      <table>
                        <tr><td align="right"><b>Employee ID:</b></td><td><%# Eval("dtid") %></td></tr>
                        <tr>
                          <td colspan="2">
                            <asp:LinkButton ID="EditButton"
                                            Text="Edit"
                                            CommandName="Edit"
                                            RunAt="server"/>
                              &nbsp;
                            <asp:LinkButton ID="NewButton"
                                            Text="New"
                                            CommandName="New"
                                            RunAt="server"/>
                              &nbsp;
                            <asp:LinkButton ID="DeleteButton"
                                            Text="Delete"
                                            CommandName="Delete"
                                            RunAt="server"/>
                          </td>
                        </tr>
                      </table>                 
                    </ItemTemplate>
                    <PagerTemplate>
                    <table>
                        <tr>
                          <td><asp:Button ID="FirstButton1" CommandName="Page" CommandArgument="First" 
                          Text="<1<" RunAt="server" Font-Bold="True" />&nbsp;</td>
                          </tr>
                      </table>
                    </PagerTemplate>
    </asp:FormView>
    </asp:Content>
     ///////MY CODE///////////
        using System;
        using System.Collections.Generic;
        using System.Linq;
        using System.Web;
        using System.Web.UI;
        using System.Web.UI.WebControls;
        using System.Configuration;
        using System.Data;
        using System.Data.SqlClient;
        using System.Text.RegularExpressions;
        namespace LogisticsApp
            public partial class DestnType : System.Web.UI.Page
                public LogisticsApp.MyConnection.OfcConn constr = new MyConnection.OfcConn();
                SqlConnection con;
                SqlCommand com;
                SqlDataAdapter sqlda;
                DataSet ds;
                DataTable dt;//for form view
                protected void Page_Load(object sender, EventArgs e)
                    if (!IsPostBack)
                        BindGrid();
                protected void BindGrid()
                    try
                        con = new SqlConnection(constr.str);
                        dt = new DataTable();//for form view
                        com = new SqlCommand();
                        con.Open();
                        com.Connection = con;
                        com.CommandText = "dtype_pro";
                        com.CommandType = CommandType.StoredProcedure;
                        com.Parameters.Add(new SqlParameter("@status",             SqlDbType.VarChar, 50));
                        com.Parameters["@status"].Value = "Display";
                        sqlda = new SqlDataAdapter(com);
                        ds = new DataSet();
                        sqlda.Fill(dt);//for formview
                        sqlda.Fill(ds);
                        if (ds.Tables[0].Rows.Count > 0) //Check if DataTable returns data
                            FormView1.DataSource = dt;
                            DataBind();                
                    catch (Exception ex)
                        //lblerr.Text = ex.Message;
                        throw ex;
                    finally
                            if (con != null)
                                    if (con.State == ConnectionState.Open)
                                    con.Close();
                                    con = null;
                    protected void DtypeFormView_PageIndexChanging(object sender, FormViewPageEventArgs e)
                        FormView1.PageIndex = e.NewPageIndex;
                        BindGrid();
    //plz plz... help as soon as possible this is simple code but not show at run time....... :(
                        

    Good day uzma
    abidi
    It has been long time since I used Webforms but it look to me like you are using the default options and if there is no data that return in the query then you will not see the PagerTemplate.
    1. execute the SP from the SSMS.
    2. make sure that you pass the correct @status while executing the SP from the ASPX.
    3. check the SQL Server profiler, what query the SQL Server got.
    4. Check if DataTable (dt) has data after filling it. else you do not get the "DataBind" part, and the PagerTemplate will not display.
    * The basic code look ok in fast review. I might missed something. You should monitor it and get the line that make the issue.
      Ronen Ariely
     [Personal Site]    [Blog]    [Facebook]

Maybe you are looking for