How to use counter using PCI 6259

Hello, users,
I have a PCI 6259 board and use Labview 7.1.
I'd like to repetitively count the photon signals at 10ms integration time. I want cumulative counts in every 1 sec (1000ms) (or 1 min (60000ms)) And I want to save counts into txt.file which is open in excel program.
I am a beginner to use counter using PCI 6259 board.
1. Could you explain default NI-DAQmx counter terminals, i.e., CTR 0 SRC, CTR 0 GATE, CTR 0 AUX, and CTR 0 OUT?
2. How do I use them or how can I connect to count TTL pulse using PCI 6259?
3. As I mention my purpose above, which example is the first step to start working my purpose?
4. If you know good example, could you tell me about that?
5. If anyone has labview example which is similar to my aim, could you give me some tips or your examples?
Any hint, comment or advice would be appreciated.
Thank you so much for your response.
Leek2

I have never used the PCI 6259 but have used counters many times with labview, the coding should be the same independent of the board.  What you want to do is finite buffered edge counting using a internal clock.  The best way to do this is to look at the examples programs and use the express vi to get started, then you can use this code to customize your program exactly as you need.
To address your questions:
1. CTR0 means "counter 0" the name of the physical resource sometimes listed at GPCTR0.  Each counter has 4 connections to the outside world:
source "src"(for counting input TTL signals),
gate (for synchronizing to external clocks and edges),
out (for pulse-train out operations)
and aux (specialty operations such as up/down counting and encoding)
2.For event counting with internal clocking you will only use the src this is the input from the signal you wish to count (ie PMT discriminator for photon counting).
3,4,5. Look at the count edge examples, there isn't one that does exactly what you want but I have done this with a 6602 (it has e counters) where I use one set of counters to set up a finite pulse train in your case 1000Hz with 1000 pulses, and another counter to edge count on an external pulse, with the source of this pulse routed from the out of the other counter.  Then you can start the task and read when 1000 samples are in the buffer (about 1 second later).
Hope this helps,
Paul
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA

Similar Messages

  • How to use pci 6229 to generate a sine wave?

    Dear friends,
    I want to use pci 6229 to continuously generate a sine wave by 5000 sampling rate to output to drive a loudspeaker.
    Does any one can post an example so that I can learn from it?
    Many Thanks
    Probiee

    Dear Denis,
    Thank you for your reply. I have done with this following vi. please see the attachment.
    please give me some feedback with my vi.
    Many Thanks
    Probiee
    Attachments:
    danforum.JPG ‏119 KB

  • Writing to digital port disrupting counter on PCI-6259? (nidaqmxbase)

    Hello,
    I've set up my PCI-6259 with an angular encoder counter, as per the C code example at http://zone.ni.com/devzone/cda/epd/p/id/5735
    This appears to work great, but I would also like to use my PCI-6259's digital lines to control a TTL switch on the encoder it's measuring (among other things). If I set up a separate task in the same program and install a new DOChan to the task, it works great: I can control the TTL and measure the encoder position at the same time.
    However, I would like to be able to control the digital lines, e.g., via a script, while leaving the encoder readout running continuously. I tried running the angular encoder counter example code, and while it was running, I ran the dio/writeDigPort example.
    First of all, the writeDigPort took about 3 times longer than usual to run. It wrote to the digital line successfully, but as soon as it had, it corrupted the counter somehow. The angular encoder example began to spit out garbage, rather than the measured angle.
    Is this just a limitation of nidaqmxbase, wherein I cannot use the PCI-6259 resource from multiple processes? I can imagine this being the case, since I think the counter setup is using a DMA.
    Or is there a workaround? Any advice is much appreciated, thanks!
    -Chase

    I think what was meant is that DAQmx Base is not multi-thread safe.  From the readme:
    NI-DAQmx Base is not multi-thread safe. In LabVIEW, use the error cluster to
    force execution order. In C, use only one thread to make API calls; especially
    for task/channel creation and deletion.
    So, if using DAQmx Base, all of your functions should be in the same thread (i.e. don't make parallel calls to the driver).
    Having said this, I notice you're using the PCI-6259 which is supported in DAQmx for Linux.  You didn't mention what OS you're using, but if you are able to use the full version of DAQmx I would recommend doing this.  DAQmx is multi-thread safe, and provides more functionality and better performance than DAQmx Base.
    Best Regards,
    John Passiak

  • How to use PCI-6534 High speed DIO to count the no.of pulses aquired

    HI All
    I have PCI-6534 high speed DIO card. My requirement is to count the no.of pulses coming. Here i have an energy meter which generates pulses with frequency of around 8MHz. i need to cunt the no. of pulses coming in, here i am attaching the VI i am using. I could not really count all pulses coming in. right now i am using single line, but the requirement is to develop for 7 lines. I do not know where i am going wrong. Can any of you help me in this regards.
    Thanks
    Anil Punnam
    Attachments:
    Read Dig Chan-Change Detection_stop.vi ‏120 KB

    Sorry, not near a LV PC so can't look at your vi now.  Are you limited to using only the 6534?  If all you need to know is the count of pulses from each of the 7 ~8MHz sources, it seems like the amount of data storage required with a 6534 is terribly inefficient.  Since the 7 sources are unlikely to be synchronized in any way and they are each at ~8MHz, you're looking at about 100+ million transitions per second with change detection.  I don't think the hw can keep up with that.  Even using a constant sampling rate of 20 MHz (which just barely satisfies the Nyquist minimum of 2x 8MHz), it's questionable whether you can keep up with that rate for several minutes.  Even supposing the hw and your PCI bus and software can keep up, there's still a TON of processing to do.  20 MB/sec for 20 minutes = 24 GB! 
    On the other hand, consider the 6602 counter timer board.  Here you would simply set up 7 edge counting tasks, probably without any buffering at all.  At any leisurely pace you want, you can software query the counts of the # of pulses on each of the 7 channels and have an instant answer.  The only issue to deal with is that the counts will rollover when you reach 2**32.  At 8 MHz, this will happen about every 9 minutes.  However, DAQmx provides a nice way to handle this.  There's a property you can query that will tell you if a rollover has occurred.  It automatically resets itself to False after you read it so it's ready to detect the next rollover 9 minutes later.  See my first post in this thread for example.  (Last I knew, only DAQmx does the automatic reset, not traditional NI-DAQ).
    If you can possibly buy a 6602, I'd highly recommend it.
    -Kevin P.

  • How to use pci-6230 as position measure

    Can i use the following method to realiate position measure function?
    *  gpct_ex7.cpp
    *  Quadrature encoding
    *  Read a quadrature encoder using counter 0.  The counter is configured for X4 mode
    *  The initial value is loaded into the counter from the Load A register.
    *  Attach the quadrature encoder's A signal to pin 2 (PFI 39) and the B signal to
    *  pin 40 (PFI 37).
    *  $DateTime: 2006/07/27 23:51:45 $
    #include "stdio.h"
    #include "osiBus.h"
    #include "tTIO.h"
    void test(iBus *bus);
    void initMite(iBus *bus);
    int main()
     iBus* bus;
     bus = acquireBoard("PXI0::0::INSTR");
     if(bus == NULL){
      printf("Error accessing the PCI device.  Exiting.\n");
      return 1;
     //Intitialise Mite Chip.
     initMite(bus);
     //Calling test function
     test(bus);
     releaseBoard(bus);
     return 0;
    //Tell the MITE to link the  BAR1 address to the DAQ Board
    //You must initialize the MITE before you write to the rest of the PCI board
    void initMite(iBus *bus)
      tAddressSpace  bar0;
     u32 physicalBar1;
     //Skip MITE initialization for PCMCIA boards
     //(which do not have a MITE DMA controller)
     if(!bus->get(kIsPciPxiBus,0)) return;
     bar0 = bus->createAddressSpace(kPCI_BAR0);
     //Get the physical address of the DAQ board
     physicalBar1 = bus->get(kBusAddressPhysical,kPCI_BAR1);
     //Tell the MITE to enable BAR1, where the rest of the board's registers are
     bar0.write32(0xC0, (physicalBar1 & 0xffffff00L) | 0x80);
        //bar1 = bus->createAddressSpace(kPCI_BAR1);
     bus->destroyAddressSpace(bar0);
    void test(iBus *bus)
     tAddressSpace  cardSpace;
     tTIO *board;
     cardSpace = bus->createAddressSpace(kPCI_BAR1);
     board = new tTIO(cardSpace);
     //Reset
     board->G01_Joint_Reset_Register.writeG0_Reset(1);
     //Disarm
     board->G0_Command_Register.writeG0_Disarm(1);
     //load initial value of 0
     board->G0_Load_A_Registers.writeG0_Load_A(0x00000000);
     board->G0_Command_Register.writeG0_Load(1);
     //set the counting mode to quadrature encoding X4
     board->G0_Counting_Mode_Register.setG0_Encoder_Counting_Mode(3);
     board->G0_Counting_Mode_Register.writeG0_Index_Phase(3);
     //set source to the internal timebase (20 MHz)
     board->G0_Input_Select_Register.writeG0_Source_Select(0);
     //set gate
     board->G0_Input_Select_Register.writeG0_Gate_Select(2);
     board->G0_Mode_Register.writeG0_Gate_Polarity(0);
     board->G0_Mode_Register.writeG0_Gating_Mode(2);
     board->G0_Mode_Register.writeG0_Trigger_Mode_For_Edge_Gate(3);
     //set counting direction to Gate IO connector
     board->G0_Command_Register.writeG0_Up_Down(2);
     //arm counter
     printf("counter value is 0x%08lx\n",
       board->G0_Save_Registers.readRegister());
     board->G0_Command_Register.writeG0_Arm(1);
     //delay long enough for the quadrature encoder to turn a few times
      long int i,j;
      printf("waiting...\n");
      for(i=0;i<1000000;i++)
       for(j=0;j<3000;j++)
     //read counter value
     //Use this method to read the value of an armed counter
     //during non-buffered counting.  Since the value of the counter may
     //change during the read, we make sure that the value is stable.
     unsigned long counterValue1, counterValue2;
     counterValue1 = board->G0_Save_Registers.readRegister();
     counterValue2 = board->G0_Save_Registers.readRegister();
     if(counterValue1 != counterValue2)
      counterValue1 = board->G0_Save_Registers.readRegister();
     printf("counter value is now 0x%08lx\n",counterValue1);
     //Disarm
     board->G0_Command_Register.writeG0_Disarm(1);
     delete board;
     bus->destroyAddressSpace(cardSpace);
    when this sentence  "board->G0_Load_A_Registers.writeG0_Load_A(0x00000000);" is excute i cannt use AO function again,can anybody tell me why? and there is another question

    This used to be a problem with Excel 2003 though I thought it had been fixed with the more recent versions. I've only seen this issue when using named sets in a calculated measure and not when the set is defined within the calculated measure and that's corrected
    by declaring EXISTING before the named set reference as below.
    SET [Member Descendants] AS
    [Calendar].[By Year - Quarter - Month].CurrentMember.CHILDREN
    MEMBER [Measures].[Estimate] AS
    IIF(
    ISLEAF([Calendar].[By Year - Quarter - Month].currentmember),
    IIF(
    1=1, // Simplified for examples sake
    [Measures].[Actual],
    [Measures].[Budget]
    SUM(
    EXISTING [Member Descendants],
    [Measures].[Estimate]
    EXISTING will force the named set to be evaluated with the context of each cell evaluation.
    Martin Mason Wordpress Blog

  • How to use PCI-CAN LS (low speed can bus card) with hi speed devices

    I'm having problems connecting the low speed card to the hi speed devices: I've setup the bus with 120 ohms resistors terminating it. The devices seem to be working fine but the can card doesn´t seem to receive or send anything. It has rth and rtl of 510ohms. The card and devices are at 125kbps. I ran the card diagnostics and it passed them. Is it really possible to use this low speed card with a hi speed bus? Don't I have to do something special for it to work on hi speed bus? Any sugestion is highly appreciated! thank you

    Hello Danut,
    I was able to set up a Low Speed CAN card to talk to a High speed port on another computer( simulating a high speed device). I did not have any termination resistors on the cable. Initially, I saw the same Comm errors you mentioned and this was because the cable I was using was internally terminated. So please check that the cables are not terminated. Also , verify that the high speed device itself is not terminated ( measure the resistance between CAN_H and CAN_L, with the cable connected and without the cable).
    Let me know if you were able to get the system up and running. Also do you have any low speed devices that can be used to test teh CAN card with?

  • Internal counter/timer PCI 6259.

     I need to create a high digital pulse and them wait a certain time (I choose) that the device must wait(low level) until it creats a new high state level. This wait time must use the PCI's clock as base.

    Krsone, the example you sent didn't open here because I have only LabView 7.1 here in the Laboratory.
    Wayne, I've searched in the examples and I didn't find what I want or something related.
    What I did is create a boolean array and put it to send each position in a specific frequency. For example I chose a frequency
    of 10Mhz and create a boolean array of 20000 positions. In the first position and in the last I put a "High Level data" and in
    the others a "Low Level data", so I achieved  a sinal that sends a High level signal and after 2 sec send another one.
    To change the time between the high level states I must change the boolean array and for it I have to stop the vi.
    What I want is a vi with a configurable time between these 2 high states while the vi runs.

  • Counter using PCI-6602 for multi output

    Hi guys,
    currently I tried to control a linearmotor using PCI-6052E and PCI-6602.
    The questions is, how to use PCI-6602 to be a counter which will be converted to several output (multioutput):
    (1) converted to position >> 1count = ...[mm] --> position measurement
    (2) converted to voltage >> 1count = ...[mV] or [V] --> voltage measurement
    (3) converted to current >> 1count = ...[mA] or [A] --> current measurement
    (4) converted to velocity >> 1count = ...[mm/s] --> velocity measurement
    (5) converted to acceleration >> 1count = ...[mm/s^2] --> acceleration measurement
    (6) converted to force >> 1count = ...[N] or [kg.mm/s^2] --> force/load measurement
    (7) converted to frequency >> 1count=...[Hz] --> frequency measurement
    (i) Please assist me how to connect the driver's encoder (Ch. A A/ B B/ Z Z/) with PCI-6602, so I can get all informations above (7 measurements). What/which port of PCI-6602 connect to where from the driver.
    (ii) Please assist me how to connect the feedback signal to the PC. What/which port of PCI-6602 connect to PC.
    (iii) How to test those 7 measurements above using Measuremant and Automation Explorer (MAX) ver.4.4.1?
    Thank you for your kindly help and assistance.
    Best wishes,
    hendro

    Dear Jochen,
    (1) Principally, I'd like to use PCI-6602 to be a motion encoder also be a counter (Is it possible? Due to the manual, it is possible). I expect to have all information, such as position, time, velocity, etc. from that motion encoder (or at least the position and time). It is also expected of using PCI-6602 to do all measurements that I mentioned before . My meaning is, after having a signal from the counter, that 'count' will be converted to desire units under other programs. So, in this case, PCI-6602 is only used to get the 'count'.
    Simplified, the voltage command will send to the system (linear motor) through PCI-6052E (-10V to 10V). The actual position or other actual information will be catched (read) by using PCI-6602 (as a motion encoder, also as a counter). Then, this actual position will be used as a feedback, that will be compared to desired position.
    Is that also possible to use PCI-6602 be a motion controller + a counter + a frequency measurement in a same time parallely?
    I don't decide yet (I don't know) which acquisition rate will be needed/required, higher is better.
    (2) I'd like to apply an adaptive robust controller (yes, it is a closed loop system) under matlab with their feature called Real-Time-Workshop instead of using LV.
    (3) Power drive for the linear system will be driven by AC servo drive.
    Thanks for your help before,
    Warmly regards,
    hendro

  • Using PCI-7344 with matlab

    Dear all,
    I want to use a motion controller card NI PCI-7344 integrated into matlab R2007a (Version 7.4.0.287) to build up my system, and just want to develop several simple control methods to my system, such as PID, sliding-mode, etc using manual command, AND/OR using SIMULINK, AND/OR using xPC-target of Matlab. My problem is, this NI PCI 7344 is not supported by matlab (not compatible). Does anyone have the solution? is there anyone here can help me? How to use PCI-7344 into matlab? Thanks for your advices, kind help and attention before.
    regards,
    matlabers
    - hnd -

    Hi hendro,
    In C++ you can do this by including the nimotion.lib and FlexMS32.lib when compiling and including the neccessary *.h files at the beginning of the program. (For example, at the top of the program, you'd type #include "Flexmotn.h" if you were using the function flex_load_rpm).
    In Visual Basic you would include the line Private Declare Sub nimotion Lib "Location of dll" if you wanted to include a dll.
    You would likely need a similar command in MatLab. Unfortunately, since this is a forum for National Instruments products, I do not know what that is.  

  • PCI-6259 AI_Configure returns -10401 error

    Hi,
    I'm using MS VC++ to program an application that uses PCI-6259 M-Series DAQ card. I'm having trouble configuring and reading data from this device. AI_Configure(...) function returns with an error code of -10401 (unknown device error). What could I be missing.
    OS: Windows XP Professional
    NIDAQ: Version 7.3
    Include file: nidaq.h
    lib files: nidaq32.lib
    lib files: nidex32.lib
    Best Regards,
    Ted

    Hello Ted. Thank you for contacting National Instruments. You are getting this error because you are trying to use Traditional DAQ calls with a PCI board that requires DAQmx calls. There is a great help file called NI-DAQmx C Reference Help that comes with NI-DAQ. This file shows up on your computer as daqmxcfunc and can be found at C:\Program Files\National Instruments\NI-DAQ\Docs. For example, if you are reading in a voltage, AI_Configure() in traditional becomes DAQmxCreateAIVoltageChan() in DAQmx. Example programs can be found at C:\Program Files\National Instruments\NI-DAQ\Examples\DAQmx ANSI C. I hope this helps! Have a great day!
    Marni S.
    National Instruments

  • How to use counters of PCI 6251 to count the number of pulses

    Hello,
    I have inputs from an optical encoder {pulse train} and i need to count the number of pulses for a short period of time to estimate the speed of the DC motor. Could you please tell me how to use the counters in PCI 6251 DAQ. I found something on DAQ STC, whichs says the input pulse should be connected to PF0 {ctr source}, but i have query where do i get the output {number of pulses counted in a particular period of time}.
    Looking for your reply.
    Thanks & Regards,
    bsnr

    Hi bsnr,
    Thanks for the post!
    In MAX (Measurement and Automation Explorer), if you find the device (DAQmx devices) and right-click, you can select pinouts - which should contain a table telling you which pins are what PFI lines.
    Then, in labVIEW, you need to generate some code to use the choosen coutner in a task to count digital edges. If your not sure on this, go to Help>>Find Examples>>Hardware I/O>>DAQmx>>Counters.. and take a look at some of the code provide.
    ps. It seems (maybe just your wording), but your expecting the counter output pin to provide the number of counted edges - this isn't the case.  
    Please let me know what you think?
    Kind Regards, 
    Kind Regards
    James Hillman
    Applications Engineer 2008 to 2009 National Instruments UK & Ireland
    Loughborough University UK - 2006 to 2011
    Remember Kudos those who help!

  • Using timer/counter with PCI-6221/USB-6210 to control timed-loop VI

    Dear all,
    I need to ask about two devices and one of their functionalities, PCI-6221 and USB-6210. For our NI-based system, we need to control some timings in a Timed-Loop vi, for that currently we are using PCI-6221 and we give external TTL signal (at 1 kHz) to it,
    recenntly we need to make some changes and for that we found USB 6210 DAQ to be more suitable, but we need to clear ourselves on some specific things.
    Can the counter/timers functions available in the either PCI 6221 or USB 6210 can be used to control the Timed-loop VI by giving external clock or by using their own internal clock source?
    Although we are using external clock with the PCI 6221 but we want to know about the usage of their internal clock, also are controlling timed-loop also possible for USB-6210
    Also... What if we use the RTOS, are they still able to control the timed-loop VI  without giving any 'EXTERNAL CLOCK' and using the internal clock sources of the DAQs
    Waiting for reply,
    Bests,
    RaJaf
    Solved!
    Go to Solution.

    Ben,
    I having read previous email which I send earlier with general overview, we discussed in more detail within our team and I am giviing the specific answers.
    Please check in RED the most recent answers. Blue are the questions/suggestions by your side.
    1.    Using Internal hardware clock of PCI-6221 would enable us get rid of external clock, but how to divert the internal hardware clock to the current settings. Any idea  (can you provide us with some reference manul for otherwise). I mean is there some flag-bit etc. or VI
    2.       Is it also meant that with the installation of RTOS the timed-loop can directly get the timing source from the internal hardware clock PCI-6221? --- How???
    3.       In order to make desktop to work as RT system, what is the hardware (motherboard, processor, etc..) requirement? What are the LabVIEW modules (specific name) that needed to be installed? Our platform is LabVIEW 8.6. (Currently we have windows-7 with i7 core processor)
    What kind of application are you intending for this system? ---- high-speed laser scanning system.
    Are you most concerned about accuracy, speed, or responsiveness? To control the laser mirror scanner to move at 1 kHz or 2 kHz speed. On the other hands, using PCI-5105 (128 MB memory) as a DAQ for real-time/on-the-fly data processing.
    Bests,
    RAJAF

  • I need to read multiple counters using PCI 6601 can I do this, and How?

    I am reading 4 TTL signals from a Magnetic Pickup how do I read multiple channels using PCI 6601?

    Not concerning my primary question, I would like to point out to an N.I. Rep. that there is a typo in the help section concerning "posting a message".
    I have built a large format, two axis digitizer using linear encoders, a 6601 counter/timer, and labview 8. In building my application program, I  initially am using two daq assistants, with each set up to accomplish  the task of reading two encoders simultaneously. In doing some research, It has come to my attention, that, with my current configuration, errors may result, due to one daq assistant attempting to access the cards driver while the other is acquiring data.  All attempts to get two channels working through a single daq assistant have resulted in an error message informing me that I can only have one task per counter.Thus far, I have not seen any noticeable errors, thought I would like to have this device "rock solid", as it will be used extensively.
    Is it possible, that I should have purchase  an "S" series board instead?

  • How to use count sql statement?

    i've never used the count function and i'm not sure how to use it to print it onto a html page...my code is below...
    <%
    String tot = (String)session.getAttribute("total");
    int total = Integer.parseInt(tot);
    Class.forName("org.postgresql.Driver");
    // create connection url
    String URL2 = "jdbc:postgresql://dbhost/ug59sxn";
    // pass database parameters to JDBC driver
    Connection Conn2 = DriverManager.getConnection(URL2, "ug59sxn", "hupeswop");
    // query statement
    Statement SQLStatement2 = Conn2.createStatement();
    // generate query
    String Query2 = "SELECT COUNT(*) FROM userteam WHERE total > '"+total+"'";
    // get result code
    ResultSet SQLResult2 = SQLStatement2.executeQuery(Query2);
    int position = (int)SQLResult2 + 1;
    %>
    <TD valign=top>
    <P align=center><FONT size=+1>Welcome <%= session.getAttribute("fName") %> <%= session.getAttribute("surname") %><BR>
    Your Team, <%= session.getAttribute("teamname") %>, are currently lying in position <FONT color=red><% out.println(position) %></font>, with <FONT color=red><%= session.getAttribute("total") %></font> points.<BR>
    </FONT></P>
    <P align=justify>      Use the shorcuts on the left to visit different sections of the game.
    You can change your squad around to prepare for forthcoming games (fixtures can be found in the statistics section),
    transfer a player in to your squad to add some depth or replace injured members, or perhaps browse the statistics section to see how your team is doing in the FFL table.</P>
    <HR>
    <%
    SQLResult2.close();
    SQLStatement2.close();
    Conn2.close();
    %>
    i get the following errors:
    type Exception report
    message Internal Server Error
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
    An error occured between lines: 62 and 84 in the jsp file: /main2.jsp
    Generated servlet error:
    /home/students/ug/ug59sxn/servlets-local/work/localhost/myapp/main2$jsp.java:80: Invalid cast from java.sql.ResultSet to int.
    int position = (int)SQLResult2 + 1;
    ^
    An error occurred at line: 88 in the jsp file: /main2.jsp
    Generated servlet error:
    /home/students/ug/ug59sxn/servlets-local/work/localhost/myapp/main2$jsp.java:108: Invalid type expression.
    out.println(position)
    ^
    An error occurred at line: 88 in the jsp file: /main2.jsp
    Generated servlet error:
    /home/students/ug/ug59sxn/servlets-local/work/localhost/myapp/main2$jsp.java:111: Invalid declaration.
    out.write("</font>, with <FONT color=red>");
    ^
    3 errors, 1 warning
    if anyone can help me out, please do so..thanx in advance...

    You cannot cast a ResultSet object (or any other object for that matter) to a primitive (such as an int)
    Replace the following line of code:
    int position = (int)SQLResult2 + 1;with this:
    int position = 0;
    if(SQLResult2.next())
      position = SQLResult2.getInt(1) + 1;
    }Additionally I noticed that you have put single quotes around total in the following line:
    String Query2 = "SELECT COUNT(*) FROM userteam WHERE total > '"+total+"'";Are you sure that the total column in the userteam table is of string type? If not, you don't need the single quotes.

  • No ISA slot available in PC. How can I use PCI-85 Modbus Plus card with Lookout?

    My application is to communicate with two Modicon PLCs using Modicon's ModBus Plus (PCI based PCI-85) network card inside my PC, and using Lookout as an SCADA software. Since there is no ISA slot available in new PCs, I can not use Modicon's ISA-85 Modbus Plus networc card. But Lookout does not support PCI based PCI-85 card, how can I use PCI-85 card then, with Lookout? Why doesn't Lookout support it? I asked the following question from from the Modicon's representative about it:
    If I purchase Modbus Plus Driver Suite CD (SWMXDS001, 05, or 10 etc),will I be able to use Lookout SCADA software (by the way, it supports standard MB+ prtocol) for my application? If yes, can I use any version of an
    y of the ISA, PCI, or PCMCIA based MB+ card?
    His answer was:
    The Modbus Plus Driver Suite will talk to any version of card, PCMCIA, ISA, and PCI. The question now is will the SCADA package you are
    planning on using be able to talk to the Modbus Plus Driver Suite? You must contact National Instruments and ask them if they support Modbus Plus, and if
    they used the MB+ system developement kit to develop their product. Or if they wrote their own MB+ drivers, do they work with Modicon hardware?

    Hi,
    currently Lookout does not support the PCI-85 card. The only card supported for Modbus Plus is SA-85. Please see for further information:
    Where can I Find Drivers for Communicating to PLCs, RTUs, and Other Industrial Hardware?
    How to configure the SA-85 card for Modbus Plus
    Hope this helps
    Roland

Maybe you are looking for

  • How can i test if i'm in the EOF of my file text in applescript?

    hello i want to known how can i test my EOF of my file text or if i meet "Plan N°" when i read each linesdxhezdcxezkchcochzhejc my file text : Plan N°1 94.64% MDF_280;;3050;1850;1 piece;0;0;500;500;0;AAA piece;0;504;500;500;0;AAA piece;0;1008;500;500

  • I lost all my bookmarks in my tool bar, how do I get them back?

    I had all my companies in my toolbar, that I use to click on to pay my bills, but they went away for some reason and I can't get them back. I am 85 years old and I might have click on some thing that cause this, please help . Thank You Mr. J.C.M.

  • Scroll bar in Tree item

    hi I would like to know if there is a way to get rid of the scroll bar in a tree item.. normally in other applications, windows explorer for eg. when the contents of the explorer is within the view, the scroll bar disappears automatically and when th

  • Java Version 6 Update 24 Update Problem. Please help!

    I am using Google Chrome, running on Windows 7 Home Premium, and have tried to update my Java to the latest version (V6.24), but no matter how many times I download the file, it does not update! The file will download, but when trying to run and inst

  • Embed interactive SWF in PDF - losing interactivity

    I have a simple swf file that has multiple squares that change color when clicked. I need to embed it into a PDF so when viewed, you can still click the squares to change the colors. However, when I embed it, the squares no longer change colors when