NIDAQmx to simulate synchronized analog input from two devices of simulations?

I would test synchronized analog input from two MFDs simulated from the NI6225.  I created two devices of simulated able NI6225 & Automation (M & A) and tagged the first NI6225a and the second NI6225b.   M & I created a RTSI cable configuration and added both simulated devices.  However, when you call NIDAQmx C functions in my test code, I get an error condition indicating that the simulations devices are not synchronized.  Before continuing, I would like firstly to confirm if NIDAQmx is designed to

simulate synchronized the analog input data of two devices of simulations.  If this isn't the case, then it will explain the error condition that I have encountered in my test code.

Thank you

Ian

Hello John and Jared,

If I remember well used to support the simulated synchronized devices.   I ran various tests this week, but all fail.  I'm going to order/install a RTSI cable and test with physical devices.

Thanks for your help.  I close this post.

Ian

Tags: NI Hardware

Similar Questions

  • Synchronized analog input and output on myRIO

    Hello!

    A brilliant new myRIO just landed on my desk and I'm looking forward to learn how to use it.

    I have a question about the ability of the default FPGA personality.

    Is really similar synchronous HW in and output possible? Can configure you the necessary trigger and clock routing from within VI RT? To say ~100kS/s?

    I need to delve into a FPGA design to achieve this?

    Thank you!

    You will not be able to get your RT loop to run reliably at rates greater than 5 kHz, and we generally do not recommend trying to control I/O faster than 500 to 1000 Hz. This isn't a limitation of the default personality himself, it's just that some tasks are better suited for the OTR and some are better for the FPGA (it is important to understand when developing an application on the myRIO). Synchronization and the output of ~100KS/s signals are something that you have to do on the FPGA.

    http://www.NI.com/Tutorial/14532/en/

    There are some good tutorials in the link above. They use the cRIO instead of the myRIO but the functionality is basically the same. The biggest difference is that you won't have to add modules to your project, because all the inputs and outputs of the myRIO are fixed and must fill out automatically when you add a FPGA target to your project.

  • To access the two analog inputs of two executable screws separated?

    Hello world

    I have two separate executable screws that need simultaneous access to different channels of the same card PCI-6229.  However, it seems that this is not possible with the DAQ Assistant due to a conflict of resources?  Does anyone know if it will work with the lower level DAQmx blocks?  And if so, how?

    If this is not possible, so if I set up a single executable to make all data capture, how would I transfer data quickly between two executables?

    Thank you for your time!

    -Yohan

    The advantage of using the SMP library is that it works on different or local computers. In normal operation, you have two PCs each running an executable-> messaging via TCP/IP. If a single PC dies, you can just start the two executables on the same PC and it works in the same way. The only thing you have to change is of course the IP address used for communication of SMP and the map DAQ which must be in the PC running.

    I don't know what HW you use, but most of the DAQ cards with 'only' a timimng engine, which means that all channels are sampled at the same pace. This could be a problem for the part of your control.

    An easy option to solve all these problems (without knowing what you mean with "not many entries analog": buy a second DAQ card!)  :-

    Yes, it costs you more money for the DJ, but it saves development time, which, in my area, much more expensive usually then a DAQ board 1 k $.

  • Read the counter timeout in synchronized to count-analog input


    Ciao, Giovanni.

    The two tasks are run in parallel so there is no guarantee which task starts first.  I suspect that when you are away from the counter samples, it is because the task of analog input before starting the task of counter.  In this case, the task of counter would be ready to accept examples of clock and may be missing some edges of the clock at the time wherever he is started.

    One way to solve the problem would be to use the wires of the error in order to ensure the time started the task of counter in front of the task of analog input.  You can also use a sequence structure to do that.

    The counter is sampled on each edge of the sample clock HAVE no matter what you set the 'rate' of entry to the. When you use an "external" clock (external to the task that is), the driver uses just the entry rate to set some default parameters (size of buffer for example).

    If you have any questions, feel free to ask!

    Best regards

  • Synchronization of two inputs frequency meter with several analog inputs

    Hi all

    I'm relatively new to LabVIEW and I'm trying to collect data from multiple sources with calendar sync on the acquisition, but I can't understand. My problem is that I have two inputs frequency meter, an optical tachometer reading one pulse per revolution and a max flow meter machines with a 12000 k coefficient. I can't find a way to synchronize the calendar with my multiple analog inputs. I tried to first get the speedometer to synchronize with the analog inputs following the example linked here. (https://decibel.ni.com/content/docs/DOC-10785) So far every time I run it I get an error on the DAQmx read timeout or an error "several sample clock pulses have been detected" (see image).  It seems if I slow the way to down to say 10 hz and make sampling rate ensure that the tachometer signal is more than 800-1000 rpm (13-17 Hz) before starting the VI then the program will run without error until the ROTATION speed is below this threshold, then the "sample Multiple clock pulses" error occurs.  The code is attached below.

    Does anyone know of a better way to synchronize the entries of frequency of the counter with analog inputs?  I would like to have a VI that can display 0 RPM (and possibly 0 flow as well, but I think I need to understand the timing of a meter before I have add another, because it seems that I can't have two counters to the same task). Any help on this would be greatly appreciated.

    LabVIEW version 13.0

    Chassis cDAQ-9178 with NI 9401 for both counter inputs and NI 9205 for the analog inputs.

    Thank you!

    Richard

    I know the error requires to restart the task at least (this particular error puts the material in a State that cannot be recovered from during execution of the task - I've been down this road before) but I'm surprised that you would have to delete and re-create the task altogether.  And then I had to do this to workaround other questions in the past.  It is awkward and should be considered a bug, if this is indeed the behavior.

    Honestly, regardless of this bug, the way the material dealing with the situation of several sample clock edges makes measures of sampling frequency clocked essentially unusable for purposes of synchronization (in my opinion anyway) If you encounter a more slow than your sample clock rate.  You are supposed to be "synchronization" of the measure, but it really no longer applies if you have to restart the task over and over again (if you must delete it or not).

    Workarounds can get kind of creation (which isn't really a good thing).  For example, you can configure a measure of implicit frequency to keep a buffer of frequencies and use a leader board task (source is the frequency signal, sample clock is the sample clock HAVE) to establish a correlation between the index of your buffer of frequency for singing HAVE sample clock.

    Best regards

  • Two analog inputs of synshronized

    Hello

    I am using PCI-4461 and connection of two amplifiers in its analog inputs (AI0 and AI1).

    I need the output voltage of the two devices based on time together; This means that the AI0 and AI1 must be synshronized.

    And then draw the voltage v/s time in 2 different plots. This means that I need to split signals and analyze each channel separately.

    Number of samples: samples of 200,000

    Do you have an idea how do?

    I've used extensions on the acquisition of data PCI-4461 to select multiple channels and in control, I selected several channels.

    How do I continue to get the plots?

    Thank you in advance,

    Kind regards

    Connect the waveform 1 d array to the array of Index entry. Drag down to get two outputs. Each output wire to a graph. The index entries start automatically to 0 if you do not need to connect something there.

    Dividing is done with the function of Division. You just son of the waveform in an entry and a wire to another constant.

  • How to write constantly to analog output and read from analog inputs

    Hi all -

    I had a question about writing continuously to analog output reading simultaneously an analog input.

    It's my first time to post a message to the community, so please let me know if I made mistakes.

    I use Labview 2011 with a NEITHER-DAQ USB 6215.

    I'm looking to generate a waveform and write it continuously in an analog output. It is then connected to an entry on the acquisition of data, where I am trying to sample the analog signal. (I realize, there is a system of trivial, but I'm hoping to build on it once I have run).

    The task of reading from the analog input works fine, as I tested it in several other cases. I have a problem writing to the analog output.

    For this task, I tried to follow the "Gen Cont Wfm Clck Int' VI to generate the wave form and start the task. I then try to write to the output of the analog timed loop. However, it does not seem to transmit a signal and doesn't give me any errors.

    I have attached the VI but also a screenshot.

    Please let me know if anyone has any ideas. I would really appreciate the help!

    Thank you

    Peter Borgstrom

    We will review your tasks one at a time.  First of all, the task of generation/Analog output Waveform.  Generate you a waveform (I'm unsure of your VI if it is a fixed waveform or not) and send it to a defined output function to produce a waveform continuously, using N-channel and samples of N (where you set not these previously).  You should not put this inside has timed loop, as the DAQ hardware has its own clock - if you simply put it in a while loop (with a stop to break out of the loop), the loop will call the function for the first points of N, wait until all N have been taken out, then call it again to another N points (up to what you press Stop).

    Now, suppose that you have the output connected to a load voltage (say a decent resistance).  You can wire the input terminals of your A/D converter through the same load and set up a similar analog input loop, running in parallel (i.e. in its own independent of the OD loop, while loop).  You pourriez start together (with, say, a merged error since the initialization code line loops HAVE and AO become lines of error in "loops of sampling" described above), but you might want to delay loop (a little) the AI so that the OD has a chance to set the voltage before the bed.

    I hope this helps.

    BS

  • How to synchronize the analog input and the output of two different USB data acquisition boards

    Hi all

    I have two tips very different USB NI USB 6008 case, which I use to acquire the data (analog input) and a USB of NI 9263 is a output analog only site I use to route a signal (in this case a square pulse). The reason why I use the outputs analog 6008 is because I need to deliver negative tension and need the full +/-10 v range.

    Looking at similar positions, I'm pretty sure that I can't use an external trigger or a common clock, I also tried to use the timed synchronization of the structures but no cigar.

    I'm including a quick vi I whipped showing how the jitters because of the lack of synchronization signal. The OD of the 9263 connects to AI in the 6008 in this example.

    I talked to a specialist in the phone and tols me that's not possible.

  • Open a synchronized session of the analog inputs and position

    I want to read 8 analog inputs (only three IA in the capture of code) with a PCI-6221 card at a rate of 100 samples/s, reading 10 samples/iteration. At the same time, I want to read the position synchronized with the analog inputs. Is this possible? If I just merge the position with the analog signal I get 10 readings of position for each 100 analog input readings (see chart - Red's position). For the control of the movement, I use the pci-7342 with UMI-7764 interfaces. Could someone help me out here please?

    Not necessarily. As said, speeds of up to 200 Hz should work fine with a 7342. If this is not enough, of course a 7350 could be used, but there is also a completely different approach that should work with your current hardware:

    7342, you may also route the phases of encoder to the pins of the RTSI. You can use a counter on the 6221 to measure the position of your axis based on the singlas you have routed the RTSI pins. Now you can use "Measure of Position buffered" (see DAQ examples) to measure the position with the same source of synchronization than your analog signals.

    I hope this helps,

    Jochen

  • PXI-6070E, how can I configure which are two analog input pins?

    Hello

    I'm reading 3 analog signals using PXI or 6070E simultaneously. I'm looking for on what axes correspond to what analog inputs? It's the same thing all the time, or should I set up?

    For example, currently, the pines 68 and 34 are the + and - of the AI0 channel. But I can't find the rest.

    Thank you.

    How you are looking for the list of the pins? Look in the manual or in MAX, right-click on the device and select 'device pinouts. Ai0 is 68, ai1 is 33, ai2 is 65. The pins do not change. What changes is ending the pins to use if differential or single acquisition. For example, if you purchase a differential signal with ai0, you use pins 68 (ai0) and 34 (ai8).

  • Toggle the analog inputs and tasks of output on the same card in LabView

    Hello

    I'm relatively new to LabView and am trying to find the best way to switch between reading and writing tasks on my PCI-6024E. It seems this would be a common thing to do, but I found no good documentation or any relatable example program. Basically, I would like to be able to monitor certain analog inputs and then write that some outputs if an entry is in accordance with certain specific conditions (say > 4 Volts voltage). It is my understanding that you can only signal (input and output) types associated within a single task in DAQmx. I also understand that you cannot have multiple tasks running at the same time on the same material/map, otherwise you get a: 50103 error 'The specified resource is reserved. Calendar is not really all that matters to me, but quite synchronous and effective would be nice.

    I have attached a sample program that shows more or less what I'm trying to do. I want to follow several analog input lines (AI0 AI1, AI2 and AI3 and) effectively at the same time. If certain conditions are met, AI3 > 4 Volts, then write 5 Volts for analog AO0 and AO1 outings. I also want to maintain output at 5 Volts up to AI3 falls below 4 Volts. Is there a better way to pass the task to read and write than what I've done here? In a sense, all I really do is toggle of a state machine if the required conditions are met and if start/stop tasks of reading/writing necessary.

    One last question, is there a way to display the four channels in the waveform graph using the 1 d NChan 1Samp mode so I can have a time chart and indicators?

    P.S. I'm under LabView 2011 on Windows 7. Your ideas and suggestions are appreciated.

    Thank you

    KJ

    I also understand that you cannot have multiple tasks running at the same time on the same material/map, otherwise you get a: 50103 error 'The specified resource is reserved.

    This is incorrect.  You can't have two tasks of the same type running on a single card.  You can have an analog input and analog output task running simultaneously on the same hardware.

    You are right that each task can have only one type of task (entry or exit).  Discover DAQmx examples in the example Finder to get examples of synchronized input and output.

    PRO TIP: In the Finder of the example, go to the drop-down list in the lower left corner.  Pull down and select Add Hardware.  In the pop-up window, add your PCI-6024E to the right pane.  Click OK in this window.  Then in the main window of Finder example select your hardware from the drop-down list and check the filter results by the hardware.  The example Finder then only you will show examples that are out-of-the-box compatible with your hardware.  I am sure you can find something to fit your needs here.

  • Test the analog inputs in a PCI-6013

    Hello. I m using a PCI-6013 OR DAQmx 9.1.1 with Labview 8.2 (sued) WinXP. The jury has undergone an immersion in water during a flood but was cleaned, recognized by WinXP and NIDAQmx.

    I have run the Measurement & Automation explore and use the test under option OR-6013 'Dev1' panels 'devices and Interfaces. Here, I can see that the digital and clock output work perfectly (I can change the State of the digital channels and duty cycle and frequency of the clock). The problem arises when you try to measure an analog voltage. I tried on several cases not all analog channels using NRSE and differential modes (switch accordingly connections).

    The signal comes from a (4 Hz, squares and sines, 5Vpp) signal generator via a CB-68LPR connector.

    I only see something comparable to the entrance of singal when you use differential inputs (signal connected by J57 and J23) AI7, but the signal I see comes with 100 mVpp instead of 5 Vpp (I can see changes in the shape, every time that I have spend of a sine, square, ramp...). I also tried connecting J23 AISENSE (J62) and AIGND (J67), to avoid the problems of floating source. The same thing happens when enter and set up the acquisition by the vicinity of data in the Explorer of Measurement & Automation. I m using the reach of the signal in the different ranges, tried with 04:55, -1 to + 1, 09:50... When you configure tasks NIDAQmx I choose to read different samples (100, 1000, 10000) rate (100 Hz, 1 kHz,...) and combinations. Anyway, the input signal is always 4 Hz. I checked the signal with an osciloscope and I see it perfectly.

    Is it possible to have the broken while the digital and general-purpose analog input clock outputs are OK? Y at - it a tip for the connections I should know about? Thanks in advance for any guidance!

    Thank you both, KateB and MarisolM for your answers.

    I made several the tests con señales DC y con señales senoidales, instalando placa en back different computers, y no obtengo resultados positivos, is spite of what el self-test selling well. Seems that the Plaça realmente esta fallando.

    I did several tests with DC signals and senoidal, installing the card in two different computers, without positive results, even if the self-test is OK. It seems that the Council really works hard.

    Are concentration cotización por su reparación. Gracias!

  • 6009 outputs digital and analog input synchronization

    Hello

    I work in a program NI 6009. I want to leds by car with outputs digital NI 6009. For example, leads first will be on until what 200 micro seconds then second led will be on up to 200 micro seconds, and then first of all led will be on up to 200 micro seconds. I'll take led with photodedector signals and connect analog output photodedector input NI 6009. I want to synchronize the outputs digital and analog input and separate the first and second led signals the analog input for NI 6009 channel. How can you do with NI 6009? Please ADV

    You can not do with the USB-6009 case. Its outputs digital are software with a maximum speed of slightly more than 100 samples per second. The outputs can produce 200 microsecond pulses and cannot be synchronized with the analog input.

    You need a device with outputs digital hardware timed or counters that can produce a pulse outputs.

    You can synchronize a bit digital output and analog input recording signal on an additional channel to HAVE. Will allow you to see the photodetector and LED the drive with the same schedule and such resolution as described by the sampling rate I. The maximum sampling frequency of AI on the USB-6009 case is 48 kHz that is shared by all channels. If you have two lights to led and photodetector two signals maximum sampling rate would be 48 kHz/4 = 6 kHz which is barely fast enough for your 200 US signals. For more than 4 channels, it won't be fast enough.

    I suggest a simple oscillator circuit building and use it to clock a flip flop. This will give you alternating signals to drive the LEDs. You can use a line to reset the flip flop to give you control without the need for high speed.

    Lynn

  • Simultaneous inputs from different sources

    I am creating a resistively heated wire heating unit.  What I had planned to do, is to connect the wire to a programmable DC power supply that I would link to a USB-232 (Jack single port RS232).  I also want to integrate some temperature readings of a thermocouple placed near the heating unit.  I would connect the thermocouple to one of the analog channels of a PCI-6259 (M series).  Already, we have the PCI-6259 (and the connection block), but so far have not bought the power supply DC or USB-232.  Until we buy these, anyone know if this configuration is still possible?  I wasn't sure if it would be possible to have two separate entries, enter LabVIEW from two different sources (USB and PCI) simultaneously.  Also, are there any other ways I could do it easier?  I looked into analogue programmable power supplies DC, which I was in control of the PCI-6259, but these seem to be still more expensive than RS 232 controlled ones.

    Thanks in advance

    Hi Stephen.

    You can have devices to multiply the input/output, how you design your code will detemin how well that work. The USB port can produce at the same time as the PCI card is entered. The channels you create what you will specify aquire and when.

    What is the programmable DC power you are looking at?

  • Using the DAQ USB-6009 meter and an analog input voltage at the same time.

    Hello

    Currently, I'm reading the two channels of voltage with the USB-6009. It happens that one of the channels is the output of a digital coder, and it would be much easier to use it directly to the PFIO entry that is defined as a counter. The problem I am facing right now, it's that I can't use the DAQ Assistant to use the analog voltage to a channel and the digital channel counter at the same time. Once I put the DAQ Assistant to read the input from analogue voltage, I won't be able to add analog inputs. And as I put the DAQ Assistant to use the PFIO as a counter, I can add more entries to read analog voltage is.

    I wonder if it is possible to solve this problem using the lower level data blocks? Another solution would be to read two channels in analog input voltage and that the use of Matlab to process data resulting from it, since I was not able to do the counting to work simultaneously with the acquisition in Labview to impulses.

    Hope you guys can help out me.

    Thanks in advance.

    Using a simple wizard of DAQ is incorrect. You need one to acquire analog inputs and one for the meter.

Maybe you are looking for

  • HP Envy 15 Notebook PC E1P05AV: Reset Power on password

    I have a laptop HP Envy 15 Serial No. [personal information] Product: E1P05AV Model # 15 t-j100 How do reset us a password on? We are entering an incorrect password three times and we will have all the codes, it has just a restart. If we once again,

  • Satellite Pro L300D-11O - freezes in second life

    Second life, I play on my lappie. http://SecondLife.com/support/system-requirements/He is lagging, I crash, a general cannot go to all occupied the SIM or it freezes. One got suggestions on I can change the settings to improve this? Thank you to adv

  • Print the story.

    Can someone tell me how to print a paper copy of all the www. sites listed under Favorites / history, so I don't have to write them all? Thank you

  • Audio Jack of my HP Envy 4 no longer works

    Hi all I bought the HP Envy 4 just one 4 months ago and now something worong with his audio jack for headphones and its no longer works. The hardware profile for this audio jack shows no errors, but its still does not. Y at - there someone who can he

  • to remove the Director

    Well, when I try to go anywhere my computer goes to movie maker. I want to remove it. JO Ann Dove