DAQmx Read simultaneous calls on the same digital line

Hi all

I use v10.0 LV 32-bit on Windows 7.

I use DAQmx Read (in a task) to check the value of a digital line. Is it OK to do this in two different locations in a program at the same time for the same digital line? Or I have to put a wrapper around reading to force operations to be sequential?

Thank you
Zola

When you need to expose the capabilities of resources to multiple areas within a project (expand the scope of a resource) it is common to wrap the resource in an Action engine to encapsulate the resource functions. See here for an example of a 'Module on resources' material and a discussion animated about how this code help development construction and avoid resource conflicts.  If you have not read famous nugget again – he of Ben is a link in my tag "Required_Reading".

Or more directly.  Yes, you should encapsulate these readings DAQ to avoid suspended

Tags: NI Software

Similar Questions

  • What is READ the array returned by the DAQmx meter? How can I know the two functions DAQmx READ data stream in the same WHILE loop?

    I have a question about the order of execution.  In the WHILE loop, I have two things to measure, period and tension using the DAQmx READ functions for voltage and the meter.  In the end, I want to collect these data as points almost simultaneously as possible, as a pair and then send them together to another piece of code (not shown here) which them will result in some sort of command for an engine.  It would be run, and then I want to perceive the tension and the period at a time later and do the same thing.

    (1.) I'm a little confused on what the meter of the READ function is back because it's a table.  What is a picture of?  I thought that it was up to the value of the individual periods between rising edges.  The output of the counter 1 DBL d's a table. How many elements in this table, and what determines the size of this table?  Are the elements of the array the individual delays between the edges?  How many values are stored in the array by executing?   We take the AVERAGE of the last 15 items, but do not know if we are throwing some of the data or what.  How to understand the composition of this painting?  How can I change the composition of this painting?  Is it possible to measure only one period at a time, for example the time between TWO edges?

    2.) Will this WHILE loop execute as it gathers tension and a "period table ' (remains to be understood by me) by TIME running in a loop?  In particular, we want that the value of the tension associated with the value of the AVERAGE of the period "array", so we can use two data items to create orders of next control every time that the two values are reported.  The structure for the delivery of vi will be attached data in pairs like this?  I understand that one of the READING functions run not before the other function of READING in the WHILE loop.  I want that the period "means" and "strain (Volt) collected at the same pace. This vi will he?

    Thank you

    Dave

    Hi David,

    I suggest including the DAQmx Start Task function. If it does not start before the loop, it starts the loop and work very well, but it is not as fast and efficient. In the model of task status, task wiill go to run the checked each iteration of the loop and then back the time checked running when it restarts.

    The status of the task model: http://zone.ni.com/reference/en-XX/help/370466V-01/mxcncpts/taskstatemodel/

    Kind regards

    Jason D

    Technical sales engineer

    National Instruments

  • Simultaneous use of the vmscript call on the same virtual machine.

    I'm trying to call vmscript allows you to execute commands on a virtual machine. Several applications can come to the computer virtual target (where the script is executed) from different sources. When I make a call at the same time, it works very well.

    However, when I make simultaneous calls to invoke vmscript to run a command on a remote computer, only one runs and others fail with the following error.

    23/12/2013-14:52:21 Invoke-VMScript operation is not allowed in the current state.

    23/12/2013-14:52:21 Invoke-VMScript error occurred while running script on the guest in "v7012-s1-arr1" VM operating system Cannot find script interpreter "Bat" in one of the spaces provided.

    You probably don't have enough permissions to execute the command in the comments.

    Even if the error mentions privileges, I'm sure that it is not only the privilege as it works if I run commans an establishment at the time.

    Assuming that invoke vmscript supports concurrency - y at - it target configurations I need to put on the virtual machine to allow the operation?

    As far as I know, the mechanism that uses Invoke-VMScript cmdlet, does not have parallel calls.

    As a bypass, you could use a try - construction of wrestling to synchronize different calls.

  • 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.

  • Y at - it re Hello Forefox ability to make multiple calls at the same time as the Conference call? Talk to the whole family together?

    Great love to the people behind this wonderful addition! I also want to be able to call my family threw away and we all in the conversation together. It seems right now it's just a one called. Will there be the ability to have several people on a call at the same time?

    Hi, when firefox Hello usable only for a conversation between two people.

    multi-party videoconferencing is on the roadmap to long term, but it will take a lot of Engineering (Hello firefox is based on the webrtc standard which is a peer-to-peer protocol between two machines-multipart calls can be a rather difficult thing to understand on this basis).

  • I have a DAQ Assistant configured to read several channels at the same time. When I have a graphical indicator of wire to the output, I see all my signals mixed together. How I divided them into separate signals?

    I have a DAQ Assistant configured to read 2 channels at the same time. When I have a graphical indicator of wire to the output, I see 2 signals mixed together. How I divided them into separate signals?

    When I wire any type of indicator, it is show that a release of a single channel.

    I want 2 indicators showing 2 different signals as expected from 2 channels configured. How to do this?

    I tried to use split signal but it end by showing that 1 out of 1 signal two indicators.

    Thanks in advance.

    Yes you are right. I tried, but I don't have the result.

    I just find the path. When we launch the split signal, we should expand it (split signal icon) by top, not the bottom. It took me a while to understand this.

    Thank you

  • I just got a call from the same thing with the eventvwr in the race, I wrote down everything, is it a scam?

    I just got a call from the same thing with the eventvwr in the race, I just wrote it down at the bottom, if it is a scam What are they actually accomplishing?  This gives them access to our computers?  They do not seem to be asking for money or that comes up when they try to "fix"?

    You are not alone! See...

    I received a phone call from someone who claims to have a Virus (August 10, 2009 &ff; 40 pages)
    http://answers.Microsoft.com/thread/4489f388-d6de-416d-9158-0079764bb001

  • Windows Media Player 11 burn a new disc. What I read seems to be the same problem.

    Media Player 11 won't burn a new disc. What I read seems to be the same problem.  Pls help?  :) Thank you fine email

    It is possible that you have a hardware problem with your
    burner, but using a software different may be worth a try.

    The free software CDBurnerXP has been very reliable for me:

    (FWIW) It's always a good idea to create a system
    Restore point before installing software or updates)

    CDBurnerXP
    http://www.CDBurnerXP.se/
    (Yes, it works on XP, Vista, 7)

    CDBurnerXP to make Audio disc
    http://CDBurnerXP.se/help/audio/compileaudio

  • 6 of Lightroom cannot read my Canon 5 d Mark III photo files, the import message I received: the following files were not imported because they could not be read. I use the same camera that I used Lightroom 5 with the same cards Compact flash.

    6 of Lightroom cannot read my Canon 5 d Mark III photo files, the import message I received: the following files were not imported because they could not be read. I use the same camera that I used Lightroom 5 with the same cards Compact flash. The files are: DK5A0243. CR2

    Lightroom 6 trying to copy pictures to a different directory than what is Lightroom 5. That's why you have the problem.

    You can change the directory where you are teaching LR 6 to place photos, or change the permissions on this directory to read & write.

  • I can do 2 remote calls at the same time?

    Hello

    I can do 2 remote calls at the same time? For example, if I have the following remote objects:

    "" < mx:RemoteObject id = "myRemote" destination ="zend" source = "MyData" showBusyCursor ="true"fault = "faultListener (event)"> "

    " < mx:method name ="getData"result ="getDataListener (event)"/ >

    < / mx:RemoteObject >

    "" < mx:RemoteObject id = "myRemote2" destination ="zend" source = "MyData2" showBusyCursor ="true"fault = "faultListener (event)"> "

    " < mx:method name ="getData2"result ="getDataListener (event)"/ >

    < / mx:RemoteObject >

    And I call them at the same time:

    public function myFunc (): void {}

    myRemote.getData ();

    myRemote2.getData2 ();

    }

    Will it work? Flex will be "confused" the results of a call with the results of the call on the other? Do I need an AsyncToken? If so, how to use an AsyncToken in the example above?

    Thank you

    -Laxmidi

    I do it all the time. I call the one for control combobox with a list of people, a

    and with these data on people filling a datagrid. Then use the drop-down list to filter the datagrid.

    In your sample well mak result = "getDataListener (event) another" and name it getDataListener2, so there is a separate and a dataprovider for the first to the second. "

    If your going to the same event, the other will replace the first.

    Hope this helps

  • Several calls simultaneous webservice for the same operation

    I'm having a problem trying to call the web service even operation twice with different parameters. The call is executed twice (I'm passing data token in order to differentiate the event handler calls), but the parameters of the second call are replacing the first. Here is the code:

    .the wsCodeList ["GetTupleList"]. TupleName = "BUSTYPE";
    Subject: call var = wsCodeList ["GetTupleList"] .send ();
    Call.destination = "busType";

    .the wsCodeList ["GetTupleList"]. TupleName = "ENTTYPE";
    Call = wsCodeList ["GetTupleList"] .send ();
    Call.destination = "entityType";

    MXML:

    < mx:WebService id = "wsCodeList".
    "WSDL =" http://simulacrum.hallmarkins.net/ProgramQuoter/codeList.wso?wsdl "
    useProxy = "false" result = "onCodeListResult (event)" >
    < name mx:operation = "GetTupleList" resultFormat = "e4x" / >
    < / mx:WebService >

    Manager:

    private void onCodeListResult (oEvent): void
    {
    Subject: call var = oEvent.token;
    var xmlResult:XMLList = oEvent.result;
    trace (Call.destination);
    If (call.destination is "busType")
    {
    busType.dataProvider... xmlResult = mspace::description;
    }
    If (call.destination is "entityType")
    {
    entityType.dataProvider... xmlResult = mspace::description;
    }
    }
    I'm back only the expected result for the call to TupleName "ENTTYPE" twice. So it seems that the setting is getting crushed until the call goes out. What I am doing wrong?

    Thank you

    OLIVER

    First of all, use AsyncToken instead of the ordinary object. From there on.
    Tracy

  • How to use the two counters to PXI-6280, to read and write at the same time?

    Hi all

    I try to use PXI-6280 counter to generate a command of step motor pulse train.  The idea is to send a number done and known pulse for the engine, which belongs to a system XYZ. The point is, if, at some point, the user or the security system can interrupt the movement. If this happens (and will be... a lot), I will lose the real position, because I don't know how many pulses were actually sent to the engine. That is why I want to use the other cost to count impulses how were actually sent to the engine. I can start any tasks (generating or account), but only the first started task will operate. I met a couple of mistakes and I'm not able to find a solution.

    Is it really possible to use the two counters? I've already done this in a pci system and worked without problems.

    Thanks in advance,

    Giavonna

    Electrical engineer

    I'm afraid that I don't understand your idea. Could explain you better?

    Material of the series M support pointing to an arbitrary digital signals at rates (the clock must be provided from another source, for example a counter).  If you want a digital pulse train finished output and have access to a counter (the two counters if find you another source for your clock, for example the subsystem "output frequency"), you must use this subsystem 'digital output' rather than the output of the counter.  There should be examples in the finder of the example shows how to configure a finished task of digital output.

    Now I'm generating sample clock having a single Timed material Point (the only mode accepts this mode), and configure the counter with finite samples.

    I don't think not just single point NI the hardware, that's what you want.  More commonly, output meter tasks use timing 'Implied', where the release date is implicitly determined by the characteristics of the pulse user-defined.

    Is there a way to stop the production of only one meter when a finite number of pulses has been played in another counter?

    Yes, but it's a little tricky.  You can set a trigger 'Pause' on the output task, with the soruce the break being the internal release of the counter used for the task of entry.  Set the initial value of the counter of entry to 2 ^ 32-N (or maybe 2 ^ 32-1-N, I don't have a system right now to check) where N is the desired number of pulse output.  Together the counter event behavior for the counter edges of County switch output (this is a property of DAQmx export Signal).  When the counter of entry reaches terminal, its in-house production switches, causing thus the task of output to pause.  You can then stop the task in the software (you should be able to use the output of the task of entry counter event to signal to the software when the output is paused).

    Now that I've written that the whole paragraph, I remember something * similar * to work around a limitation of the driver here .  It is not quite the same implementation I described above, but really, you can use a meter output or a counter entry to get the same effect (it could be a good place to start anyway if you want to try this).

    Is there a way to read pulses them how have been generated, without the other counter, counting impulses?

    N °

    Best regards

  • Two different iPhones to receive calls from the same number at the same time

    Hello.

    Latelly I receive missed calls from my own number when I call my wife. She also when she calls me. Today, my father called me and at the same time my wife's iPhone rang too! We use different carriers! How is it possible? We use the same Apple ID to iCloud and applications.

    Today, I received a third sim iPhone and pitch. The problem is the same. What should I do?

    You must stop using the same appleID what you're feeling is normal if you have a mac or iPad, they would be too ring

    you're the appleID if you and your wife will also get the same iMessages and you will not be able to facetime mutually

    You can always share applications and tastes using family sharing read more implemented the family share - Apple Support

  • Questions about serial port read and write at the same time

    Hi I create a user interface for the communication serial port, where there are essentially 2 front panels, where the user enters commands one and the other where the prints of UART is delivered. I thought initially using a state machine but the reading and writing may be independent sometimes and so I can't rely on States. I searched a bit on the forum and he left me even more confused. Help, please.

    (1) in a thread that sessions visa duplicated has been used for writing and reading at the same time, is it recommendable? How will this affect performance?

    (2) essentially when the vi is reading data are it must constantly view as well, however, someone said that it takes too much memory to use shift registers, so how do I go about this? If using a State in queue after the loop of reading it affects the playback loop and be sequential?

    In addition anyway is to move the cursor to the latest data from the indicator

    (3) for the control of the user input, assumes that the user has entered an order in the control and press ENTER, then writing visa is launched, but if it comes in another string and press enter then write must be called again... is - it possible? will detect the previous commands in the control of compensation?

    (4) according to my understand the expectation for the event do not monopolize resources and writing can go in parallel, am I right?

    Thank you. I have attached a very basic vi which took me to the point, but I want to make it more robust. Please help especially in the part of the user interface.

    su_a,

    (1) you can have only one session to a port. Several UART can handle full duplex so performance is not affected.  At flow rates of high data and large amounts of data, buffering and latencies of BONE can become a problem.

    (2) who told you that shift registers using too much memory? Shift registers are usually the best way to transfer data from one iteration to another. String concatenation inside a loop (registry to offset or not) causes the chain to develop and may require re-allocation of memory.  Your VI never clears the string so its cold length become very large.

    Generally, you do not have an active cursor on an indicator.  If you want to always display the most recently received characters and turn on the vertical scroll bar use a property node to keep scrolls to the bottom.  This can be annoying for users if they attempt to manually move the scroll bar and find that the program continues to move it back automatically.

    (3) if the user has changed the value in the chain of command, when he hits enter the modified value event fires.  Simply strike brace does not change the value and does not trigger the event.  Not control need to be erased, but the value that he has to change.  If you want to send the same command again, have a button send a command may be a better choice.

    (4) write is a case of the event.  It is not in parallel with anything.  The structure of the event do not monopolize resources.  The other loop will run while it waits.

    The event loop will not stop when you press the STOP button. Probably it wll take two command: change events of value after JUDGMENT before any loop stops.  Replace the Timeout event (which never expires) with a STOP: value change event and a real wire of this judgment to the Terminal endpoint.  Remove the local variable.  Make mechanical locking when released.

    Lynn

  • Need help for reading in parallel on the same interface and writing XNET

    Hello. I need help to configure CAN interface to write and read from the same interface.

    I use NI PXI-8513/2. I use CAN1 as interface.

    My had TO send status messages CAN every 100ms. I have to read in order to return akntoowlege to keep DUT CAN interface happy and not make mistakes.

    So, I want to open Strim Session and readall frames in the loop. At the same time, I need to be able to write in a frame HAD at the time...

    I only need to read one picture at a time too, but since I know the ID, I can pull it from the stream.

    What I'm confusing all is how to put in place the same CAN1 interface to be able to write and read in parallel.

    I think I would get errors that interface is already in use.

    Since I'm new to CAN, I was read and write only when necessary. But, sometimes I was getting errors on my messages. Sometimes I get message, sometimes miss me. But, when I run CAN test criminal as sniffer he sends and written every time. I was told it's because it recognizes all messages.

    I opened to suggestions of how best to implement the interface.

    I guess I can use CAN2 and separator to work around this problem, but I would use an interface if possible.

    Thank you

    Hi Rus,

    The XNET hadrware takes care of most of the low level of detials for you. The reading and writing of the circuits are both connected to the bus at any time. When you write to the hardware it will try to put a frame on the bus at the first opportunity he can. If the frame loses arbitration material re - will attempt to send the frame up is successful. Reception equipment monitor activity on the bus, regardless of what it conveys. The material received will usually throw a framework that was sent by communication equipment, but there is an Echo property pass to circumvent this behavior too.

    Take a look at the example of the expedition: MAY-> NI - XNET-> Sessions-> multiple Sessions Intro-> CAN even exit entry framework Port unique Point.vi. Keep in mind that this example you will need to use a second CAN interface to recognize frames, it transmits. I would recoment against the example CAN output Frame Single Point which would mimic your ECU if you choose a type of cyclic frame running this example.

Maybe you are looking for

  • How to get rid of the 'system Alert'

    I don't have safari open nor am I install something.

  • Satellite Pro L20 and DVD drive upgrade

    Hi all, starting at this forum. Satellite Pro L20 I just upgraded the drive cd - rw to a dvd - rw drive. The drive came a host of work so it s in full working order. The drive is not recognized as a DVD player, but works like a cd - rw. Update the BI

  • kusb 488 and LABVIEW

    Can someone tell me how to connect with an instrument using the KUSB - 488 A converter USB to GPIB and LABVIEW?My question is that if we have equipped a GPIB card on computer LABVIEW to recognize and display the address of cards... When I connect the

  • A lot of e-mails are moved to the junk e-mail

    All of a sudden a lot of my emails are getting kicked in junk mail.  All my contacts can be put on the list? Or what is the problem? How can it be resolved?

  • server extensions .css file

    In collaboration with the developer edition of coldfusion.No .html or .css file extension, throws a 404 error.Of course, I need to be able to read a file .css in a model, so how can I do this?