PCI1424 - invalid buffer with the acquisition of memory on-board triggered

Hello

I need to capture 2 images in a very short interval using a PCI-1424 and a camera Kodak/Redlake. I have to use the amount of memory shipped to capture images. Using the example

\National Instruments\CVI\samples\IMAQ\Ring\ring mem.prj on board, I added the following code in "int CVICALLBACK Ring"

Open a session and an interface
imgInterfaceOpen (intfName, &Iid);)
imgSessionOpen (Iid, &Sid);)

ADDITIONAL CODE to TRIGGER

RES = imgSessionTriggerConfigure2 (Sid, IMG_SIGNAL_EXTERNAL, 0, IMG_TRIG_POLAR_ACTIVEH, 5000, IMG_TRIG_ACTION_BUFFER);

When the program is run, a timer checks whether there is a valid buffer:

int CVICALLBACK Imaq_loop (int, int int event, control panel,
void * callbackData, int eventData1, int eventData2)
{
/ * definitions here * /.

static int unsigned lastBufNum = 0xFFFFFFFF;
 
switch (event) {}
case EVENT_TIMER_TICK:

imgGetAttribute (Sid, IMG_ATTR_LAST_VALID_BUFFER, & currBufNum);
If ((currBufNum == lastBufNum) |) (currBufNum is 0xFFFFFFFF))
return 0;

On my old NT system with NOR-IMAQ 2.2, the value of & currBuffNum form imgGetAttribute was always 0xFFFFFFFF, until the first trigger has been received, so basically, return 0; has been performed until the first trigger.

On XP with NOR-IMAQ 4.0 the first value of currBufNum is always 0 and the call

imgSessionCopyBuffer (Sid, currBufNum, CopyBuffer, FALSE);

waiting for the trigger occurs... with side effect, that the image is not really in the buffer 0.

Is this difference between the IMAQ2.2. and intentional 4.0 or am I missing something? \

Concerning

Roland

I've found a workaround. I use the function

ImgErrCode = imgSessionStatus (sessionID, & status & currBufNum);

Instead of

ImgErrCode = imgGetAttribute (sessionID, IMG_ATTR_LAST_VALID_BUFFER, & currBufNum);

In this case, currBufNum is 0xFFFFFFFF, until the first image is saved.

Roland

Tags: NI Hardware

Similar Questions

  • The application is not able to cope with the acquisition of equipment.

    I use NI USB 6000 with labview. I'm continuing the analog data acquisition, but then, after running for a while, I get an error

    "The application is not able to cope with the acquisition of equipment.

    Increase in the size of buffer, most frequently the reading of data or by specifying a fixed number of samples to read instead of reading all available samples would correct the problem. "Please find the attached vi.


  • CHKDSK incorrectly replacing invalid security with the default id id

    the last 2 times I had to restart after installing an update windows CHKDSK destroyed my computer when chkdsk incorrectly replacing invalid security with the default id id.  OUCH!

    Whenever I roboot now CHKDSK can go and I don't want to lose my computer time a third and having to reinstall everything again.

    Is there some kind of fix for this?

    I have Windows Vista Ultimate SP2

    Hello JimHarding,

    Response by Sebastien will disable chkdsk to run at startup.

    My concern here is that even after a format and clean install, chkdsk keeps is triggered to run.

    This could be a sign that the hard drive begins to run out.  It is my recommendation that you begin to take a very up-to-date backup of your data very convenient where the disc goes down.

    Best regards

    Matthew_Ha

  • Invalid connection with the CytoScape plugin

    Hello everyone,

    I am trying to connect to my server Oracle 11.2 by CytoScape 2.6.3 instance but I get the error ORA-01017: name of user and password invalid. I know that my credentials are correct and I have also tried SEC_CASE_SENSITIVE_LOGON setting to FALSE, but this isn't the problem.

    By checking the dba_audit_session table, I see that every attempt is a recording that says:

    OS_USERNAME: ssundara
    Username: (null)
    + USERHOST: [My computer name] +.

    that seems pretty strange to me... Of course, when I connect through SqlDeveloper using the same credentials, username and os_username fileds are filled in correctly.


    In addition, in the Cytoscape error console I get the following warnings (even if, as saying the warnings themselves, the problem should not affect the operations of plugin):

    + 1 +
    + cytoscape.plugin.PluginManager [WARN]: registration of the plugin error: could not load plugin.props. File is not in the expected location: oracle, graph, RDF, cytoscape unable to load plugin.props. File is not in the expected location: oracle, graph, RDF, cytoscape java.io.IOException: cannot load plugin.props. File is not in the expected location: oracle/chart/RDF/cytoscape to cytoscape.plugin.PluginProperties.readPluginProperties(PluginProperties.java:89) to cytoscape.plugin.PluginProperties. (PluginProperties.java:76) to cytoscape.plugin.PluginManager.registerPlugin(PluginManager.java:356) to cytoscape.plugin.PluginManager.register(PluginManager.java:345) to cytoscape.plugin.PluginManager.loadPlugin(PluginManager.java:951) to cytoscape.plugin.PluginManager.loadURLPlugins(PluginManager.java:901) to cytoscape.plugin.PluginManager.loadPlugins(PluginManager.java:796) to cytoscape. CytoscapeInit.init (CytoscapeInit.java:259) to cytoscape. CyMain. (CyMain.java:155) to cytoscape. CyMain.main (CyMain.java:119) +.

    + 2 +
    + cytoscape.plugin.PluginManager [WARN]: oracle.graph.RDF.cytoscape.RDFVisualizer responsible but not registered, it will not affect the functioning of the plugin.


    I tried to look for solutions, but I couldn't find an answer. The problem seems to be located in CytoScape Plugin of the Oracle, but I do not know how to solve. Does anyone have an idea?

    A revised version of the Cytoscape plugin (dated April 23, 2013) is now available for download on OTN.

    The only file that has been changed to solve the problem of invalid connection is oraclerdf.jar.

    To solve the problem of invalid connection, just download the zip file, extract files from it and find the new file oraclerdf.jar under JAR subfolder, then replace the old oraclerdf.jar with the new.

  • temperature sensor with the acquisition of data usb-6009

    Greeting

    I want to use a sensor with usb-6009 to save the variation of body temperature about 15 minutes and then use these data in labview.

    If you please you can advise me with the best low-cost use and the way/circuit sensor connect it to the usb-6009.

    Hi ba7soun,

    If you can use with USB-6009 LM35 depends on the range of output voltage of the sensor. I understand that it requires a 5V supply with respect to the ground, which you can provide to the USB-6009 (more than 200 my should not come from the USB-6009).

    The maximum range of the USB-6009 is - 10V to + 10V, while the minimum range is - 1V to + 1V, also probably the output signal of the LM35 will be in this range. What you need to do is to compare the full range of the output signal with the range of the DAQ divided by 2exp (14) (because it is a 14 bit ADC) and ensure that the first is much more than the latter.

    Kind regards

    Condette Dhruv.

  • Problem with the acquisition of data on XP Embedded

    Hello

    I'm using LabView 8.5, 8.7 DAQmx. My application is collection of data of NI USB-6009 14bits. I tried to create applications for tablet PC with installed Windows Xp Embedded. I created the installer on tablet with installed Windows 2000.  I solved all the problems that occurs during installation. First version of the program have assistant DAQ in a main VI who collect and process the data. It worked properly on Xp Embedded. Second version was split into two of the Subvi. One is data collection and secondary processing. Each VI have own while loop. Both Subvi is placed in the large loop and they start at the same time. I am writing all the data to global variables. On PC with the windows application created 2000 worked properly. Error occurs when I moved it to Xp embedded. VI, which is the collection of data, the error see the 200361 code and text:

    DAQmx reading (analog 1-d Wfm NChan NSamp) .vi:2
    The task name: _unnamedTask<0>

    I know its something with the sampling and the clock, but I do not see where is the problem. In the main loop and two Subvi I 'wait until the next ms Multiple"block with a value of 200. DAQ Assistant were set as follows:

    Price: 1000

    Number of samples: 1000

    Timeout (s): 10

    Can you tell which can cause this error?

    If you would like more information please write here.

    Problem solved. There was connection between PC and USB-6009. Program works when I connect the USB-6009 housing directly to the PC. Previous connection was through usb hub.

    Thanks anyway.

  • Layout Error 998. Invalid access to the location of memory in Lightroom 6 with Win 8.1

    Lightroom 6 worked fine for 4 months on Windows 8.1

    First of all, he simply not open and now I get error 998, with no response from the program.

    Any thoughts?  I've uninstalled and reinstalled the software twice and still have the same error.

    Hi tadn,

    Could you please post a screenshot of the error?

    ~ UL

  • Transfer of data to low with the stick of memory on a Satellite A100-207

    Hi, whenever I stick the memory stick for my Sony Ericsson P990i Smartphone in my laptop it says that he has detected new hardware and needs to restart to use.

    I was expecting a little the first time, but it does EVERYTIME now. Which means the transfer of files on the memory stick takes a lot longer that it should and it's much easier (but much less suitable) to transfer via my network on my PC to the main house and use the card reader in my Epson printer to put the files on the memory stick.

    Someone knows why this happens and how to stop it. I need to update the files on the memory stick as they are published on the laptop and the phone (via QucikOffice which comes pre-installed and allows editing of word and excel files).

    Any help or ideas is appreicated.

    Andy

    Hello

    I put t know what memory card you use with your mobile phone, but please be sure that this card can be used also in the slot for Satellite Map several digital media.

    Maybe you need memory stick pro adapter dup.

  • All https sites are routed to/from a site that has an 'invalid certificate' with the name DATAMARKETRESEARCHAPPS.

    I can't access any site secure with her being blocked entirely or has the possibility to access in any case given an untrusted certificate. Secure any site I now have the same message. The name in all areas is 'DIGITALMARKETRESEARCHAPPS PTY LTD'. I'll have after this through IE I can't access Firefox site via firefox. I just upgrade to v26 v27 and did a reset and had no problem before this.

    Hello rehmeyer, this seems to be a problem caused by malicious software on your PC.

    go to Control Panel / programs and remove all the toolbars, programs, suspicious or things you have not installed intentionally there.

    afterwards, run a full scan of your system with security tools like the free version of malwarebytes & adwcleaner.

    Fix Firefox problems caused by malicious software

  • with the 2009 macbook memory upgrade

    I have a macbook end of 2009 (white uni-pate). It has 2 x 1gig memory cards. This can be improved? Very slow.

    Thank you

    It can be upgraded to 8 GB. Click here and follow the instructions.

    (140196)

  • Problem with the acquisition of signals with DAQ

    Hello

    I am trying to acquire a signal voltage using NOR-USB DAQ 6008 without using express assistant DAQ vi but the vi gives an error as shown in the attached picture.

    I just want to acquire the voltage signal.

    Can someone help me solve the error so that I can get to acquire tension using data acquisition.

    Thank you.

    Hello GoviRe,

    Please turn off the running highlight. ("the Yellow lamp" must be turned to off / / 'white')

    Your samples crushed, because you are forcing him to crushed to help highlight the execution.

  • Simultaneous to the AO and HAVE with the acquisition of data NOR USB 6001/MATLAB Toolbox

    I am very new to data acquisition and bought a NI USB 6001 to start to learn. Because I can get free MATLAB through my University, I use Matlab data acquisition Toolkit as the data acquisition software.

    My problem is that I get the following error message when I try to generate an AO (an LED voltage) signal and measure a signal I (voltage of a battery of 9V) simultaneously.

    ATTENTION: This change is caused in the dump output data queue.  Use queueOutputData for the queue data before the start of the object.
    Hardware does not support the specified connection. Check the user manual of the device for the valid device routes and pinout.

    However to measure IA or by generating the AO each by themselves works perfectly well.

    My Matlab script looks like this:

    daq.getDevices;

    s = DAQ.createSession ('or');

    s.Rate = 1000;

    s.DurationInSeconds = 10;

    addAnalogInputChannel (s, 'Dev1', 'ai0', 'Voltage');

    addAnalogOutputChannel (s, 'Dev1', 'ao0', 'Voltage');

    aoVoltage = 1.8 + 0.1 * sin (linspace (0, 2 * pi, 10000))';

    queueOutputData (s, aoVoltage);

    s

    startBackground (s);

    Note that adding the channels HAVE and AO at the session also works, however I get the error mentioned at the start of the session. This is a limitation of my data acquisition hardware (I don't see something like that mentioned in the manual) or do I have to modify the script?

    The pins connected for the LED are AO0 (+) and AO GND (-).

    The pins connected to the battery are AI0 (+) and (-) AI4. (The problem is still there if I use the reference to the ground for AI)

    6001 cannot make simultaneous tasks.  Very standard limitation of the low-end hardware... just don't have on board computing resources to handle such things.  Even the 621 x boards have only limited multitasking abilities.

    Can intensify to a high range data acquisition ($$$) or buy a 2nd a low end and synchronize tasks in software (not as precise calendar).  I've done two approaches, one is "best" really depends on demand... If low-cost or high-performance is a priority.

  • Experience with the acquisition of digital workflow series of ADC on SPI or Microwire

    Dear Forum,

    I would like to acquire a digital stream via a connection series of two sons of an analog-digital chip such as AD7679. The device says it is compatible with SPI and Microwire to achieve protocols.

    There are screws for the manipulation of these protocols series? And can I use a card in the series M as the PXI-6289 for this?

    Thank you!

    Hi cwierzynski,

    Thanks for your post!  For your application, I highly recommend the USB-8451, designed to connect with SPI hardware.  You can program your application in LabVIEW using NOR-845 x driver, which installs several examples for you're going to get.

    Theoretically you could do with a unit of the M series, because they have the ability of/s digital correlated (timed by the hardware).  You will have to implement the whole of the Protocol in the software yourself.  All up packets in the shape and alignment of the data will be done by programming, as well as addressing slaves. This would, of course, the overhead costs of any program running in Windows.  If you are interested in going this route, this forum should help you get started in the right direction.

  • Combining the scalar output with the acquisition of data time vs RPM

    I have no idea why my 9402 NOR does not work as it should, but I don't know he counts the pulses, and at that time I need data for my forthcoming report.

    I came to a .vi that contains a very basic way of relating counties in time, however, I need to save the data to an excel sheet for I can analyze it. I have a motor which is connected to an assembly. My encoder measures the rotation of the shaft (no measure of direction availible) which is directly activated by the engine. As load us the assembly, I want to see what the speed of the motor through the encoder. So let's set the engine speed (anywhere from 1 to 100 rpm) and then load the assembly and see if the engine cannot maintain speed. Seems simple but my module is having a difficult time getting one any frequency of the encoder.

    Anyway, the .vi I use counts the pulses and divide them by 100 ms once every 100ms. This generates a scalar value that I want to record with regard to the overall time, prefferably every 10th of a second (100ms). I know that I combine the values in a table (2 columns, an indefinite quantity of lines). How can I combine two elements ([time, RPM]) in a table every 100ms and having the table keep expansion of the lines until I hit stop?

    Hello Evan

    There you go!

    Mart

  • blue screen with the error of MEMORY MANAGEMENT. 0x0000001A

    Separated from this thread.

    Hello

    I have a toshiba satellite c870. When I turned on my computer, I got a blue screen by reading the following:

    (blue screen)

    : (

    Your PC has encountered a problem and needs to restart. We are only collecting the error information, and then we'll restart for you. (100% complete)

    If you want more information, you can later search online for this error: MEMORY_MANAGEMENT.

    Then it restarts and I get these 2 following errors of switching back and forth between the two sound tempting to prepare auto repair. See below:

    (blue screen)

    : (

    Your PC has encountered a problem and needs to restart. We will provide for you.

    If you want to learn more, you can search online later to this error: NTFS_FILE_SYSTEM

    Then he goes to the black Toshiba Logo screen as usual and reads the following:

    preparation auto repair...

    And then it goes to another screen blue read the following error message:

    (blue screen)

    : (

    Your PC has encountered a problem and needs to restart. We will provide for you.

    If you want to learn more, you can search online later to this error: FAT_FILE_SYSTEM

    He'll then return to the Logo of Toshiba screen, then the Blue error screen (NTFS_FILE_SYSTEM), then return to the Logo of Toshiba screen and then the Blue error screen (FAT_FILE_SYSTEM). It just keeps it again and again and does nothing else. I removed the battery, removed all caps, deleted all devices USB (mouse) and pressed the power button for 60 seconds. Then I put the battery in place, pluged in the power cord and it turned on. I got the same results, as shown above. NO CHANGE! HELP PLEASE!

    Well Vista and before "XP", usually, do not use the FAT32 file system, they use, as do the new OS NTFS.

    Vista/XP can read FAT32, & can / could use, but its outdated... Memory is not really in this case, but

    you too extended the hardware capabilities of the pc.

    From this point, try to start the BIOS, the value 'advanced settings' once this done, change BIOS for any add-on

    material, save & exit.

Maybe you are looking for

  • I watch downloaded movies through my Apple TV

    I take my Apple TV 2 and iPad Pro up to Colorado for the weekend and will not strong enough service to stream movies. If I download the movies before my departure to my iPad Pro, can I watch them while I'm up there on my Apple TV 2? There is a wifi n

  • Satellite L850-1JT - high CPU temperature

    I don't know, but I think that my laptop has a problem of heat, to play a minute modern warfare 2 und processor have a temperature of 101 degrees, the portable buyed yesterday! New BIOS of the Web site is installed!

  • LaserJet MFP M477fdw Pro: Scanning to network Mac folder

    I tried to configure the network path to a shared folder so that I can scan directly onto my Mac. I followed the instructions: -created a shared folder -sharing of files for my user name -compatible with the SMB and AFP file sharing-Full name -folder

  • they changed my code and secret question and answer and I can not get!

    My new mail me find is * address email is removed from the privacy * or * address email is removed from the privacy * and my codes are and has been johnyrambo My new phone number is 0030 6980376544 (because I live in Greece). I changed the connection

  • VPN - SRP527W <>Cisco 857 established but no tx fraffic side SRP

    I have now established between SRP527w and cisco 857 ACE, but if I ping from a multitude of Cisco to a host on the side of the PRS I get only rx traffic in the tunnel, the stats keep tx 0 and ping is not answered. My tunnel is to send a voice call in