Design issue with sharing LV2 style global between run-time executables

Hi,
Just when I though that I had everything figured out, I ran into this design issue.
The application that I wrote is pretty much a client-server application where the server publishes data and the client subscribes data using data sockets. Once the client gets all the data in the mainClient.vi program, I use LV2 style (using shift registers) to make the data global to all the other sub-vi’s. So the LV2 is in initialize mode in the mainClient.vi program and then in the sub-vi’s the LV2 is in read mode. Also, I had built the run time menu for each sub-vi that when an item is selected from the menu, I would use the get menu selection to get the item tag which will be the file nam
e of the sub-vi and open the selected sub-vi using vi server. This all worked great on my workstation where I have labVIEW 7.0 Express installed. But the final goal is to make exe’s for each of these sub-vi’s and install runtime on the PC’s that do not have labVIEW installed. Of course when I did that only the mainClient.exe program was getting the updated data from the server but the sub-vi’s were not getting the data from the mainClient.exe. I did realize that the reason for this is due to the fact that I had compiled all the sub-vi’s separately and so the LV2 vi is now local to each executable (i.e. all executables have their own memory location). Also, the run-time menu did not work because now I am trying to open an executable using vi server properties.
To summarize, is there a way to share LV2 style global's between executables without compiling all of the sub-vi’s at one time? I tried using data-sockets (local-host) instead of LV2 st
yle gloabls to communicate between the sub-vi’s but I ran into performance issues due to the large volume of data.
I would really appreciate it if anyone can suggest a solution/alternative to this problem.
Thanks
Nish

> 1)   How would I create a wrap-around for the LV2.vi which is
> initialized in my mainClient.vi and then how would I use vi server in
> my sub-vi to refer to that LV2.vi?
> You mentioned that each sub-vi when opened will first connect to the
> LV2.vi via via-server and will keep the connection in the shift
> register of that sub-vi. Does this mean that the sub-vi is accessing
> (pass-by-reference) the shared memory of the mainClient.vi? If this
> is what you meant I think that this might work for my application.
>
If the LV2 global is loaded statically into your mainClient.vi, then any
other application can connect to the exe and get a reference to the VI
using the VI name. This gives you a VI reference you can use to call
the VI. Ye
s, the values will be copied between applications. That is
why you need to add access operations to the global that returns just
the info needed. If you need the average, do that in the global. If
you need the array size, do that in the global. Returning the entire
array shouldn't be a common operation on the LV2 style global anyway.
> 2) Just to elaborate on my application, the data is
> transferred via DataSockets from the mainServer.vi on another PC to
> the client’s PC where the mainClient.vi program subscribes the
> data (i.e. 5 arrays of double type and each arrays has about 50,000
> elements). The sub-vi’s will have to access these arrays
> located on the mainClient.vi every scan. Is there any limitation on
> referencing the mainClient.vi data via vi-server from each sub-vi?
Your app does need to watch both the amount of data being passed across
the network, and the amount being shared between the apps. You might
want to consider puttin
g the VIs back into the main app. What is the
reason you are breaking them apart for?
Greg McKaskle

Similar Messages

  • Design issue with similar machines, but different Globals

    Hi,
    I know my questions about Global Variables has been up before, but maybe not in this kind of issue. The original coding has been done by someone else than me, but i want to change it. Now every machine has a folder and each folder consist of similar information as the next one. So there are 4 duplicate of every control and it's a nightmare to update the global variables in the total of around 200 files. I would like to combine the files so that only 1 file for "every action" would exist. So how should i do it. I have a few ideas but i would like to know how "the professionals" would do it.
    I've read that you should avoid of using a lot of Global Variables, but i don't know if in my case i can avoid them. Some of them could be removed when it's a realtime test that's going on and during the test you can open the attached VI, so how other could you transfer the information?
    System consist of:
    4 hardware test machines
    22 FP devices reading and writing
    ~50 Global Variables / per machine (50 variables per file, 1 file per machine)
    The attachments contines of one of the VIs that i'm working on. I'm not sure if you can open it because it contains many subVIs, but you get the picture of what i'm working with. So any ideas how to combine 4 same VIs with different Global Variables?
    Attachments:
    2.png ‏35 KB
    Temperature meas_1.vi ‏331 KB
    1.png ‏40 KB

    Hi Englund,
    you feed the cluster through the vi like your error cluster. In the subvi's you only unbundle/bundle the values you need!
    Example (Pretty silly, as the 'Select' operation isn't needed at all - I have to kill a student for that ) :
    The cluster 'Messvorschrift' contains about 50 values (partly in sub-clusters or arrays). You get the value needed for operation and write it back when needed.
    This scheme is pretty straightforward - but has a problem: it leeds to race conditions when you access your global several times in parallel!
    Then you should use a LV2-style global aka 'Action engine' - look for the last community nuggets in the forum!
    Message Edited by GerdW on 05-22-2007 09:22 AM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome
    Attachments:
    Cluster.png ‏2 KB

  • Design issue with the multiprovider

    Design issue with the multiprovider :
    I have the following problem when using my multiprovider.
    The data flow is like this. I have the info-objects IobjectA, IobjectB, IobjectCin my Cube.(Source for this data is s-systemA)
    And from another s-system I am also loading the masterdata for IobjectA
    Now I have created the multiprovider based on the cube and IobjectA.
    However, surprisingly join in not workign in multiprovider correctly.
    Scenario :
    Record from the Cube.
    IObjectA= 1AAA
    IObjectB = 2BBB
    IObjectC = 3CCC
    Records from IobjectA =1AAA.
    I expect the record should be like this :
    IObjectA : IObjectB: IObjectC
    1AAA       :2BBB       :3CCC
    However, I am getting the record like this:
    IObjectA : IObjectB: IObjectC
    1AAA       :2BBB       :3CCC
    1AAA         : #             :#
    In the Identification section I have selected both the entries for IobjectA still I am getting this error.
    My BW Version is 3.0B and the SP is 31.
    Thanks in advance for your suggestion.

    May be I was not clear enough in my first explanation, Let me try again to explain my scenario:
    My Expectation from Multi Provider is :
    IObjectA
    1AAA
    (From InfoObject)
    Union
    IObjectA     IObjectB     IObjectC
    1AAA     2BBB     3CCC
    (From Cube)
    The record in the multiprovider should be :
    IObjectA     IObjectB     IObjectC
    1AAA     2BBB     3CCC
    Because, this is what the Union says .. and the Definition of the multiprovider also says the same thing :
    http://help.sap.com/saphelp_bw30b/helpdata/EN/ad/6b023b6069d22ee10000000a11402f/frameset.htm
    Do you still think this is how the behaviour of the multiprovider.. if that is the case what would be the purpose of having an infoobject in the multiprovider.
    Thank you very much in advance for your responses.
    Best Regards.,
    Praveen.

  • I am experiencing some major problems with my MacBook Pro. I have had some issues with it turning on/off at random times, but today, when starting, I get the grey start-up screen and a recovery bar. After filling in approx 1/4 of the way, the machine dies

    I am experiencing some major problems with my MacBook Pro. I have had some issues with it turning on/off at random times, but today, when starting, I get the grey start-up screen and a recovery bar. After filling in approx 1/4 of the way, the machine dies. After starting it in recovery mode, it will not allow me to download OS X Mavericks- it says the disk is locked. Any ideas? I do not have a back-up and do not want to erase everything before I have explored my options. Help?

    try forcing internet recover, hold 3 keys - command, option, r - you should see a spinning globe
    most people will tell you to do both pram and smc resets (google) and if you still have issues, either clean install (easy) or troubleshoot (hard)

  • I have a problem with the touchsmart 420pc, after a running time (2 hour approx) is turned off,

    good afternoon, I have a problem with the touchsmart 420pc, after a running time (2 hour approx) is turned off, probably warming, but this rare, is suddenly going slow parapadear and image.
    also sounds like when damaged ballasts for lamps,
    ANYONE know what could be the cuasa and / or what is causing this.
    greetings and thanks in advance

    Hi,
    Please write your TouchSmart model number, which system are you using and country of purchase.
    Resource:
    How Do I Find My Model Number?
    ** Say thanks by clicking the "Thumb up" icon which is on the left. **
    ** Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue. **

  • Planned order creation with sale order assingment at the run time of MRP

    some material item not planed with sale order stock in MRP run time. all setting in material master are corrected as i knowing.having some mistake in setting other configuration.

    Planning strategy is Make to order individual collective as individual but still come as make to stock plan orders
    Incase of Header material- Plan order is creating in MTS
    Check the sale order procurement tab, Is The requiremnt type is relevant to your Stratergy?, if not chnage it to correct requiremnt type and rerun MRP again
    Incase of component material- Plan order is creating in MTS
    Check for the component material MRP 4 View, individual/Coll.req- as 1. If not set as 1 and rerun the MRP again

  • I have an old Minimac with a 100GB HD. I run Time Machine to an external HD. I want to update my Lion software but need 8GB of HD capacity to do this. I only have 5GB. My photo library is 4GB so since this is backed up I deleted this to Trash. But I still

    I have an old Minimac with a 100GB HD. I run Time Machine to an external HD. I want to update my Lion software but need 8GB of HD capacity to do this. I only have 5GB. My photo library is 4GB so since this is backed up I deleted this to Trash. But I still have only 5GB of capacity on the HD. Why ?

    You need to empty the trash to get the space back.

  • Issues with Shared Variables in Systems Running for Extended Periods of Time

    I am designing a large SCADA system using LabVIEW DSC and cRIOs. My plan is to use shared variables to communicate the majority of the information across my network (much like "tags" in a normal SCADA system).
    I'm wondering if anyone has experienced issues (connection failures, etc...) with shared variables running on systems for months (both real-time and windows based PCs) without the cRIO or PC being restarted/redeploying the variables. What is the stability of the Shared Variable Engine over extended periods of time?
    Thank you for the input.
    --CLD--
    LV 6.1, 8.6.1, 2011 SP1, 2012 SP1

    I have a system with 2 cRIO's each with Ethercat extension chassis.  Each cRIO hosts ~100 NSV's and is running the scan engine at 40 Hz.
    Each cRIO is coupled to a HMI that has front panel control bindings to NSV's hosted on the cRIO as well as a windows hosted mirror library (used for citadel db logging) that is also bound to the cRIO NSV library.  The cRIO's have monay months of contiguous run time without reboot and I closely monitor cpu and memory usage and also rt performance metrics and will log faults if there are any such events.  I also use NSV's for messaging from the HMI to the cRIO for such things as setting zero offset values and deploying configuration parameters.  My overall findings are that the SV engine and the PSP are stable and efficient (especially NSV<->NSV and NSV<->HMI binding)

  • Macbook Pro 15" vs 17" & space designer issues with VSL

    Hey Group! This is my first post/question. I'm a composer who does alot of sampling work and just stepped up to the macbook pro15" with the specs listed below. I'm running LogicPro (first time user on that, DP before), everything updated fully.
    I have no G4 or Quad... this will be my primary machine. I went with the 15" for portabilty and price (I'll be adding a separate display for larger view home studio work). Has anyone experienced nightmares because of the smaller amounts of firewire and usb ports? I use the left usb for my MBoxII (so there's audio and midi), the right usb for program keys (via a hub) and the firewire port for the external audio. I gather I can turn the card slot into addntl firewire ports (any 3rd party info on that appreciated). In other words, other than the slightly smaller display size have I made a terrible mistake choosing the 15" over the 17"?
    Also, I've experienced that when I use presets or matrices from the the VSL Solo Strings Instrument interface in the EXS24 I get random audio drop outs and it makes the space designer go nutty, even when I try different buffer settings. I see huge CPU spikes and hear audio glitching during the reverb tail of final notes. I also can't reactivate another note until the cpu settles back down (about 5 seconds) without getting very glitchy response. This only seems to happen with the VSL. Anyone else experiencing this?
    for Audio/Midi interface-ing I also own a Motu828mkII, which isn't as great for on the road work, but i could definitely use for my set up at home.....would I expect substantially better program performance out of that than the MboxII?
    Many thanks for all thoughts and responses
    Mark B

    Update: Vienna Strings is aware that there are still a few issues with the VSL Instruments and Intel Macs and they seem to be working very hard to fix these bugs ASAP.
    Having great success programming very large orchestral tracks with my set up (see below) and, after finding a balance between ram and frozen tracks, I'm able to get alot out of the 2 gigs of Ram on the Macbookpro. It's definitely a tightrope between cpu/and disk i/o usage (how much to freeze (which seems to put more strain on the i/o) and how much to keep in ram (which seems to make the cpu happy), and I'm finding larger buffer sizes allow for smoother playback without any noticable midi performance lag. I don't do a whole lot of audio recording with Logic, mostly sequencing and sampling, so i can't speak much to the audio track issues, or real time recording over sequenced tracks.

  • Hi! So I am using a MacBook Pro with Retina Display, and I am having some trouble issues with sharing documents on Google.

    I am part of a 2 person group, who's entering a documentary for the NHD competiton. If you don't know what that is here's a link: http://www.nhd.org. Anyway, that doesn't really matter. What does matter, is that my partner and I, we're using Final Cut Pro X to make the documentary. I downloaded the Final Cut Pro X trial on my MacBook Pro so I could work on our documentary at home. My partner Cecilia, wanted to work on it as well, but using Windows Media Player or something like that. My family uses a lot more Apple than windows. So I come home, work a little on our documentary, go under file ---> share ------> masterfile---> settings-----> Video Codec -----> H.264. A couple seconds/ miniutes (it didn't take very long) later, I see our documentary as a Quick Time file pop up under my documents. I then log into gmail. i click compose, type in my partners e-mail, and then click the little paper clip to attach my new quick time file. Considering that it's 11 minutes long and is filled with media and audio, It's no suprise when I see that it exceeds the limit of ...gigabytes i think. So i send it to her using google drive. However, a couple minutes later, my partner says that she can see the file, but can't seem to download it. I double-check and make sure that I, as the owner, allowed her to edit the file. Then I check to see if i accidently clicked: "Prevent viewer from downloading" which I hadn't. Then i, myself, click on the file and click download and it works fine for me, but apparently doesn't work at all for her windows computer. This means that there's somethig wrong with her computer, or I did something wrong while sharing the file. Any ideas as to why the whole downloading process worked on my Apple Laptop and not her Windows Computer?

    These links might provide some information that may be of help.
    http://support.apple.com/kb/TA20831
    https://discussions.apple.com/message/2035035?messageID=2035035
    I've encountered this error myself upon occasion.  If I remember correctly, it was a permissions/ownership issue with the some of the files I was copying.

  • BW 3.5, BEx Query designer issue with text of the characteristics

    Hi All,
    We are currently using BEx 3.5 Query Designer to design the queries. We have one of the ODS on which we are querying for.
    We have 3 different types of Customer in this ODS. 0Customer, 0BBP_CUSTOMER and 0GN_CUSTOMER. The problem is when we open this ODS in Query designer we see their text name on the left hand side column where it shows data fields as the same text name Customer.
    Now the our Power users have raised the issue that it is very confusing even when there are 3 different technical names for these characteristics.
    2 Questions I have.
    1) Why is something like this happening? is it some issue with the Patch or something. We will be migrating to new BI soon but in the mean time if I could resolve it that will be the best. Or does it even get resolved with new BI???
    2) what is the way in which we can resolve it?
    Thanks in advance and points will be given generously.

    HI BI Consul!
    Things like this happen, when it is called customer it could be different customers, 0customer is the standard R/3 customer and 0BBP_customer is objects from CRM and most likely 0GN_Customer might be customer from different system.
    Sure, power users should be told which customer is customer and you could also change the discription of the object, to match the definition on the other system. You could also just create z object and replace the existing confusing object with something meaningful to users.
    thanks.
    Wond

  • A web service design issue with patterns

    Hello,
    I�d like to ask for your help in the following design issue:
    I need to create an email sending web service (with Axis). Only just one method which returns with an integer return code. This handles the following:
    - based on the given parameters gets the email addresses from an
    LDAP server (with netscape ldap for java)
    -     makes a cache from them (only after a timeout period will be the cache
    refreshed) (don�t know what tool to use for this)
    -     selects html templates which to be sent based on the given parameters
    -     sends emails with the appropriate templates (with Velocity)
    -     the whole process is logged (with log4j)
    I have to write the code as generic as possible. I know that some design pattern should be used for this. (some from GoF , and I know there exists design patterns specially created for web services as well).
    Could you enumerate me which patterns (and for what part of the program) would be the best choice to solve this problem? I have read through some books about patterns, but don�t have the knowledge to pick up the right one for a concrete problem like this..
    Thank you in advance,
    nagybaly

    Hello,
    I�d like to ask for your help in the following design
    issue:
    I need to create an email sending web service (with
    Axis). Only just one method which returns with an
    integer return code. This handles the following:Lots of responsibilities here. You would do well to break this up into several classes that you can test separately.
    I would also advise that you not embed all this in a servlet. Make a service that collaborates with several objects to accomplish the task and let the serlvet just call it.
    .> - based on the given parameters gets the email
    addresses from an
    LDAP server (with netscape ldap for java)I'd recommend Spring's LDAP module. Pretty terrific stuff.
    cache from them (only after a timeout period will be
    the cache
    refreshed) (don�t know what tool to use for
    this)Maybe EhCache or OsCache or something like that.
    -     selects html templates which to be sent based on
    the given parametersWhere does this come from? Certainly not the LDAP. A relational database? Write a DAO for the document template.
    -     sends emails with the appropriate templates (with
    Velocity)Have an e-mail sender service using Java Mail.
    -     the whole process is logged (with log4j)Easily done.
    I have to write the code as generic as possible. I
    know that some design pattern should be used for
    this. No pattern. There might be patterns, if you say that the DAOs to access the LDAP and RDB are patterns.
    Stop thinking patterns and start thinking objects.
    (some from GoF , and I know there exists design
    patterns specially created for web services as
    well).Nope.
    Could you enumerate me which patterns (and for what
    part of the program) would be the best choice to
    solve this problem? I have read through some books
    about patterns, but don�t have the knowledge to pick
    up the right one for a concrete problem like this..
    Thank you in advance,
    nagybalyYou haven't read them because they aren't there. Your problem is pretty specific, even if it's common.
    %

  • Issue with Shared Services 11.1.1

    Hi all,
    I have an issue with the shared services in version 11.1.1. When i am trying to click on the Application Groups on the left pane in the console, an error message has been displayed as " A communication error has occured while loading the view pane"
    Please Help!!!

    You shouldn't have to restart Essbase as it should automatically sync, there may be additional information in SharedServices_Security_Client.log though it is probably worth logging with Oracle.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Severe Security Issue with Sharing Permissions and Windows

    I recently discovered a severe Security issue with the windows sharing an permission settings:
    I have two users, an admin user and a parental controlled user. On my mac mini, i have a external harddrive connected. On the harddrive, i have three folders, Itunes, Iphoto (Package) and a Temp Folder. I want to share the Harddrive RW for the admin, but only R for the parental user. But the Temp folder should be accessible for RW for the parental as well.
    1. I set the Drive checkbox "ignore ownership" off.
    2. I set the permissions of the drive to admin RW, parental R and Everyone to "no access"
    3. I apply to enclosed Items
    4. I set the permission of the Temp folder to admin RW, parental RW and Everyone to "no access"
    5. I apply to enclosed Items
    6. I go to "File Sharing" in the Preferences and activate SMB sharing for both users
    7. I delete all previous shares
    8. I add the Disk and use the proposed permissions which are admin RW, parental R, Everyone "no access"
    9. I add the Temp folder and use the proposed permissions which are admin RW, parental RW, Everyone "no access" - Funny, there is a new Group called "Temp" created which has custom access on both sharepoints
    10. I connect to the mac over a Windows machine (NTLM auth set appropriatly). Now I try to create a folder on the root of the Disk share, I get a denied message.
    BUT WHEN I GO INTO A SUBFOLDER (eg. ITUNES or IPHOTO), WHICH HAS ALSO JUST "R" PERMISSION FOR THE PARENTAL USER, I AM ABLE TO RW, DELETE AND DO EVERYTHING!!!
    TO RECAPITULATE: THE SHARING PERMISSIONS ARE "R", AND THE FILE PERMISSIONS IN THE RESPECTIVE FOLDERS FOR THE RESPECTIVE USER ARE ALSO JUST "R". BUT THE USER CAN DO EVERYTHING IN THE SUBFOLDERS!!!

    I recently discovered a severe Security issue with the windows sharing an permission settings:
    I have two users, an admin user and a parental controlled user. On my mac mini, i have a external harddrive connected. On the harddrive, i have three folders, Itunes, Iphoto (Package) and a Temp Folder. I want to share the Harddrive RW for the admin, but only R for the parental user. But the Temp folder should be accessible for RW for the parental as well.
    1. I set the Drive checkbox "ignore ownership" off.
    2. I set the permissions of the drive to admin RW, parental R and Everyone to "no access"
    3. I apply to enclosed Items
    4. I set the permission of the Temp folder to admin RW, parental RW and Everyone to "no access"
    5. I apply to enclosed Items
    6. I go to "File Sharing" in the Preferences and activate SMB sharing for both users
    7. I delete all previous shares
    8. I add the Disk and use the proposed permissions which are admin RW, parental R, Everyone "no access"
    9. I add the Temp folder and use the proposed permissions which are admin RW, parental RW, Everyone "no access" - Funny, there is a new Group called "Temp" created which has custom access on both sharepoints
    10. I connect to the mac over a Windows machine (NTLM auth set appropriatly). Now I try to create a folder on the root of the Disk share, I get a denied message.
    BUT WHEN I GO INTO A SUBFOLDER (eg. ITUNES or IPHOTO), WHICH HAS ALSO JUST "R" PERMISSION FOR THE PARENTAL USER, I AM ABLE TO RW, DELETE AND DO EVERYTHING!!!
    TO RECAPITULATE: THE SHARING PERMISSIONS ARE "R", AND THE FILE PERMISSIONS IN THE RESPECTIVE FOLDERS FOR THE RESPECTIVE USER ARE ALSO JUST "R". BUT THE USER CAN DO EVERYTHING IN THE SUBFOLDERS!!!

  • Issue with shared folders in oracle linux 6.4

    Hi.
    After installing oracle linux 6.4 in vmware (9 and 10) shared folders still not visible in guest os.
    i see such issue first time. before this i have installed red hat 6.3 and centOS 6.5. via vmware and everything was ok with shared folders.
    but in Linux Oracle i can not see them neither in mnt nor media.
    so is there an issue in oracle 6.4. release? was it fixed in 6.5?
    p.s. i have instlalled vmware tools but problem with shared folders still persists.
    screenshots from my laptop
    RGhost — файлообменник
    RGhost — файлообменник
    RGhost — файлообменник
    RGhost — файлообменник

    e9af1f61-cf4a-46b2-880b-989b0761844e wrote:
    i have moved this messages by mistake https://forums.oracle.com/thread/2613503 to another branch.
    could you return it back, please?
    Moderator reply:
    Nope.
    That is not one of the capabilities of moderator or site administrator functions in the software the runs the site.
    You are stuck with two pieces in this discussion.
    All I'\m able to do is lock that branched piece (which I've done).
    You need to be a bit more careful on what you might choose to click upon.

Maybe you are looking for

  • ME53N Prevent user from making a change

    How do you prevent a user from making a change to a purchase requistion via transaction ME53N?  We want the user to make a change to the purchase requisition using transaction ME52N not transaction ME53N.  When the user is in transaction ME53N and cl

  • Echo in Breeze audio

    After I import audio files into Breeze, they become tinny and there is an echo (especially with words containing an "s"). I changed the audio quality to high, and this helped the audio sound less tinny, but there is still a bad echo. Any solutions?

  • When I open PSE, it goes to lesson #2 of "classroom in a book." How can I get out of it?

    When I open Photoshop Elements & click organize, it opens to lesson #2 of "classroom in a book." How do I get out of the classroom program and back to  PSE?

  • Ideacentre A310 Screen is Blank

    I have an A310 Ideacentre. Two nights ago it was  working perfectly, then yesterday morning the screen is blank. On the left the bluetooth, wifi and disk icons come on and off, plus I can access shared media on the PC from other devices on my network

  • I want to work offline. where is the option?

    I am trying to work offline. I downloaded an add-on but i dont think it is applicable to firefox 5.0. I was wondering where the option to work offline is, or if there is an add-on i can download in order to do so. Thanks