Convertion to integer from array and logical mask

hi all.
please look at my VI.
1)i want to convert this array to 4 display. each displaywill show one element(=1 row, in this case) from the array. 
    how i do it ?
2) i need to make logical mask  to those numbers. how i convert the integer number to binary and make this logical mask ?
with best regards
pro111
Message Edited by pro111 on 12-02-2006 05:41 PM
Attachments:
Untitled 2.vi ‏6 KB

Hi pro,
I did not follow you and came up with another example while Christian was doing his.
This is my guess at what I thought you were asking.
Ben
PS Christian, I am not trying to side step your example. I figured if I drew it up I should post.
PPS talk about a post collision!
Message Edited by Ben on 12-03-2006 12:32 PM
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction
Attachments:
ConvetI32.JPG ‏76 KB

Similar Messages

  • I recently converted to PSE13 from 11 and noticed what appear to be duplicate files.

    I recently converted to PSE13 from 11 and noticed what appear to be duplicate files named: BreezeData, CAXMPFiles, Style, syncdb, and WaldoData.  Can these be deleted?  Do they belong to the previous version 11?  If they do, then I may not want to delete them if I ever have to run PSE11 again.

    What you are seeing are default subfolders within your catalog folders. Don't mess with the contents of the catalog folders, they don't contain any of your picture files, only the databases and their associated assets. You'll find such subfolders in any of your catalog folders whatever their version (11 or 13). They are not duplicates.
    You should keep the PSE11 catalogs if you want to use them with PSE11 (you can keep both versions on your computer). Of course, you can delete the catalogs you no longer want to use. Simply use the catalog manager (menu File/catalogs...) and use the delete button; the catalog to delete should not be the active catalog, select another one first. Deleting catalogs this way will delete the subfolders you are seeing, like BreezeData etc.

  • Convert.To​Byte and logical masks, from VB to LabVIEW

    Hi guys,
    I have to write a VI communicating via RS232 with a microcontroller for a PWM application. A colleague has given me the GUI he has developpd in VB and I would like to integrate it into my LabVIEW programme by converting the VB code into Labview code.  Here's the code:
    Private Sub LoadButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles loadButton.Click
            Dim bufLen As Integer = 12      // Buffer length
            Dim freq As Integer = 0      // frequency
            Dim pWidth As Integer = 0      // pulse width
            Dim dac As Integer = 0       // Value used in oscillator setting for generating pulse frequency
            Dim addr As Integer = 0      // Address of the pulse width in the pulse generator.
            Dim rTime As Integer = 0      // duration of machining/pulse train in ms.
            Dim returnValue As Byte = 0      // A variable for storing the value returned by the 
                                                           //microcontroller after it receives some data
            Dim buffer(bufLen) As Byte       // creates an array of bytes with 12 cells => buffer size = 8 x12 = 96 bits
    // can you explain a bit please I know you're converting the entered values into byte and put them one by one in a specific order. This order is how the 
    //microcontroller expects them
                addr = (Floor((pWidth - Tinh) / Tinc)) // Formula from hardware, calculates address setting for pulse generator to set pulse width.
                buffer(0) = Convert.ToByte(Floor(3.322 * (Log10(freq / 1039)))) // Caluclates OCT value for use in setting oscillator for pulse freq.
                dac = (Round(2048 - ((2078 * (2 ^ (10 + buffer(0)))) / freq)))  // Calculates DAC value for use in setting oscillator for pulse freq.
                buffer(1) = Convert.ToByte((dac And &HF00) >> 8)                         //
    // &H is the vb.net to tell it its hex code, F00 gives the top 4 bits from a 12 bit value.
                buffer(2) = Convert.ToByte(dac And &HFF) // For values that are larger than 256 (8bits) the value needs to be split across 2 bytes (16 bits) this gets the //bottom 8 bits.  &H is the vb.net to tell it its Hex.
                buffer(3) = Convert.ToByte((addr And &HFF0000) >> 16) // This value may be so large it requires 3 bytes (24bits). This gets the top 8 bits.
                buffer(4) = Convert.ToByte((addr And &HFF00) >> 8) // This gets the middle 8 bits.
                buffer(5) = Convert.ToByte(addr And &HFF)// This gets the bottom 8 bits.
                buffer(6) = Convert.ToByte((rTime And &HFF0000) >> 16) //This value may also be 3 bytes long.
                buffer(7) = Convert.ToByte((rTime And &HFF00) >> 8)
                buffer(8) = Convert.ToByte(rTime And &HFF)
                buffer(9) = Convert.ToByte(2.56 * ocpBox.Value)  // The ocp pulse period is formed of 256 steps or counts, so if a percentage is requested, this formula gives the number of steps/counts required to set the pulse width
                buffer(10) = Convert.ToByte(tempBox.Value)
                If (tempCheck.Checked = True) Then
                    buffer(11) = 1
                Else
                    buffer(11) = 0
                End If
                freq = ((2 ^ buffer(0)) * (2078 / (2 - (dac / 1024))))
                pWidth = Tinh + ((((Convert.ToInt32(buffer(3))) << 16) Or ((Convert.ToInt32(buffer(4))) << 8) Or (Convert.ToInt32(buffer(5)))) * Tinc)
                ' Connect to device
                serialPort1.Write(1) // Sends the number 1. This tells the microcontroller we are about to start sending data. It should respond with a zero if it is ready 
                                             //and the connection is good.
    The line "serialPort1.Write(buffer, 0, bufLen)" sends the buffered data where the variables are: buffer =  the buffered data; 0 = the position in the buffer to start from; bufLen = the position in the buffer to stop sending data.
    What's the best way to deal with the Convert.ToBytes and the logical masks And ??
    Thanks in advance for your time and consideration,
    regards
    Alex
    Solved!
    Go to Solution.

    Try this
    Beginner? Try LabVIEW Basics
    Sharing bits of code? Try Snippets or LAVA Code Capture Tool
    Have you tried Quick Drop?, Visit QD Community.

  • Leopard Server and NAS arrays and Logical Disks

    Can anyone confirm that Leopard server now sees NAS arrays as logical disks? If so, what would be a good option to the now gone Xraid to connect to my new Xserve. Preferably a 4GB fiber channel connection. Trying to stay away from the 12K promise raid and go for something in the 3 to 5K range that is about 3 to 5TB.
    Anyone have any suggestions?
    thanks,
    Dan

    It's not clear to me what you're asking.
    First, what do you mean by 'Leopard server now sees NAS arrays as logical disks'? They've always been logical disks - at least based on my understanding of the term.
    Secondly, you ask about NAS, but go on to talk about fiber channel. By definition they are two separate technologies. You're using NAS or you're using fiber channel in either a SAN or a direct-attach model. There is no 'fiber channel NAS' option, unless you mean a SAN?

  • Dynamically create empty mcs and asign elements from array and loadmovie

    I'm creating an educational game for my school students.
    A little boy is flying through the city when he encounters objects flying from left to right.
    He hears a SOUND eg: Dog - he must go and click the dog image with the flying cursor. There are at least 5 DIFFERENT objects that should be flying on the screen. There could be various of them at any one time.
    I have the roots of the images in an xml file. And the actual swf are in a file called IMAGE and the sounds in SOUND.
    My problem is that most tutorials I see use the attachmovie method but I don't want to put all the swf's in the library as there are hundreds.
    I have to use the loadmovie method.
    I take it I have to loop through the array and assign each element to an empty movieclip which in turn is in the loop so you get 5 empty clips - I will use i (index). It doesn't seem to be working. I shall keep trying and post back here if I get any luck but I'm running out of ideas.
    Then the objects have to float across the screen. Don't know whether to use tween object or onEnterFrame handler or other. AND someone has mentioned using setinterval to "spit out" the objects.
    BUT if I have five flying across the screen I'm left without clips to stick in any more.
    Oh my head hurts but I will keep going.
    CHEERS if any help is around. This should be quite a standard thng for game developpers. Code at the moment
    function loadEnemies():Void {
    enemy_xml = new XML();
    enemy_xml.ignoreWhite = true;
    enemy_xml.onLoad = function(success:Boolean) {
    if (success) {
    _root.parseEnemyXML();
    //enemy_xml.load("level_"+level+".xml");
    enemy_xml.load("data/animal_catch.xml");
    function parseEnemyXML():Void {
    rows = enemy_xml.firstChild.childNodes.length;
    for (var i:Number = 0; i<rows; i++) {
    var row_string:String = String(enemy_xml.firstChild.childNodes[i].firstChild.firstChild);
    _root["row_"+i+"_array"] = row_string; //MAIN ARRAY holds an array images/dog_a.swf/ images/cat_a.swf etc... all five
    _root.createEmptyMovieClip("enemyObjects", 1);
    enemyObjects.createEmptyMovieClip("holder_"+i, i);
    _root["object"+i] = new Sound(enemyObjects["holder_"+i]);
    trace(row_string);
    loadMovie["row_"+i+"_array"], ["holder_"+i]
    if (level == 1) {
    alerts_mc.play();
    } else {
    currRow = 0;
    rowCounter = 0;
    OK got to about here BUT
    a. I started to get confused around the createEmptyMovieClip part
    b. I KNOW I shouldn't have Sound(enemyObjetcs etc... BUT I copied the code from a tutorial and I don't know what to replace it with.
    I'm close but I need a little polishing.

    It doesn't do you much good to work with borrowed code that you do not understand.  Your best bet will be to start small, creating one functional piece of the puzzle at a time, and work your way up.  Start with making sure you are loading and parsing the xml properly, then set about loading the external content, then see about making that content move around, etc...
    In the code you show, your loadMovie line of code does not resemble anything I have seen before, looking more like (but not quite like) a multi-dimensional array element than a loadMovie() function call.  If you find you need to have control of the items as soon as they load, then you should consider using MovieClipLoader.loadClip instead of loadMovie.  The MovieClipLoader class provides features, such as to be able to determine when items have fully loaded.

  • Converting Image to Byte Array and then to String

    Hi All...
    Can anyone please help me. I have got a problem while converting a Byte array of BufferedImage to String.
    This is my code, First i convert a BufferedImage to a byte array using ImageIO.wirte
    public String dirName="C:\\image";
    ByteArrayOutputStream baos=new ByteArrayOutputStream(1000);
    BufferedImage img=ImageIO.read(new File(dirName,"red.jpg"));
    ImageIO.write(img, "jpg", baos);
    baos.flush();
    byte[] resultimage=baos.toByteArray();
    baos.close();
    Then i tried to convert this byte array to a string
    String str=new String(resultimage);
    byte[] b=str.getBytes();
    This much worked fine. But when i reversed this process to re-create the image from that string. i found the image distroted.
    BufferedImage imag=ImageIO.read(new ByteArrayInputStream(b));
    ImageIO.write(imag, "jpg", new File(dirName,"snap.jpg"));
    I got this snap.jpg as distroted.
    Please help me i have to convert the image to a string and again i have to re-create the image from that string.

    To conver the bytearray to string use base64.encoding
    String base64String= Base64.encode(baos.toByteArray());
    To convert back use Base64.decode;
    byte[] bytearray = Base64.decode(base64String);
    BufferedImage imag=ImageIO.read(bytearray);

  • Deleting all elements from array and array to spreadsheet string

    Hello,
    I would like to write a new data file for each "recording" session without closing the VI.  My problem is that the last "recording" session's data is at the top of every successive session's text file.  I do not want this.  I've tried to delete all rows from the array after my array to spreadsheet string function, but I think the problem is somewhere with the shift register and how the array is built.  I'm not too familiar with LabView and this aspect of my interface is driving me crazy.  Attached is my code and two successive data files.  I have not been able to find a solution on these or the LAVA forums.  Any help would be appreciated.
    Also, I know there is an easier way to write this kind of streaming data, but I need to do it this way for other devices and synchronization purposes.
    Attachments:
    testsecond.txt ‏90 KB
    test41.vi ‏80 KB
    testfirst.txt ‏78 KB

    A few more comments to your code:
    Your loop does not have a wait, meaning it spins the empty case millions if times per second, consuming all CPU while not doing anything. Add an indicator to [i] to see.
    To clear a 2D array in one case frame, just don't wire the output tunnel and set it to "use default if unwired". You'll get an empty array. No fancy tools needed.
    I probably would use an event structure and also protect the data if the save dialog is canceled.
    Here's a simple draft that probably requires a bit more work but should show some of the ideas.
    You should also
    add some protection that the VI cannot consume all available memory if it runs forever.
    Create a seperate case to save the data later if the file dialog is cancelled the first time.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    test41MOD.vi ‏107 KB

  • I just converted to Arch (from Gentoo) and ....

    ... well, the installation was damn fast. Compili... Installing the software likewise. Almost everything works smoothly, but arch linux lacks:
    #multiple package versions (apache, apache2),
    #packages compiled with less features which does not have many dependencies (at gentoo I build with mainly -flags)
    #abuse at forums
    I've been using your distro for 3 hours, so this is it, for now.

    mdv wrote:#multiple package versions (apache, apache2),
    The approach as I've seen is to keep most packages upto date. However, all pkgbuild files can be grabbed from the cvs server. So, for apache http://cvs.archlinux.org/cgi-bin/viewcv … e/PKGBUILD shows all the revisions of the apache package. Grab the one you want and build it
    Of course, if you're new to Arch, then you probably haven't had chance to get to grips with the Arch Build System (ABS). The AL wiki is very forthcoming on this subject
    mdv wrote:#packages compiled with less features which does not have many dependencies (at gentoo I build with mainly -flags)
    Again, because AL is a binary distribution, it tries to keep everyone satisfied. It's obvious that you can't satisfy everyone. However, you're not bound to the official package. You can customise the pkgbuild that the devs used to build the 'official' package and tailor it to your needs.
    mdv wrote:#abuse at forums
    Well, it's certainly been a little heated during the past couple of weeks but it's quickly settled down, thankfully. Having said that, I dare say that the forums for every linux distro can get pretty messy from time to time. I certainly recall from my time with Gentoo that the forums were rather prone to flaming.
    mdv wrote:I've been using your distro for 3 hours, so this is it, for now.
    Feel free to give constructive criticism. Just be aware that there is a thing called The Arch Way which sort of explains the philosophy of the distro.
    I'm sure you'll be using AL for a long time

  • How do I convert time from hours and minutes to decimal time

    I am making a spread sheet a work for payroll. I need to make a formula that converts the time from hours and minutes to decimal time. Please help

    Hi Taryn,
    I can't see much from the photo, but I assume your formula is similar to the one I've used below:
    The same formula is used in F4 and F6, and both return the same result (shown in F4).
    F4 was left on "automatic" cell format, and the column widened to accomodate the repeating decimal to the point where Numbers would begin displaying zeros.
    F6 was formatted as shown in the Cell Inspector to show only two decimal places.
    Neither of these is an "exact" decimal, as it is not possible to use a decimal fraction to "exactly" represent 1/6 (or 10/60).
    The likely reasons for yours showing a whole number of hours is a difference between your formula and the one shown in the example here, or a difference in the number of decimal places set in the cell's format.
    Regards,
    Barry
    PS: To take a screen shot:
    Place the mouse pointer at the top left corner of the area you want to nclude in the shot.
    Press shift-command-4.
    Use the mouse to drag a selection rectangle contining the part of the screen you want to include.
    Release the mouse button. (You'll hear the sound of a camera shutter 'snapping' the picture.)
    The screen shot will be saved to your desktop with the name 'screen shot' followed by the date and time.
    The image may be posted to the discussion using the same steps you used to post the photo above.
    B.

  • Report: Moved from 10.58 to 10.62 and Logic 9.1

    I held off as long as I could but then bit the bullet. I think my Magic Mouse was begging me to do it so I could enjoy the new scrolling features:)
    At any rate, been working all day today and Logic is behaving just fine. I am still getting some Disk Too Slow messages and beginning to wonder whether my record drive needs replacing (2 years in). But am happy to say that all appears to be well, and have also installed the new Pro Kit update.
    Whew!
    TH

    A few months back, I did the jump from Tiger and Logic 8 straight to the latest everything, Snow Leopard and Logic 9.. Of course I did a complete clone of my system first, and was not working on any important projects at the time so I too braced myself for everything to go haywire. But similarly to you, it went like clockwork, and it's all running way better than anticipated. So far I've had zero crashes in Logic, except from opening an older project from Logic 8 which had a movie in it, but I've gotten around that. Have worked on some very intensive projects (intensive at least for a MBP), using video, loads of sampler instruments, synths, plug ins, UAD2 laptop card.. and I have to say that so far it's feeling like the most stable combination of Logic and OSX that I've worked with in a while. I'm not exactly a flag-waving fanboy, just a seasoned pro user, so it's been a pleasant surprise to have a pretty reliable DAW to work with. I decided to bypass Leopard because we have it on the computers at the studio, and the Logic 8 + OSX 10.5x combo was giving us several crashes a day, plus weird display issues in the finder (strange grey bars in finder windows), and just a whole lot of general flakiness. So I'm glad I decided to skip that one and go straight to where I am now.
    Btw, not bothering with 64bit as it's not of any use on my MBP. Suits me fine, by the time I get a bigger machine with enough RAM to make 64bit worthwhile, the waters should have settled down a little on that front.
    Are you still running smoothly a few days into it?

  • Too big switch - get data from array

    I have text file (CSV). Parse file and set data to array, e.g. ArrayList. Get data from array and initialize object MyDoc (by setXXX methods)
         for (int index = 0; index < list.size(); index++) {
                   currentElement = list.get(index);
                   switch (index) {
                   case 0:
                        myDoc.setField1(currentElement);
                        break;
                   case 1:
                        myDoc.setField2(currentElement);
                        break;
                   case 70:
                        myDoc.setField70(currentElement);
                        break;OK. But problem is that object MyDoc have many fields (70 fields). And "switch" become to big. (70 setXXX methods). Can I set fields to object MyDoc without "switch"?

    johndjr wrote:
    Just don't use a switch. It is not really helping any in this case.
    you can just do all the calls explicitly.
    Like so
    myDoc.setField1(list.get(0));
    myDoc.setField2(list.get(1));
    myDoc.setField70(list.get(69));I might convert the list to an array first simply because it seems more natural to me.
    I'm not too sure if it really matters all that much if list is an ArrayList.
    String[] values = list.toArray();
    myDoc.setField1(values[0]);
    myDoc.setField2(values[1]);
    myDoc.setField70(values[69]);you should check that toArray() call, I might not have the correct method I'm kind of doing this off the cuff.I think it is second thoughts day.
    I don't like the hard coded numbers. what I wrote should have defined constants for those values.
    static final int FLD1 = 0;
    static final int FLD70 = 69;
    String[] values = list.toArray();
    myDoc.setField1(values[FLD1]);
    myDoc.setField2(values[FLD2]);
    myDoc.setField70(values[FLD70]);
    Edited by: johndjr on Apr 17, 2009 1:33 PM
    forgot the constants

  • Merging Arrays and Grouping

    Hi guys,
    I am trying to write an algorithm to merge an array of objects to cut down its size. Easier to understand by example.
    Lets say I have 3 numbers , 1, 2 and 3. And 3 elements. So I want to create all combination's of these numbers. Like :
    1,1,1
    1,1,2
    1,1,3
    1,2,1
    1,2,2
    1,2,3
    1,3,1
    etc..
    Then lets say I only had removed some of the combinations and was left with :
    1,1,1
    1,1,2
    1,1,3
    1,2,1
    1,2,2
    1,3,1
    1,3,2
    1,3,3
    I would want this shortened to :
    1,1,=
    1,2,1
    1,2,2
    1,3,=
    (= meaning all possible numbers, in this case 1 2 and 3)
    Also if I had :
    1,1,1
    1,1,2
    1,1,3
    1,2,1
    1,2,2
    1,2,3
    1,3,1
    1,3,2
    1,3,3
    2,1,1
    This would be shortened to :
    1,=,=
    2,1,1
    And if I had :
    1,1,1
    1,1,2
    1,2,1
    1,2,3
    1,3,1
    This would be shortened to :
    1,=,1
    1,1,2
    1,2,3
    I think you'll get the idea from that. There could be more that 3 elements. I have been trying to work this out but its doing my head in.
    Would be grateful if anyone could give me and tips or point me in the right direction.
    Thanks.
    Edited by: joeJack on Mar 1, 2010 12:21 PM
    Changed from asterisk to equals sign as asterisk was creating bold text.

    Hi
    My suggested Algorithm is: Take a LinkedHashSet and put all possible combinations of merged objects from the number of elements. From your example all possible combination is 1==,2==,3==,11=,12=,13=,21=,22=,23=,31=,32=,33=. with all values 0(zero). Keep in mind that most general combination will be kept first like,1== and most specific at last i.e 12=,13=...etc
    Now scan the each element one by on from array and if first character is 1 of the element increase the count of 1== by 1, if second character is 2 i.e element of the form 12 then increase the count of 12= by 1..and so on till last -1 character of the element.So that way we calculate the frequency of each element in on go.
    Now check the number of the count for each element. Say for 1== count is 5 and we know that for 1== count has to be 9 (from permutation possible value 3* 3=9). Similarly go and check each element count and those element count which match the possible permutation value criteria they will be replace by that combination.
    if array sixe is >>> than no of character in one string than this algorith will run ~~ n time where n size of array.

  • Converting from spreadshet string to array and then back to spreadsheet string

    My questions is; why is the Spreadsheet string to array function creating more data than the original string had when you change the array back into a spreadsheet string. Im trying to analyze a comma delimited file using array functions since my column and row size is constant, but my data varies. Thus my reason for not using string parsing functions which would get more involved and difficult. So, however, after i convert to a 2D array of data from the comma delimited file I read from, and then I convert back to string using the Array to Spreadsheet String, I get added columns to the file, which prevents another program from receiving these files. Also, the data which I am reading is not all contiguous, it has gaps in some places for empty data. Looking at the file compared to the original after it has gone from string to array and then back to string again, looks almost identical except for the file size which got larger by 400 bytes and where the original file has empty spaces, the new file has a lot of commas added. Any idea?
    Charles

    The result you get is normal when the spreadsheet string contains rows of uneven length. Since the array rows have the same number of elements, nil values are added during the coonversion. And of course, the back to string conversion keep those added values in the string, with the associated commas.
    example : 3 x 3 array
    1,2,3
    4
    5,6,7
    is converted into
    1 2 3
    4 0 0
    5 6 7
    then back to
    1,2,3
    4,0,0
    5,6,7
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • How do I convert a 1-D array of cluster of 5 elements into a 2-D array of numbers? (history data from a chart)

    Hello,
    in my vi I have a chart with 5 Plots displaying measurement data.
    The user should be able to save all the history data from the chart at anytime. (e.g. the user watches the chart and some event happens, then he presses a "save"-button)
    I know, that I can read out the history data with a property node. That is not the problem. The problem is, how do I handle the data? The type of the history data is a 1-D array of cluster of 5 elements.
    I have to convert that data somehow into a 2 D-array of numbers or strings, so that I can easily save it in a text-file.
    How do I convert a 1-D array of cluster of 5 elements into a 2-D array of numbers?
    I use LabVIEW 7.1
    Johannes
    Greetings Johannes
    Using LabVIEW 7.1 and 2009 recently
    Solved!
    Go to Solution.

    Gerd,
    thank you for the quick response and the easy solution.
    Look what I did in the meantime. I solved the problem too, but muuuch more complicate :-)
    And I have converted the numbers to strings, so that I can easily write them into a spreasheet file.
    Johannes
    Message Edited by johanneshoer on 04-28-2009 10:39 AM
    Greetings Johannes
    Using LabVIEW 7.1 and 2009 recently
    Attachments:
    SaveChartHistory.JPG ‏57 KB
    SaveChartHistory.JPG ‏57 KB

  • Excel & ActiveX: Insert arbitrary columns from 2D array and create graph problems

    Hi there,
    I want to insert data from either a 1D or 2D array from LabView into Excel and create graphs.
    I used the information from the following example:
    http://www.ni.com/example/28934/en/
    and was able to create a new Excel file (I'm using Excel 2010), writing data from an 1D array to a column in excel by creating a while loop and using the first element of the array to write it to a specific cell. I use the counter of the loop to write to the next cell when the loop starts over and always delete the first value, which I write to the cell, from the array until it is empty.
    Now I also would like to write a 2D array - so the first column in Excel should be the first column from the array and so. Here I cannot use the loop counter directly as Excel only counts 1,2,... for the rows, but uses A,B,... to count columns. Also I do not know in advance how many columns my 2D array will contain, so creating a lookup table like (A means 1, B means 2,...) is not really an option (except there really is no other way). Is there a possibilty to convert numbers into letters or some way to 'explain' to the program that column 2 in the array means column B in Excel for example, or is there a way to insert new columns?
    I figured out how to add new Worksheets and as I also need to create a certain number of Worksheets and I know that on standard 3 sheets are present when creating the file, I use the 'add' methode to create every new worksheets before worksheet 3 - I could use the same methode to create new columns in Excel, but so far I didn't find a methode to do so. Or is there a way to enter the whole 2D array at once?
    Then I'd like to create a graph (in case of the 1D arrays a bar plot, when using 2D arrays a 3D plot) to view the data. I found this example:
    http://www.ni.com/newsletter/51339/en/
    -> as I do not have the toolkit I'd like to do it using ActiveX directly, so I tried to do things like shown under the headline 'DIY ActiveX/.NET'
    I tried to load the snippet to a new Excel file but got the error message 'microsoft.office.interop.excel.dll not found' and hence the code is not working. That confuses me a little as I would guess when this dll is not present I cannot access Excel from LabView at all, though my understanding of what I'm really doing so far is quiet limited. ;-)
    Also - as far as I understand from the snippet - when creating a new chart object I should be able the create methodes for it, however when I do a right click on the chart object of an ActiveX Worksheet symbol there are none listed.
    To explain my problems better I added a snippet showing my two problems: The inner of the two while loops shows how I import a 1D array. In the outer loop I seperate the columns. I know that currently this is not working as all data end up in column A of the Excel sheet - so I would need to convert the number of the outer counter to A, B,... or find a different solution.
    Moreover on the snippet I placed an ActiveX Worksheet Property with the Chart Object - as I can see the difference to the Chart Object in the example code from the last link above is the color. However I'm not sure what that means and how to change/ solve this.
    And just to make sure - I know this way the VI does not run as the Chart Object is placed completely wrong - I just did it, so it is included in the snippet.
    I'd be thankful for any suggestions,
    Thanks!
    Solved!
    Go to Solution.
    Attachments:
    ExcelAreaScan.png ‏60 KB

    Hello everyone and thanks for the answers.
    I only have the LabView Student Edition available here - is the toolkit included in it too. How can I check if it is installed/ available and in case it is installed - where can I find it?
    Today I had time to take a look at the example
    Create via ActiveX Labview a XY Scatter plot graph on an excel sheet
    It almost does what I want in terms of creating a graph. The only problem I could not fix, is that in this example a sheet is created where only the graph is present. i'd like to add the graph to a previously created worksheet. Today I tried get this working but it seems I stilll don't really understand what I'm doing, I'll post a snippet of my code as soon as I can access the PC with LabView on it again.
    I also took a look at the other example for inserting 2D attays - it seems to be what I need, I just had no time so far to test it, I'll post an update when I could test it.
    Thanks for the help so far!

Maybe you are looking for

  • Dreamweaver Trial Version is not opening

    I was installing the trial version of Adobe Dreamweaver. Installation was no problem but now when i want to open the program its not opening. There comes: Dreamweaver can not open because of a problem: Process:         Dreamweaver [1275] Path:       

  • Permissions needed for sql server job to execute stored procedure on linked server?

    Hi all I have a job step which attempts to call a stored procedure on a linked server. This step is failing with a permission denied error. How can I debug or resolve this? The job owner is sysadmin on both servers so should have execute permission t

  • !!HELP!! Source for Technical Reference Material (ERD, API use, etc.)

    To use the OracleApps terminology, is there a TRM for the 309 Portal? (TRM is Technical Reference Manual that shows an ERD, as well as documentation about all of the tables in the application). Is there a listing somewhere of API's and documentation

  • Auto report refresh on v2.2

    I'm following an old thread on how to auto refresh a region. I followed the steps but the page/region is not refreshing... Could anybody help me whats wrong? I copied the colde from Carl's page. Im still stuck with 2.2. thanks.

  • Duplex printing control on Mac

    Running Reader 10.1.3 under Mac OS X 10.6.8. According to Help, Page Sizing and Handling should look like but instead I see which I suspect is the 10.1.2 version, and it doesn't print duplex, which is what I want. Yes, my printer is a duplex printer.