Labview vi that takes data and populates a list/array

Hello everyone, I was assigned to create a device that acquires voltages. I found a Data Acquisition box that does just that (not from NI, so I had to use activeX).
Although I am only electrical, and don't have too much experience with programming, I tried a VI that could capture this data.
The following is something that works but does not do exactly what I need. It only acquires the data for a specific channel selected manually using a numeric control and displays it on "data" digital indicator. What I have been trying to do is do the channel change automatically, starting from channel 0 to 6 (increment by 1), and each time populating some kind of array or list with this value until all 7 readings are taken. I tried For Loop, which seems easier to use, with a zero as a starting constant, but as hard as I try, it won't work. I would appreciate any help on the matter.

joshorola wrote:
Hello everyone, I was assigned to create a device that acquires voltages. I found a Data Acquisition box that does just that (not from NI, so I had to use activeX).
Although I am only electrical, and don't have too much experience with programming, I tried a VI that could capture this data.
The following is something that works but does not do exactly what I need. It only acquires the data for a specific channel selected manually using a numeric control and displays it on "data" digital indicator. What I have been trying to do is do the channel change automatically, starting from channel 0 to 6 (increment by 1), and each time populating some kind of array or list with this value until all 7 readings are taken. I tried For Loop, which seems easier to use, with a zero as a starting constant, but as hard as I try, it won't work. I would appreciate any help on the matter.
Your image is pretty useless, because we cannot see most of the code (It is hidden in other frames of the stacked sequence structure!) The use of stacked sequences typically is discouraged. Don't use them!
Also your while loop is unecessary, because it only iterates once. If you would remove the while loop, nothing would change.
Since you know the number of channels (and thus iterations) before the loop starts, a FOR loop is correct. We cannot tell what you did wrong unless you show us what you tried.
Please attach your actual VI. Thanks
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • TS3899 Whenever I send an email, the person who receives it gets something that says References: and a long list on nonsense to do with Gmail before the actual message appears.

    Whenever I send an email, the person who receives it gets something that says References: and a long list on nonsense to do with Gmail before the actual message appears.
    Here is an example....
    References: <[email protected]> <[email protected]> <[email protected]> <[email protected]> <[email protected]> <[email protected]> <[email protected]> <[email protected]> <[email protected]> <[email protected]> <[email protected]> <[email protected]> <[email protected]> <[email protected]> <[email protected]> <[email protected]> <[email protected]> <[email protected]> <[email protected]> <CAM-_T=[email protected]> <BLU0 ,[email protected]> <CAM-_T=CAUP+9GyYG-_ecOazo=[email protected]> <[email protected]> <[email protected]> <[email protected]> <[email protected]> <[email protected]> <[email protected]>
    > Mime-Version: 1.0 (1.0)
    > In-Reply-To: <[email protected]>
    > Content-Type: multipart/alternative;
    > boundary=Apple-Mail-85351E4C-6385-4256-BE9E-27C10517E136
    > Content-Transfer-Encoding: 7bit

    It seems pretty clear to me.
    When you turn off your primary account the only active account the phone can send via is your Gmail account, and that's what you're seeing.
    The question is why do you need to turn off the primary account.. which you answer:
    When that is set up as the primary server and turned on I get a message that says "the recipient was rejected by the server
    That's because your ISP (megalink) is using access controls to manage who sends mail through their mail server. The first thing they're probably doing is using IP address restrictions - essentially saying they'll only relay mail from any machine on their network (including dialup/DSL/etc. customers), but you're not on their network, you're on an AT&T (or Verizon) 3G connection which isn't in their IP address range, and therefore not valid as far as their mail server is concerned.
    The typical solution to this is authentication - by authenticating to their server (via username and password) you identify yourself as a customer and they should relay your messages. So check your phone to ensure that you have authentication enabled for your primary mail account.
    If that fails (e.g. they don't support authenticated SMTP) the next option would be to relay the message through your cell provider's mail server - as an AT&T wireless customer you should be able to relay through AT&T's mail server... likewise for Verizon (or whatever national carrier your iPhone is on). You'll need to check with your carrier's site for the specifics of the mail server address to use.

  • Newbie - XML File - How to load data and populate tables

    Hi,
    I'm newbie to XML data handling.
    I have a file that is provided in XML format with data from an external system.
    I need to load data from that file and populate some field in one or more tables.
    I have two options:
    1. Load the XML file directly from OS and populate the tables directly (I'm not sure if this is possible or not)
    2. Load the entire XML file from OS into a CLOB or a BLOB(?) and the select the data form the CLOB and populate my tables.
    I need some guidance about what is possible and how to do it.
    My preferred approach if possible is to load the data directly from OS and populate the target tables without loading into the database previously.
    Thanks for the help.
    Tech Info:
    OS : Unix / Windows
    DB Version: 11.2 or 11.1
    JF

    forum has many examples
    use search
    as example see
    Re: Load xml data in Oracle table
    Re: Load an XML file into table(s)
    Re: load a file

  • How do I use one set of XML data and populate multiple layouts with it?

    I have an XML document with root element BOOK.  Inside BOOK are PAGEs.  (I also have each PAGE as it's own XML file, so that I can update each PAGE individually.)
    I have a print layout of 6"x9" and I want to create an iPad layout (H & V).
    When I create the V layout, I have the 6x9 master set to "scale" in liquid layouts and it works great.  But in my XML structure, everything gets duplicated.  Now there are two sets of data.  When I create the H layout, now I have three sets of data.
    So then I tried deleting everything in my iPad masters and setting them to be based on my print masters, but the content isn't scaling.
    Let me know if you have questions, because I'm not sure where I might need to clarify.  Thanks in advance!

    Roger Wilmut1 wrote:
    nategm wrote:
    On my MacBook Pro, if I get a USB-headphone connector (to add another audio port), will I be able to set one audio port as input and the other as output?
    Yes, either way round. In System Preferences>Sound you can set the input and output ports separately.
    Roger, the System setting have -Nothing- to do with the question being asked. Do you use Logic Pro audio software? If you did you would know Logic has it's own audio settings that run independently from the System audio. There's also the fact that Maverick has problems with "some" older USB 2.0 audio hardware. Basically, this is not a slam-dunk, that's why I suggested asking someone if they've used this combination before. Although... the USB audio device is cheap ($10) it might be worth it to try. Still.............**
    ** I question the wisdom of using cheap audio hardware on a computer that cost $1000+, software that costs $200 and then using the internal audio chip ($2) and an external monitoring device that costs $10. Defeats the whole purpose of using professional audio software.

  • Does Anyone Know Of The fxscript Function In FCE That Shows Date And Time?

    iMovie reads the Date and Time of a clip but FCE does not.
    Simon, Piero and I suspect there must be some undocumented fxscript function that could do this.
    If anyone has any information, please let us know.
    Ian.

    Thanks for all your replies.
    This was the info I got from Joe:-
    "As far as I've been able to tell, it's not possible to grab much of any meaningful information from FXScript. Timecode and Reelname are just about all FXScript knows about. And ReelName isn't particularly useful.
    It's theoretically possible to get this information into a generator using a text filter, XML and a shell script, but I wouldn't exactly call the process convenient or intuitive.
    Sorry, this has come up dozens of times over the past five years. I'm hoping this kind of thing is possible with FXPlug."
    It doesn't mean a lot to me but I have passed it on to the aforementioned FXScript-writers who will no doubt understand it better.
    Ian.

  • I get an error message that says date and time can't be set

    I am ready to send this thing back as it appears to be the first apple product that does not perform as advertised. I have been through the menus and set the time and date the best I can and I still cannot log into itunes.

    You have it set to automatically set the time and date.  To do that it has to be able to reach out to iCloud to get the time and date and something is blocking it from being able to do so.  So either need to fix the network/Internet connection or set it to not automatically set the time.

  • Upgrade labview project that has classes and subVi's

    We have a  LabVIEW  project in LV 8.5( freated by a different developer) that has classes, and various Vi's , subVi's.
    I am looking to upgrade it to LV 2014.  To be safe, I wanto to copy everthing into new classes( renamed from old ones), rename all the Vis( I hav ealready done that in Windows explorere, though not yet added them to project), and use them with renamed subVI's.
    The old classes and VI's should remain in the same folder. 
    What is best way to do that?
    I found something here
    https://lavag.org/topic/17741-the-nightmare-that-is-renaming-a-class-and-its-folder/
    but this basically suggests many methods, and then, would delete the old structure.
    Also, what happens to the "controls" that show up under "private" folder?
    I have never worked with LV classes, so pardon any lack of knowledge.
    sed_y

    4) All the subVI's that are being used and reside in different directories, will be made copy of into their own subdirectories, with the originals zipped.
    That's the one you need to be careful of. If you have any shared code or re-use libraries outside of the project folder then these will get loaded and saved in LV2014. Use the 'files' tab of the project folder to see which files aren't in your project subdirectory.
    Anything that is in user.lib you can copy from the 8.5 user.lib to the LV2014 user.lib folder and your project will automatically find them.
    There are some useful tips here about working with LabVIEW projects and keeping all of your code in sensible locations. Anything relating to your project should be within the project subfolder and any shared code should go in the respective user.lib/vi.lib of the appropriate LabVIEW version - this does mean that you have a copy of the VI for each version of LabVIEW so you will need to be careful about making sure if you change it in one version you change it in the other. Even better still is to make your shared code into VI packages - then you can install them for any LabVIEW version and it will automatically save/compile them for the appropriate version. We used to have all of our re-use code in user.lib but it made moving between LabVIEW versions a pain so we started using VI packages and haven't looked back.
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

  • Offline form in iPad DPS App that stores data and then sends when connected to internet

    Hi there,
    I've built an "app" using InDesign and DPS. Great, whiz bang 360 spins, video, etc, etc but at the end I would like to have a form to record the users experience on the ipad or to record their experience of an event where the iPad was used. I have created a form in Acrobat XI, exported to FormCentral as a trial, linked to the form using a web frame within InDesign and then exporting out with DPS. App works fine, can see form, enter data and submit, check data via FormCentral admin system, all good.
    However, is it possible to create the same app that works identically offline? I know the whiz bang stuff will work as it's built into the standalone app. I guess the html form will need to be stored locally, when a user submits the form it needs to write to the iPad and store locally and if/when the iPad makes a connection to the internet it can send the stored local data upto FormCentral for processing. The form would be filled in by multiple users at different times.
    From trawling the web I can see forms can write locally to the iPad but then I also see pages of code, my eyes glaze over and I run for the hills. I just wondered if there was an easy solution? If not, can this be raised as an item in the wishlist for both FormCentral/DPS/Indesign? A nice clicky interface for us "non-coding" designers.
    Any help would be most appreciated,
    Thanks,
    Rog.

    Hi Randy,
    Thanks for coming back to me on this. Instead of a html form, can a pdf form embedded within a DPS app work?
    I see that pdf forms can be filled in offline and data sent went back online but unsure as to whether this approach will work within a DPS app.
    I saw a post you responded to
    http://forums.adobe.com/message/3506205#3506205
    You mention an article to the offline form in more detail but I get a broken link.
    Thanks again.

  • My new apple tv says that the date and time can't be set

    My new apple tv say that it cannot set the date and time

    I'm having the same issue today on several of our Apple TVs. I am the Director of Technology in a school district and starting this morning I am getting reports that Apple TVs are not working and upon investigation they all sit at setting date and time. All network setting are properly configured. The firewall is set to allow port 123 both TCP and UDP from all internal clients. It occurs both over WiFi and Ethernet.
    Is the Apple Time Server experiencing issues?

  • Date and time stamp in array

    Hello,
    I am using Labview 8.0 and I would like to include a date and time stamp each time data is collected and include this as a 5th column in the final array.  I inserted a random number generator instead of devices so it would be easier to understand and test.  I am new to Labview and have never created a date/time stamp before.  Any help or advice would be appreciated.
    Dave
    Solved!
    Go to Solution.
    Attachments:
    Timestamp.vi ‏16 KB

    Yes you need to convert all to strings since the timestamp in HH:MMS is a string.  In the string palette, there is a sub-palette full of numeric to string conversion tools.  Use the Number to Fractional String to convert all numerical data to strings.  Use the Format/Date Time String function (found in Timing palette) to convert the timestamp to HH:MMS.  See the format string in my example.
    - tbob
    Inventor of the WORM Global
    Attachments:
    TimestampAssistance[1].vi ‏14 KB

  • Songbird Damaged iTunes Meta Data and Recently Added List. Best way to fix?

    Hello, Apple forums.
    A while ago (Long enough to fix some of the broken Meta data), I tried out Songbird as an alternative for when I'm gaming and want a little extra resources.
    Unfortunately, I set it up to sync between iTunes and Songbird, and Songbird "updated" my iTunes information and removed META data in the process for any song played on Songbird.
    It also had the recently added moved to "Songbird > Recently Added," and proceeded to fill it with every song in my library.
    My music is stored on a Western Digital MyBook external HDD (320GB) formatted to FAT32.
    I have fifteen playlists, and would like to retain ratings and play counts on the songs.
    My library reads "8196 songs, 19:15:40:31 total time, 50.13"
    Granted, a couple hundred of these are the ones missing the META data and are broken entries (IE has all the data listed but does not have the file where it should be) and their META-less version added from %library%\music\unknown artists\unknown album\
    (The tracks retain their real name with the track number prefixing them, it's just a matter of going through all of the songs and matching them up)
    Given that this is as it is, how should I go about this?
    I would also like to keep the apps for my 2nd Gen iPod Touch (iOS Pois0ned 4.2.1).
    All music is either imported from a CD or an independent artist.
    I don't have access to all of the CD's, nor do I particularly want to manually re-add everything.
    I am more concerned with the recently added playlist being fixed! I understand that I will have to cut my losses on the META data!

    I thought you said Songbird had removed metadata. Most files carry metadata in a tag. If a file "goes missing" because another program chooses to relocate it iTunes will retain an entry in the library with all that information. The FindTracks script makes a bash at locating the moved files in a number of alternate locations, including the unknown artist/unknown album folder or the main Music folder. If the files have actually had metadata removed, but have a tag, then iTunes will read the damaged data and update itself. Not necessarily what you want. For files that are in a logical artist/album layout but don't have tags you could be better off repairing tags first with, for example, MediaMoney's AutoTag from Filename feature.
    tt2
    I had to look up RAT. I'm guessing you meant something like remote admin/access tool. By all means be wary of anything recommended on this site but to accuse me of being underhand without any evidence is hardly the way to start a fruitful conversation. I thought you wanted help here...

  • Error in reading workflow container data and populate it in web dynpro pdf

    Hi,
    Please advise on the following issue.
    I have an adobe interactive form built inside a webdynpro java application, on a RFC call this form is sent as an xstring and the BAPI triggers a workflow in the backend. At any point of time, on passing a workitem id, a custom function module returns the form data that exists in the workflow as an xstring back to webdynpro java, intenally this custom FM iterates through the internal table binary contents for IT_SOLIX_TAB and produces an xstring format out of this binary content. This xstring is passed back to the webdynpro java application so that the contents can be displayed in a pdf.
    I assume that since the data source context structure which has to be populated with this wf container form data is exactly the same as the one which generated this pdf in webdynpro java before the workflow trigger, the WDINTERACTIVEFORMHELPER.transer.... method should be sufficient to re-populate the wd java based pdf with wf container data.
    But I am unable to do this as I am getting "PDFDocument processor failed to process input pdf request" at this step. Though I can see that the RFC is returning the binary data
    Versions : ALD 8.1, CE 7.1 SP5 NWDS, Adobe reader 9
    Awaiting your inputs.
    Thanks
    Lisha

    Hi Hari,
    Why do you use a FM to read the container? You couldn't use bindings? Or are you reading the container of the workflow in a separate program?
    Are you sure the container element is filled when the workflow is started? If so how is it filled, in the event binding?
    Regards,
    Martin

  • Error in reading workflow container data and populate it in web dynpro pd

    Hi,
    Please advise on the following issue.
    I have an adobe interactive form built inside a webdynpro java application, on a RFC call this form is sent as an xstring and the BAPI triggers a workflow in the backend. At any point of time, on passing a workitem id, a custom function module returns the form data that exists in the workflow as an xstring back to webdynpro java. This xstring is passed back to the webdynpro java application so that the contents can be displayed in a pdf.
    I assume that since the data source context structure which has to be populated with this wf container form data is exactly the same as the one which generated this pdf in webdynpro java before the workflow trigger, the WDINTERACTIVEFORMHELPER.transer.... method should be sufficient to re-populate the wd java based pdf with wf container data.
    But I am unable to do this as I am getting "PDFDocument processor failed to process input pdf request" at this step. Though I can see that the RFC is returning the binary data
    Versions : ALD 8.1, CE 7.1 SP5 NWDS, Adobe reader 9
    Awaiting your inputs.
    Thanks
    Lisha

    Hi Hari,
    Why do you use a FM to read the container? You couldn't use bindings? Or are you reading the container of the workflow in a separate program?
    Are you sure the container element is filled when the workflow is started? If so how is it filled, in the event binding?
    Regards,
    Martin

  • I have a vi that reading data and put it in a multicolumn listbox one by one, I want to know how can I do it if i will use MS powerpoint instead of multicolumn listbox.

    i want the data to be transfered in MS Powerpoint like what multicolumn listbox act in my vi.
    (would you mind if i will ask for an example)
    Thank You

    Good morning:
    I think you might have an easier time doing this with a Powerpoint macro than with Activex. You can save your data to a spreadsheet file, and then let the PPT macro read that file and format it the way you like. You will have to have two programs operating simultaneously, but that shouldn't be a problem.
    Eric
    Eric P. Nichols
    P.O. Box 56235
    North Pole, AK 99705

  • Facebook won't load properly. Takes forever and then I get a script page with log-in and then that takes forever and gives me further script that won't let me access anything. Other sites load and work OK!

    Started after last auto update several days ago. A few other sites are slow to load while many are good but Facebook just won't present it's usual mix of pre-programmed scripts and links but comes up eventually as part HTML script with a log-in box and when you log-in it then takes forever again and just gives HTML type script for "Friends" "messages" etc. but if you click these it goes nowhere!
    Also it won't let me clear history at all despite many tries. I removed and reloaded the program last night but no positive effect.

    I still haven't resolved this problem. Here is some more information...
    youtube is the only website that has started working, but it sometimes stops working again.
    There are many other sites that don't work, cnn.com, washingtonpost.com (sometimes), and a lot of others.
    I have contacted our internet service provider and they said that they had nothing to do with the problem.
    Some websites will not work at all. Safari tells me that it can't find the server. Some that do this are ups.com, computerworld.com, and others.
    I think that the problem is that, for some reason, our mac computers can't access certain servers where we are. (We are at a small ski resort (on the mountain) in Canada.) I think this because when a site doesn't load properly there are several errors and they are all "can't find host" errors from a couple of the same sites (ex. example.something.something).
    *Also, I ran a test on speedtest.net on the laptop and one of our iMacs and the results were way faster than anything actually loads/downloads or than the activity monitor shows, even when checking the activity monitor at the same time as running the test.

Maybe you are looking for

  • Open PDF file in a new browser window

    I have a PDF file on the harddrive and I call a function from BalusC : public static void downloadPDF(FacesContext facesContext, String path, String fileName) util.Logger.append("Path = " + path ); util.Logger.append("file name = " + fileName); Exter

  • What is the difference between a mac-book, and an I-pad?

    What is the difference  between a mac-book and an I-pad?

  • Can't connect to web despite full-strength connection on wifi

    Alright, I've scowered the internet and read several other topics, but none of the suggestions presented there helped fix my problem, so I'm throwing this at the support discussions. Thanks in advance for your help/suggestions/advice! My wife and I l

  • How to calculate HASH_VALUE for Specific SQL

    I have an auditing trigger and want to filter out known statements. I can, from within the trigger, obtain the SQL that fired the trigger (dbms_standard.sql_txt function). I want to be able to calculate the HASH_VALUE for this SQL to use in a decisio

  • How to find revision level

    hi my requirement is that, i have to get the revision level for each material number in a specific plant, is there any function module which can get this data, actually this revision level has to be brought from table AEOI table, but its key fields a