Cluster or array or other solution

Hi
I have an labView6i program roughly consisting of 3 components :
'main program' : calls the 'read subvi' every program cycle, and displays
the the output.
'read subvi' : read a number of ADC channels, convert the ADC voltages to
physical values, and return them as an cluster/array.
'save subvi' : save current readback values and names of ADC channel to a
file.
Every physical measurable quantity has a name, conversion formula, and an
ADC channel. So I want all these informations in the 'read subvi' (as an
constant) and only once (so it is easy to change).
The 'save subvi' needs the names from the 'read subvi' so I have changes
the 'read subvi' to output both values and names(two different
clusters/arrays).
1:
If I output the va
lues from the 'read subvi' as an named cluster, they are
farely easy to distribute to difrent instruments(placed in different tabs)
in the 'main program' using 'unbundle by name'. But in that way every
channel has two names... the label in the cluster, and the string conctant
used e.g. by the 'save subvi' .
2:
If I output the values an an array there i a big risk that an instrument in
the 'main program' vill show the wrong channel (if you change the order in
the 'read subvi' and forget to do the same thing in the 'main program').
Is it posible to convert an string constant to an label/name(later to be
used to 'unbundle by name') on runtime ? or is there an other brilliant
solution to my problem?
/ Peter

Why not define the cluster array in your main VI and pass it (as an array or as individual clusters) to the read and save sub-VI's? The sub-VI's will then be more general purpose: they'll read and save whatever you tell them to.
You can use Property Nodes to read the names (label text) of controls in a cluster. But you can't use Property Nodes to change the control names: you'll get an error like "Error 1073 occurred at Property Node (arg 1) in Read Cluster Control Names.vi. Possible reasons: LabVIEW: This property is writable or this method is available only when the VI is in edit mode."
You need to select the item for Unbundle by name while editing the VI, not at run-time.
If the main VI defines the cluster, why do you need to read the control labels at r
un-time? Why not just use a string control in your cluster instead of constants and labels?
Here's an example of reading and trying to write label text for controls in a cluster. I really don't think you need to do anything like this, but I don't really understand your application.
Attachments:
Read_Cluster_Control_Names.vi ‏47 KB

Similar Messages

  • Convert array of clusters to cluster of arrays without for loop

    Hi!
    Here's a problem: I've got an array of clusters (array of messages). Each cluster consists of elements of different data types: double (time), cluster (parameters), char (station id), byte (message code). I know one cluster size and the array size. I need to draw a time graph. How can I convert the array of clusters to a cluster of arrays (array of time values, array of parameters clusters, arrays of chars and bytes).
    I post this question because in my real array of clusters each cluster consists of 162 elements and some of them are clusters themselves, so I realy dont want to wire "for" loops as was advised in other topics.
    Hope to get fresh ideas. Memory management? Type Cast? FlatternStrings and variants? Anything!
    Thank you. 

    Idea wrote:
    Hi, everybody! Glad you read the post! 
    There is the cluster in the attachment. The application I make is a TCP client. The cluster is a message. Actually I get a string, find edges ("DIAG" - begin, "GAID" - end) and then I use "unflattern to string" for making the cluster. I cann't make another structure of the message - I didn't make the server. My client has a buffer of recieved messages. I need to plot graphs of different cluster elements for all messages in my buffer (for example the Time 1 element). If I use the for loop it would be too slow. The idea was to convert all buffer to a 2D array of U8 and then use type cast to get the cluster of arrays. Then it would be easy to take ane cluster element and send it to graph.
    I didn't sucseed yet. 
    Idea. 
    What is your question about?
    A) convert the string you get from I don't know where to the giant cluster, the red part in your message, or
    B) making a graph out of some element from that giant cluster, who now is in an array, the blue part in your message.
    The code you showed us looks a solution for question A but no loop is needed for this. So why bother about a loop that would be too slow here?
    Also your code start from an array of U8, so where's the string?
    If you could provide a string that needs conversion, we could try another way ... ...
    Question B can easily be solved with a for loop and "unbundle by name". Don't know where you get the idea that a loop would be too slow
    Open G library has a lot of VI's to retrieve specific elements from clusters, maybe one of those could help solve the problem.

  • Data Logging a programmatically created shared variable of cluster or array datatype into citadel DB

    Hi,
    Is there a way to log a programmatically created shared variable of cluster or array datatype into citadel DB?
    I have attempted to programmatically create a shared variable of type 'double' and was able to successfully log the same into Citadel DB. In the attachment, Please refer to the attached project SV_TC.lvproj and specifically to SV_W.vi for the code that i have used (W.png file shows the dB in MAX and shared variable in NI Distributed System Manager)
    However when i tried the same approach to create a shared variable 'array of double', i noticed that traces are not getting created and hence data logging isn't happening into the Citadel DB. I was however able to write and read the shared variable array without issues. The same is true with cluster datatype also. Please refer to SN_NW.vi for the code that i have used - only difference from SV_W.vi is that i have tried to create a shared variable of type 'array of double'
    One observation is that if i create an 'array of double' or cluster in a shared variable library using the project explorer and deploy, i could see that these being logged into Citadel DB.
    Hence i want to understand what could be done to achieve the same programmatically? Could you please advice?
    Regards,
    Sridhar
    Attachments:
    SV_TC.zip ‏3925 KB

    Why is the transaction happening over remote?
    Because we need the information to be on our database immediately when they submit it.
    I don't know anything about streams or replication.....
    The web database is run by the company that hosts our web site. We use PL/SQL to show the pages and output the html. It fetches the data the customer is requesting from our database, but I'm struggling to get the best way to insert into our database from there.

  • Save cluster of arrays

    I have to save cluster of arrays to the file. I have to have different values saved so user can pick cluster with specific values. I put example of cluster in attachment.
    Is there any way to do this?
    Zoran
    Attachments:
    RT-HK structure#1.vi ‏87 KB

    Easiest would be to do something like in the attached (LabVIEW 7.1, that's what you have). Let me know if that makes sense to you.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    RT-HKstructureMOD.vi ‏154 KB

  • Cluster into array of bit

    Hi
    Well, my title is my question. Is it possible
    to transform a cluster to an array of bit ? I am
    on LabView 5.1.
    Thanks in advance

    Sure. In LabView 6.1 there's a Cluster to Array function in the Array or Cluster palette. If that's not available in 5.1 you can use the Unbundle function (in the Cluster palette) then the Build Array function (in the array palette).

  • Lightroom CC crashes on startup and "sign out, sign in" solution doesn't work, any other solutions?

    I downloaded LR CC on myMacbookpro and iMac.
    LR5 was installed on both of them previously.
    After installing, LR CC works fine onM Pro, but keeps crashing on iMac.
    I've tried the "sign out, sign in" solution, but never works for me.
    Is there any other solution I can try?
    Since the update, I've edited photos on my 13' M pro instead of 27' iMac and it is getting annoying...

    Did you update to LR 6.0.1 / LR CC 2015.0.1 ?
    <snip>
    von Pete.Green (30. April 2015)
    Today we released an update to Lightroom, Lightroom CC 2015.0.1 (Also, Lightroom 6.0.1) is now available.
    This bug fix addresses issues related to launching Lightroom and accessing online help.
    To Update:
    Choose "Help > Updates" within Lightroom, or click Update from the Creative Cloud desktop application.
    (If you're an early downloader, you may need to restart the CC Desktop application for update to show)
    <snip>

  • I can no longer get my complete bank statements online, and my bank blames the Safari update and tells me to switch to Firefox.  Is there no other solution?

    I can no longer get my complete bank statements online, and my bank blames the latest Safari update and tells me to switch to Firefox.  Is there no other solution?

    I would feel dreadful If I thought had caused you a problem.   The warnings about Java are fully justified but providing you are communicating with a known source, and as I said, you disable it the moment you have finished, you should be safe.
    It might also be worth asking your bank what problem they have and would it be the same if you were using Firefox, for example.
    Like you, I am very security minded, in fact I won't even put my bank details on my Mac let alone run my account that way. 

  • My Ipod shuffle appears in itunes on mac but not on windows 7 even though we have the latest update of itunes. We have also tried the other solutions on the apple support site.

    My Ipod shuffle appears in itunes on mac but not on windows 7 even though we have the latest update of itunes. We have also tried the other solutions on the apple support site.

    Hi reinkristine86!
    I know you’ve said that you have tried other suggestions for troubleshooting this issue, so pardon me if you have already seen this article, but have you tried all of the troubleshooting steps listed in the article below?
    iPod not recognized in My Computer and in iTunes for Windows
    http://support.apple.com/kb/ts1369
    Thanks for coming to the Apple Support Communities!
    Cheers,
    Braden

  • My iPhone 4 appears with no service every day, i have to restarted and a few hours later again the same problem, Any other solution please???

    my iPhone 4 appears with no service every day, i have to make restart and a few hours later again the same problem, Any other solution please???

    This is almost always a symptom of a phone that was jailbroken or hacked to unlock it.
    Where did you get the phone?

  • Since upgrading Iphone to iOS 5.1.1 it does not automatically use wifi internet when wifi is available. It has been draining my mobile data. I can only manually change settings with cellular data everytime I get home. Any other solutions?

    Since upgrading Iphone to iOS 5.1.1 it does not automatically divert to my wi-fi internet when wifi is available in my home. It has been draining my mobile data I  now have very high bills from my mobile carrier for high data usage. I can only manually change settings in the Network and turn cellular data on and off everytime I get home and leave the home. This is very frustrating as it wasn't a  problem until the upgrade. I have spoken to a few people that this has happened to. Has anyone found this problem and does anyone have other solutions?

    Please disregard this question. I'll submit a shorter and more direct question. Thanks.

  • Windows 8 Trackpad Not Working - Other Solutions Didn't Help

    Hello all,
    I recently installed Windows 8 Pro 64-bit on my Mid '09 MacBook. I had Windows 7 and 8 installed before and working, so I know it is compatible. Unfortunately, my trackpad does not work at all; No clicking, moving, nothing. I tried other solutions like changing the driver to the USB Input Device, but that will not work. I manually installed the 64-bit drivers from BootCamp v5. Here is a picture of my Device Manager: http://puu.sh/2Abyy
    As you can see, I am missing drivers for my Coprocessor and an Unknown Device (Which I believe is my Trackpad, but it could be something else)
    Thanks in advance for your help.

    The update to boot camp is now available!
    Just installed Windows 8.1 Pro to my MacBook Pro, Retina, Mid 2012, OS X 10.8.5: Memory 16GB 1600MHz DDR3
    http://support.apple.com/kb/dl1638
    Boot Camp Support Software 5.0.5033
    This solved the Trackpad Right Clicking issue (not working) as well as tapping.
    The wireless and network connectivity issues where resolved as well. The Boot camp support software enabled a boot camp control panel available in the windows 8 system tray and from there you can enable the track pad to tap and use the secondary click.

  • Photoshop CS2 opens but wont perform any task (open jpgs, create new jpgs etc). Other CS2 progs such as indesign are fine. MAC shop, couldn't fix, said I should ty install op system 4 Powerbook G4-dont have discs- can I get them?other solution? OS 10.4.11

    Photoshop CS2 opens but wont perform any task (open jpgs, create new jpgs etc). Other CS2 progs such as indesign are fine. MAC shop, couldn't fix, said I should try install op system 4 Powerbook G4-dont have discs- can I get them? or other solution? Am using OS 10.4.11 Thanks for any help

    Hi
    I actually dont think its Lion (sorry i put that as couldn't remember) as not on that computer at the moment, its at home, I am at work. I know CS2 is compatable with whatever OS I am using because I can using CS2 indesign etc and I was able to use CS2 photoshop until I updated the Camino browser (I believe this is when it stopped working). I have CS5 but it wont work at all on my Powerbook G4.
    I can send a message later with the OS I am using and maybe you can suggest other help? They told me in the MAC shop to try and get the installation discs. They also said I would be able to get these via Apple's 'media replacement programme' which I cannot find anyway! To be honest, I am not even sure getting the install discs will work but I'll try whatever I need to try and get Photoshop working on it again!
    Thanks

  • Exclamation mark appears instead of photo. Recently upgraded from i mac to Macbook air and all was transferred over. I have run all the repair and rebuild functions in iphoto. Any other solution?

    Exclamation mark appears instead of photo. Recently upgraded from i mac to Macbook air and all was transferred over. I have run all the repair and rebuild functions in iphoto. Any other solution?

    Since iPLM failed to help try the following:
    Starting over from scratch with new library
    Start over with a new library and import the Originals (iPhoto 09 and earlier) or the Masters (iPhoto 11) folder from your original library as follows:
    1. Open the library package like this.
    2. Launch iPhoto with the Option key held down and, when asked, select the option to create a new library.
    3. Drag the subfolders of the Originals (iPhoto 09 and earlier) or the Masters (iPhoto 11) folder from the open iPhoto Library package into the open iPhoto window a few at a time.
    This will create a new library with the same Events (but not necessarily the same Event names) as the original library but will not keep the metadata, albums, books slideshows and other projects.
    Note:  your current library will be left untouched for further attempts at a fix if so desired.
    OT

  • HT6533 Where can I find the third party app? I'm really in trouble that I can't record and check my blood  glucose. Of cause I exported the data from app, but It's not readable for me. Please reply ASAP and give me other solution.

    Where can I find the third party app?
    I'm really in trouble that I can't record and check my blood  glucose.
    Of cause I exported the data from app, but It's not readable for me.
    Please reply ASAP and give me other solution.

    You find third-party apps in the App Store. What app are you looking for? Due to problems, Apple removed the ability to record that information in Health. You can always go back to whatever you used before three weeks Health was released. Why can you not check and record your blood glucose? I would assume you check it using blood samples and a glucose meter which has nothing to do with your phone. You should be able to record it in any number of apps, from Notes to purpose made third-party apps.

  • How to disable Setting button in Tools - Options - Advanced - Network..i've read an article that solved this problem..but thats problem contains web adress that couldn't be opened..any other solution??? thanks before best regard

    How to disable Setting button in Tools - Options - Advanced - Network..i've read an article that solved this problem..but thats problem contains web adress that couldn't be opened..any other solution???
    thanks before
    best regard
    -ariansyah-

    You can disable or remove that button, but that won't prevent users from making the changes on the about:config page directly.<br />
    You can lock the related network.proxy prefs if you do not want users to change the connection settings.
    See:
    *http://kb.mozillazine.org/Locking_preferences
    * http://kb.mozillazine.org/network.proxy.type
    * http://kb.mozillazine.org/network.proxy.%28protocol%29
    * http://kb.mozillazine.org/network.proxy.%28protocol%29_port

Maybe you are looking for

  • CDATA element mapping in Biztalk Mapper

    Hi, we have a input message which has an element called ParticleName. an example is:  <ns:ParticleName><![CDATA[TestingName]]></ns:ParticleName> There is a biztalk map which takes this message and transforms it into another. When i try test map, it d

  • How can i join this two query?

    I have two table table employee and CSEReduxResponses In table employee i have CREATE TABLE [dbo].[employee]( [emp_id] [int] IDENTITY(1,1) NOT NULL, [emp_namefirst] [varchar](255) NOT NULL, [emp_namemiddle] [varchar](50) NULL, [emp_namelast] [varchar

  • Invoking class from loaded swf

    I'm working on a project where I'm loading in a video player as an external swf to my main movie. I'm not able to get my video or the custom player to show up, but sound is there (I've done the whole Library>New Video thing, so I have a video object

  • Load Large Image

    Hi. I have jpg image with 6.5Mb, 6000px*4500px. I load the picture to "Image" control with the same size(6000*4500) and the "Image" control is in the "Panel" control in order to enable "Scrollbar" so user can navigate picture. However, when user brow

  • Changing fulfillment URL

    As often happens, our test ACS4 setup gradually morphed into our production ACS4 setup, and this has left us with some baggage. The fulfillment URL incorporates a DNS machine name (e.g. zz321123.us.archive.org) that is specific to a cluster architect