How can I create a record list or global signal system

Forgive me, but I've been away from LabVIEW for awhile. I worked in the field of LabWindows (99% of our work) for the past five years with some sprinkled in LabVIEW. I was responsible for designing a replacement for an existing test unit at another plant in our society with a main requirement being that LabVIEW is the development environment.

We have two architectures 'C' standard very strong that we try to use them as a reference point on the majority of our work. I would like to try to implement one of these architectures in LabVIEW but I find this part, and really a fundamental part of this architecture is not translated very well. The centerpieces of this architecture are looking for overall signal structures and a record of overall system. The research of signal structure is a complete list of signals in the system test with information scalar and offset. Registering system stores the current raw value for the each of these signals. See the examples below:

typedef struct SignalType

{

int globalIndex;

Double voltsPerEngUnit;

Double voltageOffset;

Char [SIGNAL_NAME_LENGTH] signalName;

} SignalType;

struct SignalLookup

{

SignalType sigTable [MAX_SIGNALS];

SignalType * hardwareOutSpare100;

SignalType * hardwareOutSpare99;

SignalType * hardwareOutSpare98;

...

SignalType * hardwareInSpare100;

SignalType * hardwareInSpare99;

SignalType * hardwareInSpare98;

...

SignalType * time;

SignalType * dutyTime;

SignalType * frameTime.

SignalType * isrCounter;

SignalType * softwareOutSpare96;

...

SignalType * graphPlot1;

SignalType * graphPlot2;

SignalType * graphPlot3;

SignalType * graphGo;

SignalType * graphDomainMin;

SignalType * graphDomainMax;

SignalType * graphRangeMin;

SignalType * graphRangeMax;

SignalType * softwareInSpare91;

...

} signalLookup;

Initialization functions:

void SignalTypeInit (SignalType * s, global int, char * name, scalar double, double offset)

{

s-> globalIndex = global;

s-> scalar = voltsPerEngUnit;

s-> voltageOffset = shift;

strcpy (s-> signalName, name);

}

Sub SignalLookupInit()

{

Release of material

signalLookup.hardwareOutSpare100 = & signalLookup.sigTable [0];

SignalTypeInit (signalLookup.hardwareOutSpare100, 0, "hardwareOutSpare100", 1.0000, 0.0000);

signalLookup.hardwareOutSpare99 = & signalLookup.sigTable [1];

SignalTypeInit (signalLookup.hardwareOutSpare99, 1, "hardwareOutSpare99", 1.0000, 0.0000);

signalLookup.hardwareOutSpare98 = & signalLookup.sigTable [2];

SignalTypeInit (signalLookup.hardwareOutSpare98, 2, "hardwareOutSpare98", 1.0000, 0.0000);

...

}

typedef struct SystemRecord

{

Double sigTable [MAX_SIGNALS];

} SystemRecord;

How can I translate these structures to LabVIEW when LabVIEW with global structures and tables in large n - n in LabVIEW? I am open to any criticism and help I can get.

Regards-

John OC

I'm not C code too closely, but it is seems to me that you basically have a bunch of definitions of named (structs) signal that you want to get the data by name.

Personally, I would add that all additional necessary data in there (like hardware address and the actual current value) and use a class or library to encapsulate all this in an easy to use API.

You can create the base functionality by the presence of a data value references lookup table (DVRs, which are a bit (just a bit!) similar to pointers, so that they point to specific data) that will each point to a single cluster (or object). Once you get the DVR to the cluster (or object), you use the structure in place to get the data inside the RECORDER and the specific operation you want (for example, set up the initial configuration or reading calibrate the current value of the signal) on these data.

For research, I would recommend a simple VI with a variant in a shift register. The shift register allows to ensure that the data between tracks of VI and use you the primitives of attribute ranging from keep the EVN - if an attribute with the current name does not exist in the variant, you create a new and write it in the Variant. Each attribute includes a digital video recorder, which is what you are exporting.

Thus, for every VI in your API (Init, current value of reading, etc.), you give the name as input and start calling the VI search to get the DVR. Then, you use the DVR to operate on this specific signal.

If all this seems too complicated, you can try to go with something like this - http://zone.ni.com/devzone/cda/epd/p/id/5326

Tags: NI Software

Similar Questions

  • How can I create a mailing list "unknown recipient"?

    I created a mailing list that contains multiple e-mail addresses. I was worried when I posted an email to a list of all email addresses have been displayed, which means that everybody could see that I was sending to.
    I want to have a mailing list that does not show that either a list of undisclosed recipients.

    Always try to find how to add a bcc: line. Any ideas welcome. I went to Alt + T Copies and files and only see a field to enter in an entry static bcc which is intended to be sent each time. This isn't my situation. I want to be able to CCI of different people in various e-mails.

  • How can I create an address list in Firefox so I can send the same e-mail to 20 people?

    I'm in a small organization and need to email common to members of 20 or more. Other that to copy and paste from an email previous I have not found a way to do it. I just need a list, I can choose who will fill in the field.
    Thank you

    Firefox is NOT an e-mail provider, please consult your email provider to help do that.

  • How can I create a separate address book? I'm not on a mailing list but an address book where addresses are not mixed with my usual address b

    How can I create a separate address book? I'm not on a mailing list but an address book where addresses are not mixed with my address book regularly. I already have three created for me by Thunderbird address books. Add all new addresses to one of those, I'm not afraid to remove the other address books, because some of their addresses are not repeated in my address book "main". So if I delete all the names in one of the existing books, I need to create a blank book that will not mix the addresses with those of an another address book. HOW CAN I CREATE AN ADDRESS BOOK EMPTY? I want to be able to create multiple mailing LISTS using the addresses in this new book, I will eventually have an address book special with a variety of mailing lists, that I can use as I want to.

    In the address book, file | New | Address book.

    No menu showing "file"? F10 or ALT.

  • How can I create a list of contacts on Outlook Express. I found the answer in help, but cannot locate elements, on what he asked me to click

    Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas:
    How can I create a group or a list of contacts on Outlook Express.  I found the answer in help, but cannot locate elements, on what he asked me to click

    • You have problems with programs
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    If you're running Vista, you have Windows Mail, not Outlook Express. These instructions for adjustment of these two programs.

    To create a group of contacts:

    You can create a single group name (or alias) to use when sending a message to several contacts at the same time. Just create a group name and add individual contacts to the group. Then just type the name of the group in the box for when you send mail.

    1. in the address book, select the folder in which you want to create a group. Click New in the toolbar, and then click New Group.
    2. the Properties dialog box opens. In the group name box, type the name of the group.
    3. There are several ways to add people to the Group:
    a. to add a person from your address book list, click Select members, and then click a name in the address book list.
    (b) to add a person directly to the group without adding the name to your address book, type the person's name and e-mail address at the bottom of the Properties dialog box and then click Add.
    to add a person to both the Group and your address book, click New Contact and enter the appropriate information.
    (d) to use a directory service, click Select members, and then click search. Select a directory service in the drop-down list at the end of the text box. After finding and selecting an address, it is automatically added to your address book.
    4. Repeat for each addition until your group is defined.

    Note

    a. to view a list of your groups separately from the list of address book in the address book on the view menu, make sure that folders and groups is selected.
     
    b. you can create multiple groups, and contacts can belong to several groups.

    If you want to send to a group without addresses are displayed for each recipient, open the address book and make a new entry. Enter the name of the group in the area of the display, but use your address. (Some Internet service providers require a legitimate address in the line to and recipients will know it's from the Group).

    Click on the button to. Enter the name of the group using your address. Enter the group in the BCC field.

    Bruce Hagen MS - MVP [Mail]

  • How can I create dependent drop-down list. ?

    Hello

    How can I create dependent drop-down list in my custom page.

    JAG

    Hello

    See my prev thred:

    Re: List of choices dependence relative to a framework for Oracle Page

    Concerning
    Meher Irk

  • How can I create a group in my address book?

    I am looking at the help page, and he has "contacts" in the list, but no link to something useful.

    How can I create a group? I want to send something to a group of people, but I don't want them to see all the other people who are part of the group.

    _ http://KB.mozillazine.org/Thunderbird: _FAQs_:_Create_Mailing_List

  • How can I create a full recovery for OS and preinstalled software media?

    Hello
    My son´s accompanying the new Satelite L855-10U preinstalled OS and much other software already installed on the HARD drive, but no installation media, the client is supposed to create a tool from Toshiba.

    I created 6 Swedish recovery for the operating system using the tools Toshiba had installed on the HARD drive.

    To do this 6 Swedish, I created with the Toshiba Recovery tool contain the operating system and all other preinstalled software?

    How can I create the installation media full and usable if not for the operating system and all other preinstalled software?

    I can´t find all the information on the backup software pre-installed with the exception of the BONE. Is there complete information how to do the above, in the manual of the computer, or have you missed this information?

    I would like to know how I can create media backup complete and usable for the operating system as well as for all other preinstalled software, so I can recreate all the facilities of the plant at a new disk if/when the original HARD disk crashes.

    Is there a partition hidden with pre-installed software, and if so, how can I create a backup of this partition, or all the software, so I can reinstall everything if the HARD drive fails, if it is already not with the Swedes 6 Toshiba tool created for me?

    Forward to your response and to complete your customer documentation about the complete instructions for installation and recovery media creation.

    Thank you very much!

    Baltazar

    Hello

    On this forum, you will find a lot of useful comments on the recovery image saved on the HARD drive and its operation to the facility and the creation of recovery disks.
    All this is clearly and simply.

    Front of Toshiba offer new people for laptop in software development create recovery image. This recovery image will be created for each laptop model (specific hardware configuration). Recovery image contains the operating system, all necessary drivers, tools/utilities Toshiba specific and some other software like DVD/Blu-Ray, Microsoft Office test drive and the antivirus application. With this configuration every laptop owner can begin to use the laptop without having to install important applications.

    This package is then saved on the HARD drive and can be used for the installation of HARD drive recovery - http://aps2.toshiba-tro.de/kb0/HTD1303440001R01.htm. In other words, if something is wrong with HARD drive recovery facility you can reset the preinstalled operating system and reinstall recovery imae. After that make you have absolute same settings you had after purchase and first start of the laptop.
    HARD drive recovery image can not be used if:
    -HARD drive is defective
    -you have installed the version of the own BONE
    Structure of the HARD disk partitions - is changed
    Recovery image - HARD drive is deleted or moved to another partition or copied to the external device.

    To avoid all this Toshiba recommends the creation of recovery disks. Using these disks, you will be able to install the OS on the new drive HARD or in any other situation listed above.
    Please note: the use of recovery disks will remove all HARD drive, create the new recovery partition and install image recovery, so you still have the same settings.

    I hope I can help you with my explanation. If you have any other questions you are welcome.

  • 15 - n205nr: HOW can I GET a BUILD LIST all THE COMPONENTS OF MY LAPTOP HP 15-n205nr?

    HOW can I GET A BUILD LIST SHOWING all THE COMPONENTS OF MY LAPTOP HP 15-n205nr?

    Hello

    His record:

    http://support.HP.com/us-en/document/c04026602

    and hardware information:

    http://PartSurfer.HP.com/search.aspx?SearchText=F5Y79UA

    Kind regards.

  • How can I create a playlist without WMP?

    How can I create a playlist without WMP with files stored in my sansa Fuze please?

    You can make one in Notepad,

    It should contain the path to your music,

    So let's say your songs is at F:/music/artist/coolsong.mp3

    in Notepad, you must put the RELATIVE path, so if your file to playlist in the folder "music", you get artist\coolsong.mp3

    and if it is the root (main folder) of your drive, you would put music\artist\coolsong.mp3

    and all files must begin with: #EXTM3U

    Here is an example of a playlist (saved in the root

    #EXTM3U

    MUSIC\pillar\For the love of the Game\01 for the love of the Game.mp3

    MUSIC\pillar\For the love of the Game\02 turn up.mp3

    MUSIC\TobyMac\Momentum\Yours.MP3

    MUSIC\msc\Trogdor.MP3

    MUSIC\Msc\move.MP3

    I know it will work because it is my real playlist,

    during the recording of brand shure you end the name of the file as .m3u

    and change the type as 'save' to all files

  • How can I create nested VMware ESXi in vCloud 5.5

    Hello

    I how can I create a VM ESXi nested within vCloud 5.5.

    I followed the instructions below, but it does not appear as an OS selected in the database, it creates only an option, but the drop-down list displays the 'other' os.

    http://basraayman.com/2012/03/01/enabling-nested-64-bit-virtual-hosts-on-vCloud-Director-1-5-using-MSSQL/

    Kind regards!

    I just stumbled upon this problem sort of.  I had it working in 5.1 vcloud, but upgrading to vcloud 5.5 caused all sorts of havoc.

    Looks like vCloud 5.5 added a drop down for the esx hosts in the family of the 'other', but it does not appear when you create a virtual machine, you must create it with some other reviews and then change the properties of the vm created for select esx guest.

    If you have added the SQL statements from this link, it will completely break vCloud because there will be two entries in the database for esx and he complain of a unique key.  You must change the database and remove what you added in the link above.  The tables are guest_os_type and guest_osfamily.

    Good luck!

  • How can I create a new presentation of shop e-commerce in British Colombia? The default layout is inadmissible and who do not steal! :)

    Hello to everyone.

    I've been building and development using BC for awhile but avoids the functions of e-commerce like the plague, because of all my knowledge and trial a mistake, I couldn't adjust available outside the columns of the table how much I can add. I'm looking to create some sensitive stores but feel completely constrained by the store layout because it can't be adjusted. Yes I tried the same and adjustment module style sheet styles declare my rules with "!" important"with no luck. I then asked the team to BC online chat. If it was still possible, and they said 'no' dish. Then I saw 'light at the end of a tunnel' If you want by browsing a few Business Catalyst models (I honestly can't bring myself to use models that I like a lot of this building and landscaping my own pages). With this model here, the cameras and accessories you can see the shop features sensitive so I know it's possible (Damn you BCGurus and your mad skills). I also found some amazing layouts by Enough of Pollution , which has also made a few sensitive shop like this Web sitelayouts.

    Overall, how can I achieve this? How can I create a fully customized store page layout and virtually any custom also available? I have the feeling that I needed to learn the programming language for this liquid, but seriously, the indications at this point would be greatly appreciated! If I learn liquid programming, I'd love to learn where there might be some amazing courses / tutorials / documentation. I have the feeling, it comes down to create my own model of liquid layout and rerouting of the off-set modules in the new model... I'm on the right track?

    Sorry, so many questions. Let me tackle that I really want to know haha!



    • How can I create a layout of the sensitive shop in British Colombia?
    • What would be the necessary steps?
    • If I need to build models of liquids, where can I learn all this? (I know that the BC user guide has much butI will not lie, it's a little overwhelming)

    Thank you all so much for your time in reading this and I greatly look forward to learn more about Business Catalyst. Honestly, I'd love to try and use this platform for all of my clients.

    Hello

    Support will be have not said you that it was not possible, they would have told that it is outside the scope of their support. Is this possible? Of course, it's, it's the foundations of basic BC, HTML and CSS more then anything else.

    Honestly, it has nothing to do with incredible skill, amazing code or anything else.

    First of all, BC is just tags and you should use reference material:
    The developer reference

    Here you see the overall plan and tags. If you look at the list of product tags you see that you can set in a list schema (no tables).

    From there allows you to encode your small layout, large presentation cart layout, provision of registration (payment) because you need to and code the CSS to adapt.

    -You can float elements so float the li of the store

    -The basics of the CSS to make the elements of fluid width of code etc.

    -Questions from the media CSS code to make sensitive matters

    All pretty much toast front-end html, css, nothing special here development stuff. You have classes on the points for each element of a line in British Colombia according to the parameters that you set on the tags and so on.

    If you want to take the next step you enable liquid markup in the characteristics of BC and take things further.

  • How can I create a download button on Muse?

    How can I create a download button on Muse. I like people to download a voucher from my Web page.

    What type of file this is what they download?

    If it is a PDF file for example then you use the file---> files for download location and click your button and go to the drop-down list of hyperlinks and you will see that what listed there to link to.

  • How can I create a constraint on the combination of four columns...

    Dear Guru,

    I have a question... I created the table with columns like "CCode', 'Size1', 'Size2', 'Sch1', 'Sch2', 'Description', 'CCdate '.

    Here I wanted to create a unique constraint on the combination of four columns "CCode', 'Size1', 'Size2', 'Sch1', 'Sch2.

    My requirement is that I don't want to allow duplicate records in the table for the four columns only.

    for example: "CC123", 10, 25, S110, S250,.

    If the new record comes with the same data. Then, I do not want to insert this record.i want to get a constraint voilated error.

    How can I create a constraint on the combination of four columns...

    Pls help me on this issue...

    Kind regards

    Shitab...

    I suggested already here the syntax,

    ALTER table your_table

    Add constraint cons_name unique (col1, col2, col3, col4, col5);

    And don't call me 'Sir '.

    See you soon!

  • How can I fill the records using the value LOV

    Create a form based on the use of the following output Table EMP

    Create a database block IE control-> Dept No. block


    Create a database block - EMP
    Create a LOV to the Dept not according to the dept table.
    For the current No. Dept. Complete records of the employees

    How can I fill the records using the value LOV?


    Thank you

    Hello

    Create trigger KEY-LISTVAL for control_block.dept_no with code similar to the following:

    IF SHOW_LOV ('LOV_NAME') THEN
            SET_BLOCK_PROPERTY ('EMP_BLOCK', DEFAULT_WHERE, 'DEPT_NO = ' || :CONTROL_BLOCK.DEPT_NO);
         GO_BLOCK ('EMP_BLOCK');
         EXECUTE_QUERY;
    END IF;
    

    Hope this helps

    Best regards

    Arif Khadas

Maybe you are looking for

  • Pavilion 17e135nr hdmi does not...

    brand new hp pavilion 17e135nr windows 8.1 TV is the brand new visio 50 inch I know that the cable is good (new) because my ps 3 working very well so I unplugged the ps3 and hooked to the laptop to play a movie I loaded down and I selected 2 HDMI whe

  • recovery image

    Hi, I bought my desktop with the file recovery image containing windows 8. 1 week ago, I have reformat my pc. When I felt that my computer is going more slowly I thought to re - install windows again but when I do, it says missing files. * If this th

  • Move video files form iPhone on pc?

    I have download some great movies on iPhone and wanan enjoy them on my pc. I bought my iPhone yesterday so I don't know everything that I can do it all, help...

  • To remove programs that you rarely use in Vista

    How to identify programs that are rarely used in Vista Panel (in XP it was simply described as often/rarely etc...)

  • DNS error on wifi. No problem on ethernet

    Hello everyone I have a weird problem with my internet. WiFi works fine on my tablet, phone etc. But not with my pc. I get the dns probe error when I try to connect to my pc via wifi.however when I use the ethernet cable it works very well. I tried R