Problems Reading/Writing Parallel Port Data, Status & control Registers Using In Port.vi and Out port.vi

Hi,
Can anyone there help me Please with the problem. I am trying to
communicate with the parallel port using my program which i have
attached to the message. I am running LabVIEW 7.0 Professional with
application builder. All the program does is reads and writes to the
three parallel port registers. It runs FINE!!! in my computer. But when
i built an executable (see attached) and tried running on a different
computer (with LabVIEW Runtime engine 7.0 installed) the program does
not read/write to the registers. The target PC had the parallel port in
SPP mode just like mine. I can't seem to understand whats going wrong?
Can anyone please help me if you know the right answer.
Thanks
Attachments:
Programs.zip ‏119 KB

Hi Guys,
I too have a problem using "Out Port.vi", but of a diferent kind. I use this VI to control the  Parallel Port which in  turn controls a small circuit. I use only two data pins, DP-2 and DP-4 for this purpouse. I use LV 7.1 Professional Development version in a Windows 2000 operating system. Now, my main problem is that my code runs fine (both is development and .exe forms) in my development computer, but when I try to run the .exe version in  other computers (Windows XP operating system), it asks for a "protocol file" while starting (look at the attached picture).
Now, I really have no idea what kind of a protocol file it asks for and just click "ok" and proceed to work, the most interesting part is that the code works well as I expected. So, my only problem is that it asks for a protocl file which I want to avoid. As with the application building, I do all that is  required like including the sub VIs (self developed), creating an installer, enabling the port access, and creating a proper .ini fine. I also use the Out Port.vi from the AccessHW library.
I have my doubts on two fronts,
1) With the version conflict, since my development computer runs with Windows 2000 and my target computers all run with Windows XP
2) With the Out Port.vi which further contains a small VI "Output Word to Port.vi" in it and that further contains Call Library Function Node, which might call soem external files, like what my problem is.(look at the attached picture)
I don't have answers to these questions and may be my problem is in different place, but I would like to hear from anyone who could give me a helping hand. I am in a situation where I could not disclose my code.
Thanks in advance,
mohan
Attachments:
protocol file.zip ‏153 KB

Similar Messages

  • Read the parallel port

    Hello,
    I am working with LabView 7.0 and with Windows 98. I want to read the
    parallel port, but I don't get it. I am using the I Saw In port.Vi but
    I don´t read anything, but however with the function Out Port.vi if
    that get
    to write in the port. Is somebody able to throw a hand?
    Thank you

    Hi,
    Hope this gives some light to your problem:
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/c80752c53094c296862565f3007ac765?O...
    Regards,
    Jaime Cabrera
    Ni Applications Engineering Spain
    Regards,
    Jaime Cabrera
    NI Applications Engineering Spain

  • Read/Write Parallel port

    I need to write to several different pins of the parallel port and then read back 2 different signals simultaneously.  inp and outp do not seem to give me the capability to do this.  Any help is appreciated

    Hi Clayton,
    That's NOT correct. The output pins of the parallel port are between 2(lsb) and 9(msb).
    You cannot control pin 14 as ouput and I thnik you misunderstood the connection between the data (the second parameter to the outp function) you write and the pins effected.
    The data byte is 8 bits and each bit correspond to a pin from 2 to 9. So writing 0x0D = "0000 1101" to the port will send a logic 1 to pins 9,7 and 6.
    The attached drawing may help to clarify further.
    I also recommend a little reading from the internet. You can start with: http://logix4u.net/Legacy_Ports/Parallel_Port/A_tutorial_on_Parallel_port_Interfacing.html
    Hope this helps.
    S. Eren BALCI
    www.aselsan.com.tr
    Attachments:
    parallel.gif ‏6 KB

  • Problems accessing the parallel port

    Dear All,
    I'm having problems to access to the parallel port using the VI write /
    read to the serial port, it returns the error code 37. As far as I've
    seen in the documentation this error code is for UNIX systems and we're
    using Windows 95.
    Anybody know what's going on?
    Cheers,
    Ernest
    Ernest Mendoza
    Institut de Ciencia de Materials de Barcelona
    Consejo Superior de Investigaciones Cientificas
    Campus de la UAB. E-08193 Bellaterra (Barcelona)
    Tel- 34- 93 580 18 53
    Fax- 34- 93 580 57 29
    http://www.icmab.es/dmag/new/index.html

    This is the device not found error. It is platform independant. It means
    that you are addressing a serial port that LabVIEW cannot find. This is
    becuase the port is not there or LabVIEW cannot access it. Make sure the
    serial port you are addressing is configured in Windows device manager and
    then make sure you have the file serpdrv in your LabVIEW (or compiled executable)
    directory.
    -Jim
    Ernest Mendoza wrote:
    >Dear All,>>I'm having problems to access to the parallel port using the
    VI write />read to the serial port, it returns the error code 37. As far
    as I've>seen in the documentation this error code is for UNIX systems and
    we're>using Windows 95.>>Anybody know what's going on?>>Cheers,>>Ernest>>>-->____________________________________________
    _______>>Ernest
    Mendoza>Institut de Ciencia de Materials de Barcelona>Consejo Superior de
    Investigaciones Cientificas>Campus de la UAB. E-08193 Bellaterra (Barcelona)>Tel-
    34- 93 580 18 53>Fax- 34- 93 580 57 29>http://www.icmab.es/dmag/new/index.html>___________________________________________________>>

  • Read from parallel port

    I know it's possible to write some data to the parallel port using
    LabVIEW, but I don'y know if it's possible to read from the parallel
    port.
    If someone knows, please advice.
    Thanx for reading.
    Paul
    Sent via Deja.com http://www.deja.com/
    Before you buy.

    [email protected] wrote:
    >I know it's possible to write some data to the parallel port using LabVIEW,
    but I don't know if it's possible to read from the parallel port. If someone
    knows, please advice.
    Thanx for reading.
    Paul
    Yes, it is very easy to read from the parallel port. There have even been
    some VIs floating around allowing you to use the parallel port for digital
    I/O using the inport and outport VIs.
    To just use it to communicate, just use the VISA VIs with the proper resource
    name for the port you are using.
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

  • Problem reading&writing word documents

    hi:
    i wrote a program to look for a string and replace it with another. reading and wirting are done in the same file. it works fine as long as the file is a text document. if any one has any suggestion on how to make this program work for any file i would appreciate it. here is a portion of the codes that does the reading and wiriting. thanx.
    f = new RandomAccessFile(aFile, mode);
              int fLength = (int)f.length();
              int bytesRead;
              byte[] b;// = new byte[fLength];
              String toWrite = "blood suckers";
              String s;
              try{
                   b = new byte[fLength];
                   while (f.read() != -1)
                        f.read(b);
                   s = new String(b);
                   System.out.println(s);
                   long p =(long)s.indexOf(pattern);               
                   String string1 = s.substring((int)p, (int)p+patternLength);
                   System.out.println(string1);
                   String string3 = s.substring((int)p+patternLength);
                   System.out.println(string3);
                   toWrite += string3;
                   byte[] aByte = toWrite.getBytes();
                   f.seek(p+1);
                   f.write(aByte);

    You can use StringBuffer instead of String because the String constructor use the locale translation and some bytes can be translated in the wrong way.
    Or you can write a code which will wolk via the byte array and search for the desired pattern and place the part before the pattern into new byte array (which size is calculated and expanded dynamically), then the string for replacing and after that other part without the search pattern. Repeat it to the end of the original buffer.
    The second way is more preferable :-))
    Hope this can give you some ideas.
    Regards,
    Alex

  • Using multiple MIDI in and out ports... is there a any solution?

    Hi Guys,
    I've been using Logic Pro for about 3 or 4 years, and have always struggled with the fact that when using external MIDI instruments, there are not separate drop-down menus for PORT IN and PORT OUT, where I could choose which port would be used on my MIDI interface.
    I was previously a Cubase user, and it had these two ports, so I could easily choose, for example: "MIDI IN: Port B" and "MIDI OUT: Port C", and MIDI would be routed to those ports.
    Logic only has one drop-down for selecting ports, and that is for the outgoing MIDI signal only.
    My problem is that when we want to record say two synths at the same time, each on its own MIDI track, the incoming signals are blended and played on both active tracks.
    There IS a tick-box option in Project Settings, called Auto demix by channel if multitrack recording, but this only works when all the channels in question are armed for recording. If we are just jamming ideas (but want to have MIDI set up ready to record... therefore local is off on each synth, etc...), it appears there is no way to separate the incoming MIDI signals so they only go back to their respective ports.
    This issue has now compounded with the addition of two new synths in my studio... suddenly it's even more crucial to be able to easily separate the MIDI ports for each of the four synths.
    I have never delved into the Environment, but was chatting to the guys in the music store I go to, and they were saying there might be a way of setting up the specific MIDI routing I am looking for, in the Environment.
    I would love any assistance you could give me. This has become such a frustration that I have even looked at moving back to Cubase (but the way it handles lots of tracks at low latency on Mac is stopping me, at the moment! The trial version showed this up as a real issue, compared to Logic!).
    I am of course secretly hoping that Logic Pro 10 will have a re-thought MIDI setup, with simple in and out port drop-downs for each MIDI track. But that's a long shot, and Logic 10 could still be ages away!
    Any help an experienced user can offer me would really be appreciated.
    Cheers,
    Mike

    discussed like ****
    still no one ever did a simple explanation how to do , once for all in the environtment .
    Please, i am ready even to pay someone who will show the techique

  • Problems reading the serial port with labview 5.1.

    I open the example serial.vi , I select write to serial port, run the programm, I don`t have any problem. But when I select read serial port, I get the error code 16392and hex code error x4008. I need to know what can I do? Thanks a lot

    Any time you get an error in LV you can right click on the error cluster indicator and do a "Explain Error".
    If you do this for the error code you reported, the explanation says that it was a framing error.
    In serial communications, a framing error indicates that the hardware was not able to detect a start bit, data then the stop bits that comprise a frame.
    This prompts me to suggest that you check you port setting on the serial port. You want to make sure you are setting the port for the correct;
    Number of start/stop bits,
    Baud rate
    data bits
    parity (just for good measure)
    and hardware handshaking.
    I hope this helps,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Problems reading my backed up data on hard drive after using Time Machine

    I have a MacBookPro and had to take it in for servicing. I backed up all my data using Time machine. They had to replace my battery, hard drive, and logic board, basically wiping my slate clean. When I got my computer back and plugged in my hard drive time machine came up asking if I wanted to restore a back up. I chose the drive. Then that drive disappeared from the desktop and changed the disk name from "BACKUP" to "disk1s4" and is unreadable. Cannot get anything off the hard drive.
    Any idea how I can read my data off my hard drive. I have 3+ years of pictures of my 2 kids and all my music. The rest I could take or leave. But I would be devastated to lose my pictures.
    Please help
    Thank you
    Message was edited by: Jlk51496
    Message was edited by: Jlk51496

    Jlk51496 wrote:
    When I got my computer back and plugged in my hard drive time machine came up asking if I wanted to restore a back up.
    Hi, and welcome to the forums.
    Do you mean this window?
    or this one?
    They are very different, obviously.
    Try repairing the drive, per #A5 in [Time Machine - Troubleshooting|http://web.me.com/pondini/Time_Machine/Troubleshooting.html] (or use the link in *User Tips* at the top of this forum).
    Why was your Mac seviced? What did they replace?

  • Problems Reading SSL  server socket  data stream using readByte()

    Hi I'm trying to read an SSL server socket stream using readByte(). I need to use readByte() because my program acts an LDAP proxy (receives LDAP messages from an LDAP client then passes them onto an actual LDAP server. It works fine with normal LDAP data streams but once an SSL data stream is introduced, readByte just hangs! Here is my code.....
    help!!! anyone?... anyone?
    1. SSL Socket is first read into  " InputStream input"
    public void     run()
              Authorization     auth = new Authorization();
              try     {
                   InputStream     input     =     client.getInputStream();
                   while     (true)
                   {     StandLdapCommand command;
                        try
                             command = new StandLdapCommand(input);
                             Authorization     t = command.get_auth();
                             if (t != null )
                                  auth = t;
                        catch( SocketException e )
                        {     // If socket error, drop the connection
                             Message.Info( "Client connection closed: " + e );
                             close( e );
                             break;
                        catch( EOFException e )
                        {     // If socket error, drop the connection
                             Message.Info( "Client connection close: " + e );
                             close( e );
                             break;
                        catch( Exception e )
                             //Way too many of these to trace them!
                             Message.Error( "Command not processed due to exception");
                             close( e );
                                            break;
                                            //continue;
                        processor.processBefore(auth,     command);
                                    try
                                      Thread.sleep(40); //yield to other threads
                                    catch(InterruptedException ie) {}
              catch     (Exception e)
                   close(e);
    2 Then data is sent to an intermediate function 
    from this statement in the function above:   command = new StandLdapCommand(input);
         public StandLdapCommand(InputStream     in)     throws IOException
              message     =     LDAPMessage.receive(in);
              analyze();
    Then finally, the read function where it hangs at  "int tag = (int)din.readByte(); "
    public static LDAPMessage receive(InputStream is) throws IOException
        *  LDAP Message Format =
        *      1.  LBER_SEQUENCE                           --  1 byte
        *      2.  Length                                  --  variable length     = 3 + 4 + 5 ....
        *      3.  ID                                      --  variable length
        *      4.  LDAP_REQ_msg                            --  1 byte
        *      5.  Message specific structure              --  variable length
        DataInputStream din = new DataInputStream(is);
        int tag = public static LDAPMessage receive(InputStream is) throws IOException
        *  LDAP Message Format =
        *      1.  LBER_SEQUENCE                           --  1 byte
        *      2.  Length                                  --  variable length     = 3 + 4 + 5 ....
        *      3.  ID                                      --  variable length
        *      4.  LDAP_REQ_msg                            --  1 byte
        *      5.  Message specific structure              --  variable length
        DataInputStream din = new DataInputStream(is);
           int tag = (int)din.readByte();      // sequence tag// sequence tag
        ...

    I suspect you are actually getting an Exception and not tracing the cause properly and then doing a sleep and then getting another Exception. Never ever catch an exception without tracing what it actually is somewhere.
    Also I don't know what the sleep is supposed to be for. You will block in readByte() until something comes in, and that should be enough yielding for anybody. The sleep is just literally a waste of time.

  • Problem reading a network (Network Data Model)

    Hello,
    I'm trying to create a network for routing. I can create and write this network fine but can't read it.
    Currently I'm using the PL/SQL API but have also tryed the Java API (both present the same problem).
    The following PL/SQL gives the below error:
    EXECUTE SDO_NET_MEM.NETWORK_MANAGER.READ_NETWORK('P_ROUTING','FALSE');
    ORA-29532: Java call terminated by uncaught Java exception: oracle.jdbc.driver.OracleSQLException: ORA-00600: internal error code, arguments: [kxsGetRuntimeLock2], [0x0D7CF7C38], [1], [1], [1], [], [], []
    ORA-06512: at "MDSYS.SDO_NETWORK_MANAGER_I", line 284
    ORA-06512: at "MDSYS.SDO_NETWORK_MANAGER_I", line 114
    ORA-06512: at line 1
    29532. 00000 -  "Java call terminated by uncaught Java exception: %s"
    *Cause:    A Java exception or error was signaled and could not be
               resolved by the Java code.
    *Action:   Modify Java code, if this behavior is not intended.I assume either I'm missing something fairly simple somewhere or the database is not set up correctly for this.
    The following PL/SQL is used to create the network:
    BEGIN
      SDO_NET_MEM.NETWORK_MANAGER.CREATE_SDO_NETWORK('P_ROUTING',1,'FALSE',8307,2,
        'P_ROUTING_NODE','GEOM','COST',
        'P_ROUTING_LINK','GEOM','COST',
        'P_ROUTING_PATH','GEOM',
        'P_ROUTING_PLINK',
        'P_ROUTING_SUBPATH','GEOM','FALSE');
      SDO_NET_MEM.NETWORK_MANAGER.WRITE_NETWORK('P_ROUTING');
    END;
    INSERT INTO user_sdo_geom_metadata (TABLE_NAME, COLUMN_NAME, DIMINFO, SRID)
      VALUES ('P_ROUTING_NODE', 'GEOM',
      SDO_DIM_ARRAY(SDO_DIM_ELEMENT('LONGITUDE', -180, 180,0.5),
        SDO_DIM_ELEMENT('LATITUDE', -90, 90,   0.5)), 8307 );
    INSERT INTO user_sdo_geom_metadata (TABLE_NAME, COLUMN_NAME, DIMINFO, SRID)
      VALUES ('P_ROUTING_LINK', 'GEOM',
      SDO_DIM_ARRAY(SDO_DIM_ELEMENT('LONGITUDE', -180, 180,0.5),
        SDO_DIM_ELEMENT('LATITUDE', -90, 90,   0.5)), 8307 );
    CREATE INDEX P_ROUTING_NODES_INDEX ON P_ROUTING_NODE(GEOM) INDEXTYPE IS MDSYS.SPATIAL_INDEX;
    CREATE INDEX P_ROUTING_LINKS_INDEX ON P_ROUTING_LINK(GEOM) INDEXTYPE IS MDSYS.SPATIAL_INDEX;Edited by: user4868887 on 23-Jun-2009 05:18

    Thanks for your replies.
    I have not been able to execute SDO_NET.FIND_CONNECTED_COMPONENTS.
    I've tried to populate the network using both inserts and SDO_NET_MEM.NETWORK.ADD_NODE/LINK when creating it.
    On validation, I needed to add metadata for the PATH tables, this now says the network is valid but the same error occurs on read.
    The database version is 11.1.0.6 Enterprise Edition (running on SLES 10).
    Unfortunately the Java code is on another machine so I can't post it at the moment.
    The full code now run on creation is:
    BEGIN
    SDO_NET_MEM.NETWORK_MANAGER.CREATE_SDO_NETWORK('P_ROUTING7',1,'FALSE',8307,2,
      'P_ROUTING7_NODE','GEOM','COST',
      'P_ROUTING7_LINK','GEOM','COST',
      'P_ROUTING7_PATH','GEOM',
      'P_ROUTING7_PLINK',
      'P_ROUTING7_SUBPATH','GEOM','FALSE');
    SDO_NET_MEM.NETWORK.ADD_NODE('P_ROUTING7',1,'NAME1',SDO_GEOMETRY(2001,8307,SDO_POINT_TYPE(-1.188498,52.954090, NULL),NULL,NULL),0,0);
    SDO_NET_MEM.NETWORK.ADD_NODE('P_ROUTING7',2,'NAME2',SDO_GEOMETRY(2001,8307,SDO_POINT_TYPE(-1.188127,52.954323, NULL),NULL,NULL),0,0);
    SDO_NET_MEM.NETWORK.ADD_LINK('P_ROUTING7',1,0,1,2,0);
    -- Note: could not get the ADD_LINK with geometry parameter to work
    SDO_NET_MEM.NETWORK_MANAGER.WRITE_NETWORK('P_ROUTING7');
    INSERT INTO user_sdo_geom_metadata (TABLE_NAME, COLUMN_NAME, DIMINFO, SRID)
      VALUES ('P_ROUTING7_NODE', 'GEOM',
      SDO_DIM_ARRAY(SDO_DIM_ELEMENT('LONGITUDE', -180, 180,0.5),
        SDO_DIM_ELEMENT('LATITUDE', -90, 90,   0.5)), 8307 );
    INSERT INTO user_sdo_geom_metadata (TABLE_NAME, COLUMN_NAME, DIMINFO, SRID)
      VALUES ('P_ROUTING7_LINK', 'GEOM',
      SDO_DIM_ARRAY(SDO_DIM_ELEMENT('LONGITUDE', -180, 180,0.5),
        SDO_DIM_ELEMENT('LATITUDE', -90, 90,   0.5)), 8307 );
    INSERT INTO user_sdo_geom_metadata (TABLE_NAME, COLUMN_NAME, DIMINFO, SRID)
      VALUES ('P_ROUTING7_PATH', 'GEOM',
      SDO_DIM_ARRAY(SDO_DIM_ELEMENT('LONGITUDE', -180, 180,0.5),
        SDO_DIM_ELEMENT('LATITUDE', -90, 90,   0.5)), 8307 );
    INSERT INTO user_sdo_geom_metadata (TABLE_NAME, COLUMN_NAME, DIMINFO, SRID)
      VALUES ('P_ROUTING7_SUBPATH', 'GEOM',
      SDO_DIM_ARRAY(SDO_DIM_ELEMENT('LONGITUDE', -180, 180,0.5),
        SDO_DIM_ELEMENT('LATITUDE', -90, 90,   0.5)), 8307 );
    END;
    CREATE INDEX P_ROUTING7_NODES_INDEX ON P_ROUTING7_NODE(GEOM) INDEXTYPE IS MDSYS.SPATIAL_INDEX;
    CREATE INDEX P_ROUTING7_LINKS_INDEX ON P_ROUTING7_LINK(GEOM) INDEXTYPE IS MDSYS.SPATIAL_INDEX;
    CREATE INDEX P_ROUTING7_PATHS_INDEX ON P_ROUTING7_PATH(GEOM) INDEXTYPE IS MDSYS.SPATIAL_INDEX;
    CREATE INDEX P_ROUTING7_SUBPATHS_INDEX ON P_ROUTING7_SUBPATH(GEOM) INDEXTYPE IS MDSYS.SPATIAL_INDEX;
    select sdo_net.validate_network('P_ROUTING7') from dual;
    DECLARE
    path NUMBER;
    BEGIN
    -- SDO_NET_MEM.NETWORK_MANAGER.READ_NETWORK('P_ROUTING7','FALSE');
    path:=SDO_NET_MEM.NETWORK_MANAGER.SHORTEST_PATH('P_ROUTING7',1,2,NULL);
    DBMS_OUTPUT.PUT_LINE('The shortest path from node 1 to node 2 is path ID: ' || path);
    SDO_NET_MEM.NETWORK_MANAGER.DROP_NETWORK('P_ROUTING7');
    END;The last block works fine on creation, but when run on its own (un-commenting the READ_NETWORK call) I get the error from the first post.

  • How to read a file with data in Hierarchical Structure using XSD Schema

    Hi
    We have requirement in which we have to read a FIXED LENGTH file with FILE ADAPTER. File contains the data in hierarchical structure. Hierarchy in the file is identified by the first 3 characters of every line which could be any of these : 000,001,002,003 and 004. Rest files are followed after these. So structure is like:
    000 -- Header of File. Will come only once in file. Length of this line is 43 characters
    -- 001 -- Sub Header. Child for 000. Can repeat in file. Length of this line is 51 characters
    --- 002 -- Detail record. Child for 001. Can repeat multiple times in given 001. Length of this line is 43 characters 1353
    -- 003 -- Sub Footer record at same level of 001. Will always come once with 001 record. Child for 000. Length of this line is 48 characters
    004 -- Footer of file.At same level of 000. Will come only once in file. Length of this line is 48 characters
    Requirement is to create an XSD which should validate this Hierarchical Structure also i.e data should come in this hierarchy only else raise an error while parsing the file.
    Now while configuring the FILE ADAPTER to read this file we are using Native Schema UI to create the XSD to parse this structure using an example data file. But we are not able to create a valid XSD for this file which should validate the Hierarchy also on the file.
    Pls provide any pointers or solution for this.
    Link to download the file, file structure details and XSD that we have created:
    https://docs.google.com/file/d/0B9mCtbxc3m-oUmZuSWRlUTBIcUE/edit?usp=sharing
    Thanks
    Amit Rattan
    Edited by: user11207269 on May 28, 2013 10:16 PM
    Edited by: user11207269 on May 28, 2013 10:31 PM
    Edited by: user11207269 on May 28, 2013 10:33 PM

    Heloo.. Can anyone help me on this. I need to do Hierarchial read / validation while reading the file using File Adapter using Native XSD schema.

  • Flex mobile app - which data grid control to use?

    Hi,
    Trying to build my first Flex mobile app in FlashBuilder 4.6 and I need a grid control to display a 2 dimmensional array of 6 columns x 50 rows.
    The user doesn't don't need to have any interraction with the grid except for scrolling the rows.
    I was looking at using dataGrid component but adobe doesn't recommend it for mobile apps.
    Is there a grid component that is recommended for mobile apps?
    Thanks

    Here it is.
    // Show empty grid to start
    private function initGrid():void
        const dataArray:Array = new Array(1);
        var values:Array = new Array(1);
        values[0] = "";
        dataArray[0] = values;
        grid.dataProvider = new ArrayCollection(dataArray);
    // Build array and feed it to the grid - 50 rows x 9 columns dataGrid (grid)
    protected function FillGrid():void
    var rows:int = 50;
    var columns:int = 9;
    // rows array
    const dataArray:Array = new Array(rows);
    // Get rows
    for(var row:int=0; row<rows; row++)
      const arrLine:Array = [columns+1];
      arrLine[0] = row+1;
      for(var col:int=1; col<columns+1; col++)
       // columns array
       arrLine[col] = Math.floor(Math.random()*10);
      dataArray[row] = arrLine;
    // At this point the multi dimensional array is assembled, now we connect it to the dataGrid
    grid.dataProvider = new ArrayCollection(dataArray);
    <!-- The DataGrid's dataProvider and typicalItem are set at initialize time by the initializeDataProvider method. -->
    <s:Panel id="tablePanel" x="519" top="91" width="470" height="400" color="#827259" fontSize="18" title=".">
    <s:DataGrid id="grid" left="5" right="5" top="5" bottom="5" selectionMode="singleRow" initialize="initGrid()" fontSize="17" >
      <!-- The default item renderer is used by the first 6 columns to display
      the dataProvider item's array element value at col. -->
      <s:itemRenderer>
       <fx:Component>
        <s:DefaultGridItemRenderer>
         <fx:Script>
          <![CDATA[
           override public function prepare(hasBeenRecycled:Boolean):void
            label = data[columnIndex];
          ]]>
         </fx:Script>
        </s:DefaultGridItemRenderer>
       </fx:Component>
      </s:itemRenderer>
      <s:columns>
       <s:ArrayList>
        <!-- Columns inherit the DataGrid's itemRenderer. -->
        <s:GridColumn id="zero"    headerText="N0" width="65" resizable="false"/>
        <s:GridColumn id="one"     headerText="N1" width="45" resizable="false"/>
        <s:GridColumn id="two"     headerText="N2" width="45" resizable="false"/>   
        <s:GridColumn id="three"   headerText="N3" width="45" resizable="false"/>   
        <s:GridColumn id="four"    headerText="N4" width="45" resizable="false"/>
        <s:GridColumn id="five"    headerText="N5" width="45" resizable="false"/>
        <s:GridColumn id="six"     headerText="N6" width="45" resizable="false"/>
        <s:GridColumn id="seven"   headerText="N7" width="45" resizable="false"/>
        <s:GridColumn id="eight"   headerText="N8" width="65" resizable="false"/>
       </s:ArrayList>
      </s:columns>
    </s:DataGrid>
    </s:Panel>       
    Tomexxus

  • Simultaneously Connecting Multiple Tables of the same Database to Textboxes of the same Form using a single ADO Control Code using VB6 Enterprise Edition and MS Access 2007

    Iv 10 Tables consisting of atleast 10 fields each in a single Database. Bt, Im only able to connect 1 table at a time to a form using an ADO Control. Im able to add data from table 'student' to text-boxes in my form. Bt, hw can I add data from field(0) of
    Table 'Student' to Textbox1 and data from field(0) of Table 'Marks' to Textbox2 using VB6??
    This is the current sample coding iv got to connect a single table to a form:
    Global con As New ADODB.Connection
    Global rs As New ADODB.Recordset
    Public Function Connect()
    If con.State = 1 Then con.Close
    con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + App.Path + "\bca.mdb;Persist Security Info=False"
    End Function
    Private Sub Add_Click()
    If rs.State = 1 Then rs.Close
    rs.Open "select * from student", con, adOpenDynamic, adLockOptimistic
    rs.AddNew
    rs.Fields(0) = (Text1.Text)
    rs.Fields(1) = (Text2.Text)
    rs.Fields(2) = (Text13.Text)
    rs.Fields(3) = (Text4.Text)
    rs.Fields(4) = (Text5.Text)
    rs.Fields(5) = (Text6.Text)
    rs.Fields(6) = (Text7.Text)
    rs.Fields(7) = (Text8.Text)
    rs.Fields(8) = (Text9.Text)
    rs.Fields(9) = (Text10.Text)
    rs.Fields(10) = (Text11.Text)
    rs.Update
    MsgBox " Record Added"
    End Sub
    What can I do to add fields from 2 different tables to different text boxes within the same form using a single ado control using vb6 and MS Access 2007??

    Hi,
    Since VB6 product is not supported in this forum, you may go to these forums for support:
    #Where to post your VB 6 questions
    http://social.msdn.microsoft.com/Forums/en-US/6a0719fe-14af-47f7-9f51-a8ea2b9c8d6b/where-to-post-your-vb-6-questions
    Thank you for your understanding.
    Best regards,
    Franklin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Adobe Reader XI is not working. I have used the cleanup tool and reinstalled it. I try to open a .pdf file in the program the window will open and load all the tabs but I am never able to actually interact with them.

    I am unable to use adobe reader xi. I have tried to use the clean up tool and re install the reader. That doesn't seem to help. I go to open the pdf file in the reader and the window will load but I am not able to do anything past that point. Almost as if the program freezes once loaded I never get a not responding error until I open the task manager on the computer.

    Can you open Reader by itself?  If so, try disabling Protected Mode [Edit | Preferences | Security (Enhanced)].

Maybe you are looking for

  • ITunes and iTuneshelper crash when I plug in my iPhone

    I'm out of ideas on this problem... Beginning yesterday, when I plug in my Iphone to sync it with iTunes, both iTunes and iTuneshelper crash, and Windows gives me the option to create a crash report. As a result I can no longer sync my iPhone with my

  • Potential "crash" when external HD is on?

    SO recently, I've been experiencing this "crash", where everytime I turn off the laptop (bought just recently, not even a month old), it puts me at a screen where it says something to the likes of: "Experienced some problem, please press the power bu

  • Safari address field is missing

    I have a power mac g4 and upgraded to tiger I am the administrator and my daughter is another user, on my safari page there isn't an address field although when my daughter logs into safari it registers on hers hellllp!

  • Output report XML very slow

    Hi, I designed the report output includes 40 columns and 100000 rows. However, the request and opens slow in XML format on the client very slow. Please ask you one optimal solution to the problem above? (Version R12) Thank alot! Edited by: user121933

  • Logic crashes when I try to save in Mountain Lion! PLEASE HELP!

    I upgraded to Mountain Lion yesterday, and now Logic is acting very wierd! When I try to add plug-ins, i get an error message saying that the plug-in could not be opened, even if they work on other tracks. Sometimes, when I try to scroll up or down o