A Programming problem with PXI 8461

  I use PXI-8461 CAN Card.
  The subvi READ_AI's function is to aquire data,and save datas to database.
  And Process.vi dynamicly calls READ_AI twice,and a Main.vi calls Process.vi for every step.
  Every step lasts 10 seconds,and has 10 seconds interval.
  step1: from 0s->10s, aquire data;
         delay 10s;
  step2: from 20s->30s,aquire data;
  I find that ,step2's data is from 10s->30s!
  What is the problem ? Is there any error in CAN's use ?
  Here is my vi. thank you.
Attachments:
READ_AI.vi ‏80 KB
Process.vi ‏44 KB

It displayed that error message because it reached the end of the file before your program was complete. For example, remember when last Thursday when you
Hey, did you notice how the last sentence up there just stopped before the sentence was really done? Your program does the same thing.
Read some tutorials about Java; they'll have plenty of examples of complete programs.

Similar Messages

  • Problems with PXI after motherboar​d replacemen​t

    Hello,
    My PXI system consists
    of PXI-1045, PXI-8360 and five NI
    PXI intruments (5152, 4065, 6552, 2532, 5404). I was working with this
    system without problems for a long time. However, the motherboard of my
    PC had a specific problem with the ethernet connenction and I decided to
    replace the motherboard with a new one (same model). After the
    replacement (the pc finally was fully functional), I tried to power on
    the PXI chassis, but  I couldn't "see" any module in PXI chassism, using
    the MAX. I must tell thatI didn't change the hard disk of the
    pc, or anything else just the motherboard.After some experiments, I
    finally fix the probrem with the following solution: First I unplugged
    all the modules from PXI chassis. After that, I plugged one module and I
    reboot the pc. After that I plugged the second one module and I reboot
    the pc. And so on...
    This was the only solution
    that I found in order to indentify all the modules of the PXI chassis.
    My question is why happend this
    thing? Where are the PXI modules' adresses stored? Also, is the
    procedure I used correct, or I had to do something else in order to make
    the system work?

    Hello,
    Im glad that your system is up and running, ideally that behavior should not have occured. For future troubleshooting, also check Windows Device Manager to see if your devices show up if MAX does not detect them (Windows may have initially failed to detect the hardware). In a PXI system, the pxisys.ini file provides mappings from PCI logical addresses (PCI bus, device, and function numbers) to corresponding PXI slot numbers, allowing device driver software to identify the slot of a PXI module. There is a unique pxisys.ini file for every combination of PXI chassis and controller. See the link provided below for additional information regarding how to configure PXI systems in MAX.
    1. Configuring Your PXI System in MAX 3.x and Above: http://zone.ni.com/devzone/cda/tut/p/id/11136
    Best regards,
    Ali M
    Applications Engineer
    National Instruments

  • Multiple NI-Switch problems with PXI-2566 including blue screen

    We've been having intermittent problems with our PXI-2566 for months now.
    It seems like at some point the device and/or driver gets in a state where the open of the device causes a "blue screen." It traps in niswdk.dll (addr: ae9db759, base: ae9b7000, datestamp: 488e1ebe). The NI_Switch version on this system is 3.8.0f1. We now have the system configured to do a full kernel dump (as suggested in another thread).
    We've seen some bad viStatus'es (that we've haven't been able to decode) returned from NI-Switch:
    niSwitch_InitWithTopology - 0xBFFA6767 
    niSwitch_Connect - 0xBFFA4B50 -- I think this is the error that starts the downward spiral...
    niSwitch_Disconnect & niSwitch_Connect  - 0xBFFA495D (after 0xBFFA4B50 error)
    We get a blue screen the next time we start our app -- best guess is on the niSwitch_InitWithTopology ("foo", NISWITCH_TOPOLOGY_2566_16_SPDT, VI_FALSE, VI_TRUE, ) call. 
    We'd seen these kind of problems several months back & switched out to a different PXI-2566 & they went away, but now they've come back. Not sure how much the relays have been stressed, but even if they were don't see why we'd get these types of failures. The card passes self-test (from Max), but I get errors running the soft front panel & can't get to the relay counts:
    The system is running XP. The application uses MSVC, VISA, etc. This doesn't have anything to do with powering on/off the PXI chassis (another reason for blue screens).
     Ideas for fixes or debugging ???

    OK, 1 easy answer: the device name was set to "PXI1-NI2566" MAX allows this & we have no trouble using this name from our application, but apparently the "-" is invalid from the soft front panel app. So at least I can get to the switch counts now (and they're all <2000).
    We did get another 0xBFFA6767 this morning, follow shortly by a blue screen & have a kernel dump. Does that help in tracking this down?
    We've been running this application for many months. It's use of the 2566 is pretty simple and has not changed. It fails intermittently & we haven't been able to correlate the failure with any other events. The system in general has been pretty stable in terms of hardware & software changes. 
    There are a lot of devices in this system -- this is the only one we're having problems with. We have a rack-mounted PC interfacing to separate PXI & VXI chassis. Here are summaries from MAX & Device Manager: 
    Is this enough detail? The MXI interface card (MXI-4?) is currently PCIe, but had this same problem with the PCI version of the card 
    Can you be more specific about resetting after a 0xBFFA6767 to get closer to the fault?
    The "other blue screen" events I was referring to were in a different thread on the NI forums. Those problems had to do power cycling the PXI (or powering it on after the PC) -- we know from experience not do that.

  • Copley Xenus Drive with PXI-8461

    Hello,
    I am trying to learn how to use the Copley Xenus drive with Copley's CMO library in LabVIEW. I'm struggling with finding a starting point. I'm new to using .NET framework and it seems like there should be an easier way to talk to the drive with LabVIEW. We're currently using a Moog drive with CANopen and the PXI-8461 CAN card. The VI's I'm trying to replace have API's to write over CAN. Do these NI-CAN API's work with any drive, or am I limited to using Copley's CMO (.NET Framework)?
    Any tips would be great.
    Thanks!

    Matt,
    http://www.copleycontrols.com/motion/Products/Software/netSoft.html
    That is the link to download the CMO library. It appears that it is actually a .NET Framework DLL and not an API set. It would be better (obviously) to have an API that we can use, rather than the .NET Framework. In the CMO Programmer's Guide (link below), it shows on page 20 how to add the .NET reference to LabVIEW, but gives no real information on what to do past that, unfortunately.
    http://www.copleycontrols.com/motion/pdf/CMO_programmersGuide.pdf
    I did download the NI Industrial Communications for CANopen from the link in my previous post. I also read that the Industrial Communications for CANopen supports EDS files; I was able to find a Copley EDS for the drive, but I'm not sure how to implement it. 
    Thanks!

  • Programming problems with INT / FLOAT

    I got a problem with datatypes float and int.
    I'm just developing a c-program on HP-UX with the gcc-compiler. 'cause i have not ever been done an ORACLE-access before, i has started with the "cdemo2.c" - example from the oracle-demo-dircetory in version 8.0.4.
    in the DB there's a column with NUMBER-TYPE, but when i call the oci-function (or what ever it is) "odescr()", the variable "scale" (which is supposed to differentiate between FLOAT_TYPE and INT_TYPE) always is set to "0". this variable should be set to anything else but "0" if a FLOAT_TYPE is detected, but it isn't.
    what I do wrong ???
    How can I know the exact datatype, when a NUMBER_TYPE in the DB appears ???
    if there is a better way to realize an oracle-access in C, please don't wait to tell it to me
    many thanks
    null

    You basically got it. Another approach is to always work on the rightmost digit; that way you'll always be dividing, mod'ing, or multiplying by 10.
    You don't need to know the length of anything to use a for loop. Remember that a for loop has 4 parts: the initialization, the conditional, the "update", and the body. (There are probably more correct names for these that I can't recall right now.) The conditional and the update tend to be length checks and increments only because for loops are commonly used over arrays or strings, but they don't have to be.
    Another hint: how do you know when you're done pulling the digits out of the source number? What is the value of the source number when you're done?

  • PPC program problem with MacPro

    Hello all.
    Suddenly all my PPC programs stopped working on the MacPro.
    I have tried standard diskcheck and repair permissions on my boot harddrive.
    I have 4 different PPC program: Windows Media Player, Photoshop, MS Office and cannon scangear. All stopped working.
    It seems to be a problem with the PPC emulation.
    Any idea what I should do? Do I really need to reinstall my mac? It feels like Windows all over...
    Kind regards Mau
    MacPro 3ghz   Mac OS X (10.4.8)  

    I did download the full 10.48 update an installed. It still does not work.
    I am not shure what cused the problem. Had issus with that my root filesystem was full. It was /var/spool/qmaster that was filled with junk data.
    I could not delete the useless data in that directory. it took 50% of my harddriva space.
    I logged in as root and pwd to /var/spool/qmaster and the directory name of my qmaster que. Lets call it buhu.
    cd /var/spool/qmaster/buhu.
    To delete the data. The wonderful command:
    rm -rf *
    My computer works great, but no rosetta programs anymore. It worked since I got my Macpro in Aug.
    Thanks all for the help, and sorry for my shaky enlish.
    The 1049 update should have som rosetta updates. My problems could be solved with it?
    I am desperate and thinking about installing a beta build of 10.49.

  • HR Programming :  Problem with IDOC HRMD_A

    Hello ,
    We use Idoc HRMD_A for transferring PA records from
    one R3 system (ECC5) to another R3 system (46d).
    We have a problem - The Idoc doesn't check the data
    inserted against the database check tables and
    inserts wrong values into the target system database.
    (At least that what has happened when we transferred
    wrong value of MASSN in 0000 records).
    Is there something we can do ?
    Maybe - Some flag we can sign in order a check against check tables will be done ?
    Is it a problem with this IDOC ?
    Thanks .
    I appreciate any help.
    Nitzan S.

    Consultancy note 134085 :
    "Ultimately you are responsible for consistency of this data. SAP saves this data directly on the database without checking the single fields and consistency of the data records (time constraints check, writing change pointers, value check) because the consistency for an R/3 - R/3 lingage is of course ensured."
    The IDOCs were intended for R3->R3 data replication, and not for data loads/interfacing. Since you're having problems, I'm guessing in addition they require the same SAP version as well.

  • Automatic Payment Program-problems with check printing/viewing

    Hello:
    I am new to the SAP field. I have been trying to make the automatic payment program work for me. I have been having trouble trying to view the print preview of checks by going to system->own spool requests.
    Steps followed ---Automatic Payment Program:
    I checked the open invoices -
    FBL1N
    I ran F110 and finally print out with the start immediately option checked
    I checked the open invoices FBL1N again and all the open invoices have cleared
    However I am unable to view the checks that should have printed for this payment run. Can anyone please tell me what I am doing wrong here.
    Thanks,
    Mahesh

    Mahesh,
    Go to F110, Enter the run date and then click enter - After that click on edit and then proposal and proposal list and you can see all the details - which actually runs the program RFZALI20.
    Hope that helps..
    Thanks,
    Nandita

  • AI Buffer Read Problem with PXI-4351

    I have a PXI-8105 controller in a PXI-1045
    chassis with labview 8.2 installed.  I would like to use a PXI-4351
    board to measure a thermistor.   I am using the sample vi on the ni web page http://zone.ni.com/devzone/cda/epd/p/id/838, but I get an error code -10846 "AI buffer read" after a few acquistions.  I am new to Lab view --- what does this mean and how do I fix it?

    Well, I don't have ready access to a LV PC and for some very odd reason, my attempt to search for "error code" (and even just plain "error") on the ni website returned 0 hits?!?  Strange...
    Anyhow, I'll take a guess and offer you an idea for a workaround.  Could your error mean that your call to AI Buffer Read times out before the requested # samples have been taken?  This kind of error wouldn't be surprising as it's difficult to determine a reasonable timeout value.  Based on my own past experience with a 4351 board, I'd say that the whole notion of "sample rate" turns into something of an odd duck. 
    As I recall, all you can specify is a filter frequency which will establish a ceiling for your actual sample rate.  However, the board also has some sort of criteria for signal stability.  If you have several different channels to measure which use different input ranges, your actual sample rate can be reduced pretty dramatically.  So you might get a few samples per second or a few seconds per sample.
    The workaround I used was to always request data that had already been collected and was immediately available.  One of the inputs to the AI Buffer Read lets you set some parameters where you can specify that you want to read the most recent sample that's already in the buffer.  Granted, this may represent a temperature from a second or two ago, but this lag is not necessarily a major issue for temperature measurements.
    Note: in my app, I could query for Temperature any time I wanted, as frequently as I wanted.  I would always get data back, but there was no guarantee that I'd get *unique* data back.  In other words, if I called it 10 times in a tight loop, I might get the exact same sample # back each of those 10 times.
    -Kevin P.

  • Problem with PXI-8145RT Controller.

    Hi All,
    I am preetam.
    I am using PXI-8145RT controller in PXI-1011 Chassis.
    My controller is having 64MB of Compact Flash and 128MB of SDRAM.
    I configured the Chassis through host PC using MAX.
    But if i restart the controller the configuration is going off and we have to reconfigure the controller again.
    How can i store the configuration permenently?
    thanks in advance and awaiting for ur reply
    Preetam

    line 16 on the Access List refers to allow ICMP Pakets on the whole network.
    Line 16 does not cause the DHCP Problem. When we remove line 16 from the ACL the DHCP problem persists.
    It doesen´t matter what changes we apply on the ACL. We have the DHCP Problem since from the start when we added the ACL.
    When the ACL is removed, we don´t have any DHCP Problems.
    Thank you

  • I can't use my adobe programs, problem with license?

    I had a totalt computer crash wich resulted in a new installation of my OS. I had my backup-HD were i copied my Adobe program from into my reinstalled computer, but now I cant use them because "they are copies" (I have payed for them) I can't even reinstall them.  How can I solve this problem?

    Nobody can tell you anything without proper system info or other technical details.
    Mylenium

  • Programming problem with Generics

    Hello all...
    I'm trying to get a class using generics. This class is a generic Parser. Here is a piece of code:
    package com.parser;
    import java.io.StringReader;
    public class Parser<T> {
         private Class<T> constructedClass= null;
            String myString= null;
         public Parser(Class<T> class, String str;) {
              constructedClass= class;
                    myString= str;
         public T parse(String document)
              throws JAXBException, ClassNotFoundException {
              ConstructedClasscc = ConstructedClass.newInstance(constructedClass.getPackage().getName());
              Transformer u = cc.getTransformer ();
              return ConstructedClass.cast(u.transform(myString);
    }This code is working now, but I need include Class<T> parameter in the constructor in order to get the name of the package.
    I've tried to clear this constructor, but i'm not able to find any trick to avoid the: constructedClass.getPackage().getName()* line without constructedClass param.
    Does exist any method to obtain it?
    Thankyou all in advance.

    No, erasure means that generics information like that isn't available at run time. it's quite common for generic classes to take the actual class as a parameter for that reason (see, for example, the EnumMap constructor.)

  • Dialog Programming: Problem with Radio Buttons in a dialog screen.

    Removed - Duplicate posting.
    Edited by: miniSAP on May 14, 2009 9:05 AM

    Hi,
    go to se51 screen layou and select the four radio button and right click there is a option called assigned group name..
    enter the group name..
    from now onwards it allows you to select only one radio button at a time..
    Regards,
    Prabhudas

  • Troubles with PXI NI 8196

    Hello. I have a problem with PXI controller NI 8196.
    My system is built from the PC connected to the PXI (realtime os) using ethernet.
    Recently I started watching on the PC lost connection with PXI (windows message).
    How can I find out what accounts for these problems? Is there a PXI system log internal errors similar view of events in  Windows?

    Failures are rare. About once a week in operation, about 4 hours. After rebooting controller - the work continues as usual.
    Before this year, more failures were not. At other workplaces with controllers 8175 after 5 years were also marked by similar problems that subsequently resulted in the release of controller failure.
    The program runs as a compiled exe to startup in real-time os.
    Yes, system worked fine ~1 year.
    Thanks for the tip. I'll definitely check it out soon.

  • Timebase synchronization issue with PXI 6713

    As indicated in another post, I need to use a common timebase to all cards within my PXI chassis to synchronize my acquisition/generation DAQmx tasks.
    I performed that successfully by setting timebases of all boards from the 20MHz timebase of a E-series DAQ board.
    I have another system setup where I do not have E-series DAQ boards but only M-series. In this case, I tried to synchronize all the cards with the 10MhzRefClock of a PXI 6254 board. It seemed to work correctly, until I looked at the analog output signal of one PXI 6713 board.
    This device has 8 analog outputs, I performed as for DAQ boards : I set its timebase to a 10Mhz clock. When I have at least two outputs with hardware timing I observe on scope really weird signal : nothing is visible when all outputs are left to zero volt, but when another voltage is set, the output toggles at very high frequency between 0V and the setting voltage. When two outputs are set to values different from zero, the output also toggles but between these two settings...
    I thought it was a board failure, but I checked with another PXI 6713 and the behavior is the same.
    When synchronizing with a 20MHz timebase, everything is fine, but 10MHz clearly shows this issue. I checked the 6713 documentation, and it seems possible to use a timebase different than 20MHz.
    I attached a VI that illustrates the problem : I create a DAQmx task containing 2 AOs, where 10MHz timebase is taken from a M-series DAQ board. A hardware timed single point timing is configured and outputs are updated in a while loop. If you connect a scope to the first analog output, you will see the phenomenon.
    Everyting is fine when you select a 20MHz clock as a timebase. 10MHz leads to this issue. I also tried to synchronize through PXI backplane clock (i.e. /6259_1/PXI_Clk10) but it leads to the same problem.
    Please note that using the same 10MHz synchronization on DAQ cards (PXI 6040E, 6071E, 6254, 6259...) for AO works perfectly. I only encountered this problem with PXI 6713 board.
    Message Edité par Inpriser le 08-18-2006 02:54 AM
    Attachments:
    Synchro 10 MHz PXI AO.vi ‏34 KB

    Inpriser,
    You wanted to use the PXI 10MHz clock to synchronize to 6713s using the PXI capabilities. I’m afraid that since the AO series doesn't have a PLL, you won't be able to use the PXI 10 clock.
    I made a few search and found this:
     “Neither the 6713 nor any of the AO series support PLL synchronization. However, the M-Series does, though in that case you are limited to a smaller number of analog outputs. Regardless, the best option is using an Arb or other card that can use the Star Trigger, or an m-series device with PLL synchronization capabilities.”
    For more info’s about how to deal with PXI and PLL, please check this forum:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=11986&requireLogin=False
    I’m sorry to disappoint you, hoping you’ll manage to deal with that,
    Regards,
    BRAUD Jean-Philippe
    Field Sales Engineer - Nord et Centre France
    LabVIEW Certified Developper

Maybe you are looking for

  • How to display the report output from a standard Oracle Form

    Dear Members, I am calling a concurrent program (XML Report) from a standard form using form's personalization (special menu entry). I am able to successfully submit the concurrent program. Once it is submitted successfully user need to navigate to t

  • Error in code compiling

    Hi this is the error i am getting while compiling C:\>javac SessionListener.java SessionListener.java:17: <identifier> expected     private static Map<String,HttpSession> sessionMX = new HashMap<String,HttpSe ssion>();                       ^ Session

  • Dell Precision T5810 Core options and GPU config? Running CC on virtual desktops?

    Hi, two questions really but didn't want to start multiple threads. I tried searching for answers to my questions but was not very successful so am trying to post. I am looking at buying some computers for our office which will be using the CC subscr

  • Fonts are odd in safari

    this may have occurred after installing new ilfe (well as it stands just the new iphoto, as iweb caused all sorts of problems and i had to ditch it). Anyway the fonts overlap on some pages at certain sizes, if i change the size it corrects but then o

  • How do I export or save Bookmarks from Firefox

    I have created a few Bookmark folders with Firefox. Each folder of course containers several individual bookmarks. How to I save this few Bookmark folder into a file, and then transfer it to Chrome, Internet Explorer, Opera or other browsers. Regards