write class data

Hello

I am looking for a solution to write a programming data to a class of LabVIEW.
I want to create a method that reads an ini file and writes the data of the keys in the class data during execution. The method must be flexible. So I don't want to code for key cases.
With the normal clusters I would do that with vi server. I have not found a way to do this with the classes.

I hope someone has a solution for this.

Thanks in advance.
D. Ackermann


Tags: NI Software

Similar Questions

  • LabVIEW oop variant in the private class data

    Hello

    I'm new to LabVIEW OOP.

    Is there a way to get a control of type variant in the 'grouping of private class data"for a class? If not, is there an alternative for handeling given variant? I use LV 2013.

    Thank you.

    Just, you use a control of type variant, and put in the big giant cluster.  It's the same for any other data type.  Is there a specific problem that you run into?

  • Typedef reference FPGA not updated in the private class data

    I have a FPGA reference related to a typedef that is passed in a LVOOP object. If I change the FPGA of computer simulation of dev to the use of the actual hardware, all references to the typedef are updated which are controls on a diagram. But the typedef in my private class data seems not not to date, so I'm broken son until I replace the control to private data of my class with a copied from my block diagram. Has anyone seen this? Is there a CAR already? I can create a small project to reproduce if necessary.

    Edit: this also seems to happen when I change bitfiles or change to open a VI a bitfile opening in the Configure dialog box open FPGA VI.

    Hi Greg,.

    I was able to reproduce your problem thanks to your easy to follow instructions.

    I noticed that type def successfully by checking "Bind FPGA host of reference to the type definition" in the open FPGA VI reference configuration. What does not automatically update is the Issue.ctl of OBJECT-oriented programming, which has a nested type definition in the private data reference.

    The fastest solution, that I could find was to right click on "Issue.ctl" in the project, and then click Save. This problem immediately solved the broken wire error.

    While configuring open FPGA VI reference has the practical ability to bind to the def of type, it does not broadcast this change to data private to the class. I call not this bug, but I can see how you want it works this way.

    I would recommend you post that on theExchange of ideas (I see you're already regularly here).

  • You can survey objects to see if the class data were populated in a child method?

    Question,

    If a parent method is cast down to the child class, and then a method is used to update some data in the class data, that the data is visible with a probe on the wire coming from the object? Or is the data view of the data in the parent class data and not the child?

    I have a problem where the parent class is executed instead of the child's class and I can't understand why...

    Thanks for all the ideas.

    I don't know if I know more precisely what you're asking, but maybe this will help you.

    The default probe will show you the data that makes up the type of wire.  Thus, for children's classes it shows data childs and no ancestor.

    If it is a top-level class thread displays only the data for the parent class, it will inform you of the actual wire type, since we know children can spend as their parents.

    Now, I think that what you're asking, is if it is possible to see the data for children, the son of parents.  I don't know, but you should be able to make sensors for you show more information based on the actual type.

  • Private class data accessible parent in the child's class?

    Hello!

    I thought this would be obvious, but my search thing fails to me.  I hope that someone would be kind enough to answer my question LVOOP of beginner.

    I have a a parent class.  This parent class contains a set of private class data.  I have Setup all the data accessor methods.  I create a child class that has functions that need to access the data stored in its parent category.  His legacy is defined, but when I try to separate data from class all that I can't do are what is configured in the cluster of data of the child class.

    I watched a video and it seemed that the DataSet magically appeared and is accessible via the methods of children.  What Miss me?

    Thanks for the input!

    -nic

    To access the data of the parent in the child's class class, you must use the accessor of reading methods you created for the parent class get the parent class data (you must use the same accessor methods in the methods of the child because all the data of the class is private in LabVIEW). I hope this helps.

    -RW

  • Can't place separator reference in the private class data control

    Any reason, I can't drag and drop a splitter reference leave my block diagram to a private open class data control? Basically, I'm ignored when I let it go, even if I see an icon 'drop' after that I drag the control.

    Well, I think I got smart and just placed a generic control Refnum into the command group, and then used the VI of the server class to identify it as a separator. Interesting how I could drag and drop references to the sub-panels and other types but not a divider.

  • possible bug in class date

    I stumbled upon a possible bug in the class Date. When comparing two dates of November 20, 2007 and on November 22, 2007, I get false logic.

    public var expireDate: Date = new Date ("2007", "11", "20");
    public var todaysDate:Date = new Date();

    If (todaysDate.getTime () > = expireDate.getTime ())
    {
    this.currentState = "courseExpired";
    }
    on the other
    {
    this.currentState = 'loggedIn ';
    }

    todaysDate.getTime (returned): 1198126800000

    expireDate.getTime (returned): 1195742469234

    But whatever happens, todaysDate wins even if it shouldn't. Courses should have shown have expired.

    probably because the month is zero means the basis therefore 11 December November not :) (I know its not very obvious, but it's like that in flex and java as well).

  • Lost child when loading dyncamically parent class data

    Hello everyone.

    I have a 'View' parent class that has some private data, for example (String) ' name' and 'VI refnum' (refnum).

    A 'View' is "unique Graph", a "_Display.vi".vi is a simple graphical view, I will later put in a secondary.

    The class also has a "Start UI.vi".vi, who will simply start "_Display.vi". The idea is that I want the ability to have multiple "unique Graph" instances

    The attached screenshot, you can see how I have for testing purposes to write in the 'Name' property and also he reading (again, for test purposes).

    In the "UI start" vi, it works very well, and the name and VI refnum is available.

    I pass the object in "Start Async Call" and the graphics window appears.

    The first thing I have with the "Graph" Single object you must read the name and Vi Refnum, and as you can see on the screenshot, this fate empty.

    I don't understand how this is possible, but I am sure there is a good reason for this behavior.

    I hope someone here could help me understand this.

    Thanks in advance!

    Kind regards

    Oksavik


  • Write the Date/time value to a Ms Access table

    I have a headache. Here is the statement I send and the error I get:

    INSERT INTO VALUES (TestID, DateTime) measure (8732, #' 2015 - 01 - 28 16:17:58 ' #);

    NI_Database_API.lvlib:conn Execute.vi-> 2.vi Untitled-> Untitled 1. VIADO error: 0x80040E14
    Exception occurred in the Microsoft JET Database Engine: syntax error in INSERT INTO statement. in NI_Database_API.lvlib:Conn Execute.vi-> 2.vi-> vi Untitled 1 Untitled.

    I tried most of the possible combinations of #, "," around the datetime string and I also tried datetime string formats YYYY/MM/DD hh: mmS AM/PM, DD/MM/YYYY "

    In writing to the other data fields don't cause any error, I only get the syntax error when I try to write in the DateTime field (data type Date/Type)

    I use LV2012 with database connectivity kit and MS Access 2010 (stuck with it, cannot be changed). Same problem with the connection of the user DSN or UDL (jet engine).

    It works with the DB tools Insert Data.vi but we want to use a direct INSERT statement using the DB tools run Query.vi, because we have had a few locks error 0 x 80004005 which can be caused by the DB tools Insert Data.vi using ADODB. Recordset.

    Is attached the vi that I use for debugging.

    Ben64

    Finally found the problem!

    Even if the data type is Date/time in Access, and it is possible to define the name of the DateTime field it seems to be a small Word when you use a SQL statement. The solution is to add DateTime hooks like this:

    INSERT the EXTENT (TestID, [DateTime]) VALUES (1,'2015-01-28 06:52:16 ');

    Thanks for your help Cosworth.

    Ben64

  • Write the data from multiple devices in columns

    Hi, I have a problem in writing the data of 2 devices I have currently (for pressure and temperature). I wanted to be written in 2 coloums, one for temperature and pressure for each produced data. What I have now is that the data written in the rows. Please help me on this.

    Also, I put the timestamp, but only time as hh/mm/ss data. would it be possible to produce both as in the graph, which is written as hh/mm/Scott (in microseconds)

    I have attached my labview program, and also the current save file I receive, and format also required that I really want.

    Thank you

    Hello

    1 use a function table 2D transposes, before you write the table of function "spreadsheet table.

    2. use the format of the exact time in the string of Format date/time function. Use the assistance provided for this function to get the date and time format you need

    3. the wiring is not good. Your 'open file' function is placed somewhere after writing in the file structure. follow the flow of data.

    Tips: you can consize your block diagram and place your functions and blocks in order, wire the neater.

  • Bug in the accessor class data member with name return

    Noticed a small bug in creating data classes accessor member.

    If you have an in the variable title carridge return the vi it creates will not save.

    You do not have to set two things for each control. By default if you show the legend that is the same as the lable. You only need to change and then only for those on the FP.

  • How to write Modbus data in a file or a matrix?

    Hello:

    I can monitor my data through RS-485 port using 'Master Series MB query', and successfully, I can show signals using the waveform.

    But I can't save the data during the test in a table or write to a file. (see attachment and picture)

    How can I write them to a file or a spreadsheet correctly?

    When I try to read 'file as' and this graph, I can not every graph, there simply a knot!

    is the data type "registers entry" needs a special procedure?

    What is the problem?

    Thank you.

    A fundamental flaw that I see is that you have to write file as configured to rename and replace any existing file when you call the function.

  • Can I choose when I want to write my data in a file?

    What I want is like,
    When I click a button as ON the then only will it a written data in a spreadsheet.

    Now, I did the bolllean so that it displays TRUE when you need to write... but if FALSE, nothing happens...
    and I don't see any option in writing to the spread for that worksheet function it...
    If you can help me on what I do

    ?

    You're writing the worksheet file in a case structure.

    I recommend you watch the LabVIEW tutorials online
    LabVIEW Introduction course - 3 hours
    LabVIEW Introduction course - 6 hours

  • How to write the Date/time of the PDM file property

    On the page root of the PDM file, there is a predefined, property called ' Date/Time' in the first row.

    I would use it to save the timestamp when the tdms file is created. But in the help file.

    I find that the following property constant. So, how can I write to the field of property ' Date/time '?

    Property Constant Data type
    Name TDMS_FILE_NAME String (char *)
    Description TDMS_FILE_DESCRIPTION String (char *)
    Title TDMS_FILE_TITLE String (char *)
    Author TDMS_FILE_AUTHOR String (char *)

    Thanks for any idea or suggestion.

    You are not sure if it's exactly what you want, but have you tried that?

    CVIAbsoluteTime            CVItime, *t = NULL;
    TDMSFileHandle          deH = 0;
    
    // Create TDMS file and set some properties
    errChk (TDMS_CreateFileEx (file, TDMS_Streaming2_0, TDMS_ByteOrderNative, 0,"example.tdm", "someText", "title", "author", &deH));
    
    // ...
    
    GetCurrentCVIAbsoluteTime (&CVItime);
    errChk (TDMS_SetFileProperty (deH, "Date/Time", TDMS_Timestamp, CVItime));
    
    // ...
    
    // Save and close fileerrChk (TDMS_SaveFile (deH));TDMS_CloseFile (deH);
    
  • How can I write the data on the graph xy

    I want to write the values of x and y... how can do that... I tried with the independent cluster.but the sons weren't told connected.it that the dimensions are not same.why my watch 3 xy dimenssional table? He must have a 2d painting.

    can someone help me please...

    Ignatius

    Normal, 'Write on worksheet File.vi' required a simple table 1 d or 2D as input and not a specific type in the cluster (because the XY graph is a cluster).

    So, given that your [X] data is the same for every [Y], you could build a 2D data table to use (by implementing the 'build picture' with [X] & [Y]).

    If it is not the case (same [X] for all [Y]), you will have to proceed to another method-online 2 files or the conversion of custom text before writing.

Maybe you are looking for