DAQ read and write synchronization

I would like to acquire the data permanently (I) and sometimes write data (AO).

Currently I have a Subvi permanently this bed to 125kHz. The data is passed to a queue. Another Subvi accepts a user input and provides output tension affecting playback. I traced reading and voltage on a chart. I noticed that over time, the input and output lose alignment. Initially, it is +/-10 ms and then past at 100 + ms - as the control voltage above reading expected by 100 m I switch the control voltage to the Subvi acquisition via a global variable and insert it into a table with playback.

I am sure that is not the way to do it, but I can't see how trigger can help me here, given that the reading should be continuous. I just need to align the output to the input of my land.

I solved the task:

I put a VI "get the date and time" in a structure to deal with the writing of data acquisition. Then, I used the wave function of build and wired an array of unique value (the value of the AO) with the time stamp (to). So instead of using a waveform graph, I used a XY Chart and traced this waveform, but also the waveform of analog input (combined in a table). So if I send a voltage pulse at time t = 100 ms, I see an increase at t = 100 +/-1 m higher, I see the rise at t = 100 + dt ms (dt ~ 10 to 100), because the data was drawn from the buffer too slowly.

Since I am acquiring data at all times, regardless of the result, triggering is not really useful here.

Tags: NI Software

Similar Questions

  • Problem with digital I/o read and write in CVI

    I have a PXI with PXI 6225 Renault installed box. For some uses, I wired 4 lines of digital port 0

    for its 4 top lines so that the output digital on bottom lines can be read as a digital input on the top lines.

    In the CVI program I have set up two input and output of tasks as follows:

    Enter task:

    DAQmxCreateDIChan (digitalInputTask, "PXI1Slot5/port0 / line4:7","InputLines", DAQmx_Val_ChanForAllLines ");

    DAQmxCfgSampClkTiming (digitalInputTask, ' AI/SampleClock ", 4000, DAQmx_Val_Rising, DAQmx_Val_ContSamps, 2000" ");

    Output task:

    DAQmxCreateDOChan (digitalOutputTask, "PXI1Slot5/port0 / line0:3","OutputLines", DAQmx_Val_ChanForAllLines ");

    DAQmxCfgSampClkTiming(digitalOutputTask,"ai/SampleClock", 4000, DAQmx_Val_Rising,DAQmx_Val_ContSamps, 2000));

    DAQmxCfgOutputBuffer (digitalOutputTask, 2000);

    I also started a task of analog input to ensure that the analog "IA/SampleClock" sample clock is running, and I check

    as I interpret the correct analog data of my analog lines.

    Here's the problem:

    I write 2000 identical samples of zero for the 4 lines (port0/$line0... (3) with the following command:

    DAQmxWriteDigitalU32 (digitalOutputTask, 2000, 1, 10, DAQmx_Val_GroupByChannel, sampleArray, & writing, NULL);

    After a while, I try to read the 4 lines (port0/4... (7) using the:

    DAQmxReadDigitalU32 (digitalInputTask, 2000, 10, DAQmx_Val_GroupByChannel, scanArray, 2000, & read_num, NULL);

    but the values returned in scanArray are nil!

    If I replace the digitalInputTask by digitalOutputTask in the above function call, I get the good samples rewritten

    (do not know how the 4 lines below that are configured in output mode can be read back! could it be just read buffer?)

    I don't know that the hardware configuration is correct, because when I try to emulate this feature in Labview, it works.

    (I use an output data acquisition assistant to write down the 4 lines of port 0, using a digital wave of entry, then)

    top reading 4 lines with the help of one Assistant DAQ to enter a digital waveform VI.

    In another test, I have 4 lines below in CVI, put on stop my CVI program, start a simple Labview VI to read from

    upper 4 lines and I can see the values I just write in CVI).

    Any idea what could be causing DAQmxReadDigitalU32 to read only zeros in CVI?

    I compared my settings in CVI with parameters DAQ assistant in Labview and tried to make them identical, but nothing helped.

    Thank you

    Try to use these examples to see if you can read and write in CVI

  • Satellite M100 - can only read and write CDs.

    Hello
    I use a Satellite M100 Version PSMA0L-18203E on windows xp sp3. My DVD writer model is HL-DT-ST DVDRAM GMA-4082N.

    The problem is an am able to read and write Cd but when I insert a blank dvd, it displays "Please insert a disk in the drive" so that I am able to use Recovery DVD ROM from Toshiba with no problems. Please help me.

    Hello

    As wrote Al - Ex what program you use to burn discs? I have good experience with Nero and CD Burner XP. Can you test with one of them, please?

    In addition, you must also use high quality media. I have good experience with the types of DVD-R Verbatim and TDK.
    What DVD's that you have?

  • Satellite M30X-165: Mat * a UJ - 831 S is not read and write any DVD

    Hello

    the next problem is sticky on the laptop Satellite M30X 165 with the burner Mat * a UJ - 831 S: it can read and write CDs, but is not able to write them to DVD or even read some of the ones I've burned and also read in the same drive. Even at the start of the DVD, it does not start from the recovery DVD, the player starts and slows down very quickly.
    Without doubt, it must be put at the service of repair or someone has other suggestions?

    Could you please tell me how long the repair takes (I know what it takes to install the desktop temporarily used).

    Thank you

    Post edited by: DerSeher
    Using burning software, it detects the DVD, but invite you to an "error of calibration power (037303).

    Hello

    If you cannot use recovery media, I guess that the drive is defective and must be replaced.

  • Satellite L670-112 - SSD slow read and write speed

    Hello.
    I put 120 GB SATA III SSD kingston (read and write above 500 MB/S), but when I run the sequential test I get 150 MB/S read and 107 MB/S in writing. I know SATA II limitation, so should not write and read nearly 300 MB/S?

    Yes, it should at least reach SATA II speeds (close to 270 MB/s).

    Most SSD's 4K sector drives you may need to realign the 512 to 4K sectors using a partition alignment tool (I think that WD have one available).

  • Using the same interface CAN read and write

    Hello.

    Can I use the same CAN interface to read and write?

    For example:

    I send you CAN frame using CAN1 to my MCU.

    IF MCU confirmed the order of receiver it immediately sends the echo return command and there different ID to send the command.

    I tried to use CAN1 output framework and then reconfigures CAN1 to frame in queue and retrieve the frame of the echo.

    But it seems that I was always missing. The 'framework of CAN' kept vi expire.

    When I used the separator on the outlet BOX in my configured MCU CAN1 for frame and CAN2 for chassis in and I managed to catch the echo framework.

    I think about 100 ms for the frame in response that will be sent after the order has been received. It takes longer for the NI PXI-8513 reconfigure? Can I still do it, or I have to use the separator?

    I wad jump to use an interface to read and write.

    Thank you

    Ok. I misread your notion of echo. I understand now. I'm sorry.  The code you posted seems reasonable.

    (1) did you notice on or off for the session?

    (2) what baud rate? You can add a parameter of baud rates for the property to be explicit node.

    (3) I don't remember the name of VI, but you can add a status of Comm Get after reading. This will give you some information about the bus - if errors were detected, etc. Which can be useful to help debug.

  • Impossible to find the field read and write VI in labview 2009

    where is the field point to read and write VI in labview 2009

    According to the version of LV, BT pallets can be sensitive to the context. Try to create a project and add a fieldpoint target to the project.  Right-click on the target of FP in your project and select new > vi.  Now FP functions should appear

  • TCP Read and Write at the same time

    Hello everyone,

    I have a question about parallelism in TCP connections.

    I know that it is possible to read and write on the same connection ID.

    So, if you ReadTCP and WriteTCP block each other, if you use the same TCP connection ID?

    Or to request more precise if I run two while loops, in parallel, with one end by calling WriteTCP and the other called ReadTCP.

    one of the delay of loops (or block) will be the other if both loops call their VI TCP at the same time right?

    The system is Windows 7 and Labview 2012.

    Kind regards

    Sebastian

    They are perfectly parallel.  Just write in one and read it from the other.  There is no conflict.

    See My TCP articles for more details.

  • How to read and write attributes using the API?

    I'm trying attributes of access (read and write) of the following:

    SequenceFile

    Sequence

    The sequence steps

    When you look at the documentation of the API, TestStand, the following functions are available:

    PropertyObject

    Properties

    Attributes (read-only)

    HasAttributes (read-only)

    Methods

    DisplayAttributesDialog

    I tried to use the SetValString and GetValString commands using the reference of the attributes, but it does not seem that the data is stored in the file.

    I can't find the following information in the TestStand API:

    1. Where the attributes are stored in a property object?

    2. How can we access through the API?

    No advice and no information is appreciated!

    You must increment the number of changes to the file after that editing the sequence editor (or UI) won't refresh or mark the file, as amended. Use sequenceFile.AsPropertyObjectFile (). IncChangeCount().

    SequenceFile attributes are stored in the SequenceFile.Data, not the object of SequenceFile object. You can change them in the Advanced tab of the properties of the file sequence dialog box.

    Hope this helps,

    -Doug

  • How to read and write FileGlobals with TestStand ActiveX control in c#

    Hello everyone,

    I'm trying to read and write FileGlobals with TestStand ActiveX control in c#.

    I tried with:

    SequenceContext contextOfTraceMsg = e.thrd.GetSequenceContext (0, out frameId);

    var filepara = contextOfTraceMsg.FileGlobals.GetSubProperties ("ProjectParameter.NestIsTested", 0). GetValue (1); (NestIsTested is an array of Boolean)

    but without success.

    Can someone tell me how to do it right?

    Thank you in advance!

    Concerning

    0049 wrote:

    Hello Doug,

    Thanks for the reply.

    It works to read a Boolean value. How to read the table of Boolean?

    Kind regards

    For a table you can either do:

    (1) myarray [] bool = contextOfTraceMsg.FileGlobals.GetValVariant ("myarray", 0);

    Or

    (2) using GetNumElements() and GetValBooleanByOffset().

    -Doug

  • Read and write to a port

    Hello

    I tried to read and write in a port using .net 3.5 example codes that are supplied with the controller. Examples\DotNet 3.5\Digital\Generate Values\Write Dig channel and channel digging reading. Regardless of the value that I write I always get a positive output reading and all the bits are high on the channel. To reporoduce the problem simply run two programs at the Dig sametime writing and reading Dig Channel channel. Set the port to Dev1/Port0 / line0:7 in the two tests and write a negative value for any or all channels. When you read the values, the values are all positive. I tried using the example of code in VB and I get the same results. Please note that the regulator is working properly when I run the test, measurement and automation. I looked at the Forums and I found the post to:

    http://forums.NI.com/T5/Measurement-Studio-for-VC/basic-questions-about-PCI-DIO-96/m-p/242296 The name of the article is basic questions about PCI-DIO-96 and it says that the values written should persist. Any ideas on what I can do wrong?

    Thanks, Magued

    This is a LabVIEW and an example VB that illustrate the use of tristate to switch between the input and the output. The output setting will allow you to drive the liine and re-read what you wrote. The read setting will allow you to read an external digital signal. Please excuse the fact that these are examples of rough and informal.

  • Read and write of series Basic can't read a second time

    Hi, I'm developing my own VI to write and read an iRobot Create.  I based my vi off the coast of the basic series example write and Read.vi I found (on LabView 8.0).  When I run my vi I am able to read information from the beginning to create, but I am unable to read a second time (after a write command).  The second reading should be the same as the first (I checked with the help of another program that is linked to the creation).  I am new to using LabVIEW and I was wondering if there is a common mistake made by trying to implement a series of read and write.

    Thank you.

    First of all, to debug your orders with a program such as Hyperterminal. If it works there, then it should work in LabVIEW. You may need to send a carriage return and newline (\r\n). Your code is not currently set up to do.

    Only do something when a button is basic programming LabVIEW. You can use a simple while loop with a façade that Boolean connected to an instruction box. If you have anything other than the basic version of LabVIEW, you should use the structure of the event. Look at the examples that come with LabVIEW.

  • GPIB read and write commands of Agilent 54642 oscilloscope

    Dear friends,

    I would like to acquire a waveform of Agilent 54642 ocsilloscope in the LabView 7.1 via GPIB program. Can anyone mention the GPIB read and write commands for the oscilloscope even?

    Furthermore, on the subject of the LabView program, is it fair to place blocks to write two GPIB followed by a single GPIB read block (everything series), as well as an indicator, in order to check the waveform in LabView?

    Kindly help me with your answers...

    Look forward to y...

    Thank you very much in advance...

    Marion

    Download the 7.0 driver that Albert gave the link to, make sure that you have installed NI-VISA and run the getting started sample which is part of the pilot. If it does not, please elaborate on the error codes that are reported.

  • I read and write English but my husband reads and writes in Russian. How can I activate the taskbar of the Russian language?

    My husband is from the Russia.  It reads and writes in Russian and I'm having a problem turning on the Russian keyboard.  I went many steps of the menu start, Control Panel, regional and language options, languages, details.  I added the Russian.  under the Russia, there is a symble of a keyboard than Russian (typewriter) Russia and the United States.  acorrdign at every stage, there should be a tab in the bar of tasks showing that I can switch bewteen eglish and Russian.  who does not come to the top.  I have check the tab bar of language and made sure all the boxes are ticked, but I still can't find the language bar. what I am doing wrong?

    I don't need a translator who is the other thing that I still find.  I need for my husband who bought the computer to be able to type in Russian, his mother tongue.

    Thank you for your time,

    Heather

    See if that helps you

    http://Office.Microsoft.com/en-GB/Outlook-help/switch-between-different-languages-by-using-the-language-bar-HA010362283.aspx

  • Lsass.exe on Vista constantly reads and writes three times. How can I stop this please?

    After starting calm down.  Task Manager indicates that LASS. EXE continuously reads and writes.  It shows three readings and three written a couple of times per second.  The readings are still 204 bytes and the writing are always 132 bytes.  This action stops.

    I searched the web for answers and tried all the suggestions and nothing worked.

    Any ideas please?

    Hello

    I suggest you go through the link that talks about a similar problem.

    http://social.technet.Microsoft.com/forums/en-us/itprovistasecurity/thread/03638144-f4da-4349-B246-a27ec3727e70

    You can also post your question to:

    http://social.technet.Microsoft.com/forums/en-us/itprovistasecurity

Maybe you are looking for

  • card reader

    Hello Bank of mine I have to access the usb card reader, every night is not the card reader. This will make the product not so use full for example to the Netherlands. Here in the Netherlands banks use these PKI cards to identify the end user. Concer

  • Unable to connect to WIFI - iphone ios 6 9.2.1

    Since I've upgraded to iOS 8 I am facing problems with the WIFI connection. All the time, that it show massage - WIFI password incorrect, I know 100% is correct. No one can solve it. Now with iOS 9.2.1 I can't connect it! With my mini iPad 3 no probl

  • HP OfficeJet 4500 Wireless: lack the hpsupportsolutionsframework.msi file may not install/uninstall

    I got caught by the Windows default update from 7 to 10. 10 was a little bug, but I gave him a few weeks to see if it could be arranged. Yesterday, I got a notice from HP that I needed to upgrade my printer software, so I did, which was my mistake, i

  • I get an error that the ISKernel failed during the installation of the American army.

    To: Eric  Whenever I try to install the full version of the American army 2.8.3 that I am informed that the ISKernel could not install and I have to ensure I have the permission on this computer. I'm already set as the administrator of the computer.

  • Annoying PopUp Messages

    I have a Hp Photosmart Premium C410a and when an ink cartridge is low I get (up to 50 at a time now) popup messages telling me that the ink is low and replace it as soon as possible.  There is a checkbox that I click every time saying do not show thi