Create a problem of Timing Source looping deterministic RT

I update a former 7.1 LV vi LV10 and DAQmx.  We have a deterministic timed loop, driven by a 10 kHz external clock source.  If I understand correctly, it should be possible to implement this feature using a timed loop and the vi DAQmx create calendar source.  The attached image shows how I wired it to the top.

This vi is deployed to a system card system 6608 synchronization PXI LV 2010 (Dev 1).  I use counter 1 on the 6608 to create synchronization source.  I have an external 10 kHz square wave (5 V p - p) connected to Src1 (PFI35) on 1 Dev.

The problem: the loop seems to use a 1 kHz clock, even though I specified the meter and the entry for a source of 10 kHz.  If I choose a frequency of 20 Hz (500 edge counts for 10 kHz clock) the actual frequency of loop is only 2 Hz.  But, the loop stops if I disconnect the 10 kHz signal, so that it uses the specified counter somehow! ??  How can this be?  Is there the necessary additional counter configuration?  I checked that the external clock signal is exactly 10 kHz with an oscilloscope.

Thanks for any thoughts.

Ok.  I've solved this one.  You need to wire a constant '1' at the time node of the timed loop.  The default value of '10' will run only the loop on every 10th clock pulse, so the factor of 10 decrease in the frequency of the loop.

Tags: NI Hardware

Similar Questions

  • What happens when DAQmx - searches read more timed period loop?

    Hi all!

    I'm not sure how Labview manages the following situation:

    I have a loop that is timed with a period of 1000 m, it is configured to ignore the lost iterations and keep the initial phase. I created a task that needs to be read continuously at a frequency of 1 kHz. In the timed loop, there are the DAQmx - read function (analog signal, 1 channel, N samples)

    Now, if I put the number of samples per channel at 1500 for example (while it takes 1500 * 1 ms = 1500 ms > timed_loop_period to read), I noticed that the timed loop takes ~ 1500 ms to complete. The same phenomenon occurs with any other number greater than the period of the loop.

    This means that the period of the loop passes to 1500 ms? Or something different?

    Thank you!

    Best wishes

    Samuel Lopez Santamaria

    You go winding with an iteration of the loop of 2000 msec.

    An iteration of the loop will always be until he has to do.  If you tell him to keep the first phase and it works for a long time, then it will wait until the next 1000 msec happen before going to the next iteration of the loop.

    Now with your situation, later iterations cannot take it any longer.  If you are permanently data acquisition, DAQ mx buffer fills while the loop is still pending.  So when he runs again, there may already be 500 msec value of data in the buffer, and he just needs to wait another 1000 ms up to what you have acquired the total of 1500 milliseconds of data you have requested.

    The situation for the third iteration of the loop will depend on whether the other was done within the 1000 msec, or ran just a bit long.  It behaves more like the first iteration, or the 2nd iteration.

    My question is why you use it timed while loop?  What characteristic of it you need that a regular while loop is not?  I think that mixing and matching the characteristics of a timed, while the loop with your DAQ acquisition will cause a continuously variable behavior time loop which is probably not what you want, or could cause you problems down the road if you're trying to do is to get the continuous acquisition of your DAQ hardware.

  • Creating tables in a nested for loop

    Hi all.

    I was stuck in this problem for quite a while now and I still don't know how to continue. Some outside the entrance would be greatly appreciated!

    I'm doing the following:

    -Take an array of numbers, to check if they are within a certain range (e.g. between 2 and 4)

    -Build two new arrays: one with all the numbers that are inside the beach and the other with the rest.

    An additional condition is that the amount and value of the range conditions will change (for example, it could be between 2 and 4 only / 2, 4 AND 6 and 7 according to the entry)

    To treat this, I created two nested for loops - one that goes on a table that contains conditions of the beach and inside that actually go and check if the values are in the range. I think I did that part successfully, but the next part is confusing to me - how to actually create the tables separated within two loops for?

    My apologies if I did not explain it well. Another method to support this problem is I want to translate following LabVIEW:

    Ranges of table / / [1 5 7 10] exodus-> This means we want to divide numbers based on those who are in (1,2) and (4.5) against those who are not

    Table of values / / [2 3 6 11 3]

    EndOperationDelegate table / / array of values within the range
    Table outValues / / Array of values out of range

    for m = 1:size (ranges)

    for n = 1:size (values)
    If (THE NUMBER IS on the INSIDE of EACH RANGE)
    EndOperationDelegate = [EndOperationDelegate NEWNUMBER]
    on the other
    outValues = [outValues NEWNUMBER]
    end

    end
    end

    Sounds easy enough, but it gets so chaotic with Labview that I don't know what to do. I have attached a reference image - insertion in the array function is not in fact add to the table, it creates a new table. How can I save that for when the nested for the ends of the loop?

    I have seen a few examples with shift registers which lie in a loop and I couldn't successfully that transfers in my block diagram.

    Any help/direction would be greatly appreciated.

    Hello!

    See the following example to understand how you can create a table in the loop For

    In your case, you also can uce conditional terminal to create a table only when then located nearby. It makes the code much cleaner that the structures of the case

    Hope this helps, if not, let me know if I can help you!

    Marcin

  • I've recently upgraded to El Capitan - biggest problem is timing removed all the entries in my previous ical. Any ideas how I can track down the file containing these essential documents and install in the new program?

    I've recently upgraded to El Capitan - biggest problem is timing removed all the entries in my previous ical. Any ideas how I can track down the file containing these essential documents and install in the new program?

    All calendars are enabled in the sidebar?

  • A fundamental problem with timing 1 DO

    Hello world

    I use a card PCI and Labview 8.5 6229 with XP.

    I need to generate every 10 seconds a digital output which is weak for 3 seconds low and high, the rest of the time. I have attached the VI that works very well with my previous values (500 ms and ms 2000). However, I get a weak State for 1 sec, 2 sec or 3 seconds but not permanently 3 dry when I used it with the values 3 s / 10 s.

    It works if I use the values 3 seconds / 15 seconds (15 seconds or more).

    There must be a problem with my loop, but I don't understant what is the problem, because the outside loop should be expected inside loop to finish before starting a new loop. I don't understand why my time low State is affected by the loop of the outer time...

    It is probably a pb of basis for you, but any help would be great,

    Kind regards

    Marc

    It seems too complex. Here's an alternative. I used the delay function since there the error / mistake on connections to enforce data streams. I also changed the type of writing DAQmx since you seem to be writing on one line only.

  • Creating a table with a while loop

    I want to create a table using a while loop but I don't know how to do it.  Basically, I want to do the same thing as in the image of the example VI in LabVIEW VIs, called 'Graph XY Data Types.vi' example, but with a while loop instead of a for loop.  The reason why I want to do with a while loop is because LabVIEW will not faint error or VISA data thanks to a for loop.

    LabVIEW certainly enable you to pass out a mistake or VISA through a loop for. The default value is autoindex output and thus creating a table but is a simple right-click on the tunnel exit to change that. For recent versions, it changes the Tunnel mode to "last value". You can also use a shift register.

  • Why Acrobat Pro DC hangs up after that Create begins to open the source Word file?

    Why Acrobat Pro DC hangs up after that Create begins to open the source Word file?

    I tried. He created a satisfactory smaller file. After discussion with a colleague, I suspect that the file is too big for my laptop to face. My solution is to go to a specialist agency to do the work. I'm happy to close the investigation.

    Sent from my iPad

  • What are the Causes of 'loop Hang"problem with file i/o when using timed multiple loops on one OR cRIO-9012?

    Normal 0 false false false fr X-NONE X-NONE / * Style Definitions * / table. MsoNormalTable {mso-style-name : « Table Normal » ; mso-tstyle-rowband-taille : 0 ; mso-tstyle-colband-taille : 0 ; mso-style-noshow:yes ; mso-style-priorité : 99 ; mso-style-qformat:yes ; mso-style-parent : » « ;" mso-rembourrage-alt : 0 à 5.4pt 0 à 5.4pt ; mso-para-marge-top : 0 ; mso-para-marge-droit : 0 ; mso-para-marge-bas : 10.0pt ; mso-para-marge-left : 0 ; ligne-hauteur : 115 % ; mso-pagination : widow-orphelin ; police-taille : 11.0pt ; famille de police : « Calibri », « sans-serif » ; mso-ascii-font-family : Calibri ; mso-ascii-theme-font : minor-latin ; mso-hansi-font-family : Calibri ; mso-hansi-theme-font : minor-latin ;}

    I experienced a problem with an application. I think I've isolated the problem in the "Timed loop question - Source Code.zip" attached source code. A detailed list of my results are in the attached document "Timed loop detailed question - Results.docx.

    Overview - it seems to be closely related to the IO files and the use of "Timed loops" on the OR cRIO-9012

    1. If I activate the e/s in two loops, then two loops crash simultaneously

    2. If I activate only the e/s in a loop, then only this loop crashes

    3. If I activate the e/s in two loops and make a 'While' loop earrings, then it don't crash

    4. If it is wrote nothing in the file I/o, then it don't crash

    5. If the reference to the file is left open instead of opening and closing on each call, so it don't crash

    6. If I try to run it on "My Computer", then it don't crash

    7. If the IO is only activated in a loop and programmed to wait for one second between the file access, then it always crashes

    In my real application, any given row is only writing (at least) once a minute, but I couldn't still my application to plant within a period of 24 hours by writing a single error of a single loop once per minute, with a low CPU use. It was the impulse to test the seventh point above.

    It seems that the best solution was to open the reference to the file and let it open. I think it is a good practice in general and I'll do the update in the application. This should solve the problem, but it is very difficult to verify this due to the sporadic nature of the question. As such, I'd like to understand what was causing the problem so I can verify that it was fixed. So far, my attempts to create a single, coherent theory able to explain all aspects of this issue have failed.

    I just wanted to know at all that there has been a request for corrective action (CAR #214156) has filed for this issue to be fixed in a future release. This seems to be a problem with the VxWorks operating system, we use in real time. We have additional cRIO chassis which have a Pharlap OS where it does not work. For now, you can search for this CAR ID notes to see if this problem has been resolved for publication in the future.

    Currently, there are two solutions, we have identified for this problem:

    1. open the file before the loop and close it after. (recommended)
    2 perform file i/o in a normal loop and transfer data to a queue.

  • Creating a problem of ms access data source

    Hello
    I tried to create a ms access datasource (standard ms access driver) in the CF admin, and I have this message all the time:

    "Connection verification failed for data source: dog.
    java.sql.SQLException: [Macromedia] [SequeLink JDBC Driver] [ODBC Socket] [Microsoft] [ODBC Microsoft Access driver] bad user name or password.
    The root cause was that: java.sql.SQLException: [Macromedia] [SequeLink JDBC Driver] [ODBC Socket] [Microsoft] [ODBC Microsoft Access driver] bad user name or password. »

    I tried with the username-password that I usually use to log into the CF admin, but it does not work. Someone shows me a clue, please?
    Thank you

    Try to enter only these 3 parameters

    CF data source name: dog
    Database file: c:\pathToDatabase\yourDB.mdb
    Use default username: (check this)

  • problems with timing in a time loop in a structure of the event

    Hello

    I'm using labview to control three motors stepper, running the three stages of different translation in different axes (X, Y and Z). Please see the attached VI, focusing on the structure of the event on the RIGHT side.

    In the Z axis, I am trying to run the engine for 5 seconds, after clicking on a button. I have attampted to do by adding a sub of elapsed time VI within a while loop, located in the tab 'Mouse before Z down' the structure of the event. A similar "elapsed time while loop" is also included in tab 'Z reverse the mouse down' the structure of the event.

    Separately these "elapsed time loops" work very well, BUT when I run a Z direction after another, say 'Z Reverse' and then 'Before Z' then they annoyingly interact. The calendar is gone, with the moment where we add, rather than rebooting.

    No idea how I can reset the time elapsed while loops? Or is there another method better do?

    Thank you very much

    Charlie

    charlieryan wrote:

    I take a wire from the 'i' of the while loop at the entrance of the Sub autoreset - VI of tiem will blink?

    No, connect you to the "reset", not "autoreset".

  • shared variable creates sound - problem, save data in crio

    Hi all

    I have a problem here...

    Why I get noise when using shared variables in my labview code...

    but when I remove these shared_varibles, the sounds are totally reduced...

    I use the shared variable for the data record. For the recording of data, I do a VI special folder under my computer. During my actual code CRIO.

    These two screws are to communicate using shared variables. Is there a better way to make the real-time recording apart from the use of shared data variables?

    I tried to record data directly to CRIO but it always fails... That's why I do a special VI under workstation for the logging of data...

    But if shared variables create sounds... my data record is no longer valid...

    Please help me...

    I downloaded some pictures... I hope that makes my problem clearly to you all...

    Hello auralius,

    Are these plots you have posted on the graph of velocity on the block diagram?

    I think that shared variables are affecting the timing of your loop and so affect the outcome.  I suggest you to add code to check if one of the iterations is late.  I suspect that the end iterations will correspond to the bad data that show you.

    You can try to enable the RT FIFO on the shared variable or you may need to add a second loop of communication and use a form any local communication to pass data to it.

    Take a look at http://zone.ni.com/reference/en-XX/help/370622G-01/TOC1.htm, including the sharing of data in deterministic Applications section for more information.

    Let me know how it goes,

    Sebastian

  • problem with timing cRio and FPGA

    Hello

    I develop software for measure the position of a device using some quadrature encoders.

    What I do uses the FPGA interface to acquire the position, then send usign real number of the meter to a host pc to create a data file. In the RT environment, I create a table with the position and the time that is acquired and using shared variables I send the array to the host PC.

    But I have a problem with the sync. The sampling time is unstable, I use a timed loop to control sampling but after some acquisitions, data sampling period begins to increase, as you can see in the image of attachment file. In the attached picture, I used a period of 250us and after some time gets twice and 3 times longer before you clean the table and begin to create a new table, during the period in 250us again. so the problem is that I should get a stable period in 250us instead of these steps in growing period

    You use the table of construction to add new data points? I suggest to use the function "Initialize the array" and "replace the array element. It will reduce the time it takes from the table of the construction.

    I can't open your code as I have LabVIEW 2010.

  • «FAILED: failed to create a snapshot of the source volumes VSS.» Error code: 2147754758 (0 x 80042306). "Down to 1% with autonomous converted 5.5

    Hi all

    I'm trying to convert a physical Windows 2008 R2 (SP1) virtual, using Vmware vCenter Converter Standalone version 5.5 build 1362012, it fails at 1% (after around 40mins) with the following message

    Failed: Failed to create a snapshot VSS of the source volumes. Error code:

    2147754758 (0 x 80042306).


    Windows systems has some LUN (4 x each various size GB) San, being the GUID (GPT) Partition Table.  I went through the wizard as a general rule, by selecting "edited on the machine", a player selected vmware "vmware workstation" or another vmware virtual machine destination 6.0.x and the location of the target being a LUN with 500 GB of space.

    Now for the data to be copied I selected 3 LUN (on a database resides) and put the 'Size' option (but I tried to keep the size of the various passes) to save space.


    Looking through the logs, I see the following errors

    Server-convert-VMware - 1.log

    2014 01-16 T 19: 42:37.371 - 07:00 [info 08696 'Default'] [serviceWin32, 416] Server vmware-converter service started

    2014 01-16 T 19: 42:51.006 - 07:00 [08696 info "Libs"] username [ADS] Get failed: 1332

    2014 01-16 T 19: 42:51.006 - 07:00 [08696 info "Libs"] [ADS] subtle failed: 1312

    2014 01-16 T 19: 42:51.115 - 07:00 [info 08696 'Default'] [user, 874] successfully authenticated the user administrator of the local computer (by using pipe)

    2014 01-16 T 19: 43:38.898 - 07:00 [10116 info "Libs"] username [ADS] Get failed: 1332

    2014 01-16 T 19: 43:38.898 - 07:00 [10116 info "Libs"] [ADS] subtle failed: 1312

    2014 01-16 T 19: 43:39.023 - 07:00 [info 10116 'Default'] [user, 874] successfully authenticated the user administrator of the local computer (by using pipe)

    2014 01-16 T 19: 43:39.647 - 07:00 [info 07628 "ThreadPool"] Thread has enlisted

    2014 01-16 T 19: 44:26.152 - 07:00 [08696 error 'Ufa.HTTPService'] cannot read the request; flow: io_obj p:0x0141b84c, h:-1, < tube "\\.\pipe\vmware-converter-server-soap" >, < pipe "\\.\pipe\vmware-converter-server-soap" > >, error: class Vmacore::TimeoutException (operation timed out)

    2014 01-16 T 19: 47:32.

    Worker-converter-VMware - 1.log

    2014 01-16 T 19: 47:34.323 - 07:00 [warning 07248 "Default"] disk number 1 has been ignored due to errors when reading partition table

    2014 01-16 T 19: 47:34.323 - 07:00 [warning 07248 "Default"] disk number 1 has been ignored due to errors during playback of dynamic disks header or LDM database is corrupt

    2014 01-16 T 19: 47:34.323 - 07:00 [warning 07248 'Default'] [MoveActiveDiskIfNeeded] GetFirstBootDisk failed, error mntapi: 176

    2014 01-16 T 19: 47:34.323 - 07:00 [warning 07248 'Default'] score: Invalid magic number sector.

    2014 01-16 T 19: 47:34.323 - 07:00 [warning 07248 'Default'] score: Invalid magic number sector.

    2014 01-16 T 19: 47:34.323 - 07:00 [warning 07248 'Default'] [PopulateCapabilities] based on the Volume of cloning has been disabled due to: no volume is recognized >

    ..

    2014 01-16 T 19: 47:34.323 - 07:00 [warning 07248 "Default"] Partition: ERROR: MBR sector must be present and valid initialize to GPT disk.

    2014 01-16 T 19: 47:34.354 - 07:00 [info 07248 'Default'] signature of disk found 80a2884a-05e9-4c1b-81-3d-35-1b-a3-6c-4b-bc, drive to 225981112, sectors 512 sector size size

    2014 01-16 T 19: 47:34.354 - 07:00 [info 07248 "Default"] Partition found type Efi system / single 4078aaff-430e-4825-bf-07-67-c6-ab-a1-87-3f

    ...

    2014 01-16 T 19: 47:37.365 - 07:00 [info 07596 "ThreadPool"] wire removed from the list

    2014 01-16 T 19: 47:37.412 - 07:00 [10164 info "ThreadPool"] Thread has enlisted

    2014 01-16 T 19: 47:37.459 - 07:00 [info 07696 "Default"] MNTAPI: mounted volume \\.\vstor2-mntapi20-shared-444D494F3A49443AFFAA78400E432548BF0767C6ABA1873F03000000\ FS: <>

    2014 01-16 T 19: 47:37.584 - 07:00 [info 07696 "Default"] error 0 when calling GetVolumeInformation for \\.\vstor2-mntapi20-shared-444D494F3A49443AFFAA78400E432548BF0767C6ABA1873F03000000\ FS: <>

    2014 01-16 T 19: 47:37.677 - 07:00 [info 07696 "Default"] error 0 when calling GetVolumeInformation for \\.\vstor2-mntapi20-shared-444D494F3A49443AFFAA78400E432548BF0767C6ABA1873F03000000\ FS: <>

    2014 01-16 T 19: 47:37.755 - 07:00 [info 07696 "Default"] error 0 when calling GetVolumeInformation for \\.\vstor2-mntapi20-shared-444D494F3A49443AFFAA78400E432548BF0767C6ABA1873F03000000\ FS: <>

    2014 01-16 T 19: 47:37.849 - 07:00 [info 07696 "Default"] error 0 when calling GetVolumeInformation for \\.\vstor2-mntapi20-shared-444D494F3A49443AFFAA78400E432548BF0767C6ABA1873F03000000\ FS: <>

    2014 01-16 T 19: 47:37.942 - 07:00 [info 07696 "Default"] error 0 when calling GetVolumeInformation for \\.\vstor2-mntapi20-shared-444D494F3A49443AFFAA78400E432548BF0767C6ABA1873F03000000\ FS: <>

    2014 01-16 T 19: 47:38.052 - 07:00 [info 07696 "Default"] error 0 when calling GetVolumeInformation for \\.\vstor2-mntapi20-shared-444D494F3A49443AFFAA78400E432548BF0767C6ABA1873F03000000\ FS: <>

    2014 01-16 T 19: 47:38.098 - 07:00 [10164 info "ThreadPool"] wire removed from the list

    2014 01-16 T 19: 47:38.098 - 07:00 [info 03736 "ThreadPool"] Thread has enlisted

    I wonder if the converter is not able to work on the GPT partitions?  (I think I saw some discussion of the community on this problem using v.5.1, but using 5.5 should be resolved?)

    Any help is appreciated. Thank you

    Your problem is with VSS, it is probably the lack of space, to seek solutions and similar problems.

    Errors that you see are expected, we need a full newspaper bundle for investigation and don't warry on GPT disks, they are supported with converter 5 +.

  • How to create a chart using two independent loops while?

    Hello world

    I'm currently developing a program for the acquisition of data. In this program, I have two independent, while loops that each output a number of type double with each iteration of the loop. I am able to successfully create two independent waveform graphs (data / time) for each of the loops when placed inside. However, I now want to create a live data xy chart (the output of a loop is x and the output of the other is there).

    I have a problem, that the distinct nature of loops... When I try to extract data outside of the loop (naturally), it is not refresh with each iteration of the loop causing the graph xy does not work in the way I intend. Is there an easy way to solve this problem? If more clarification is needed, please let me know!

    David

    If the two loops are not synchronized, exactly how do you do the xy graph, where each point, by definition, must have a value of each loop.

    1. updated when updates or the other value and combine with the last value from the other loop?
    2. updated on a constant basis with the current value of each loop?
    3. ... There are many other possibilities.

    #2 is the easiest. Simply create a third loop with a reasonable time and graph the two values via local variables. You probably also should limit the history of ranking somehow.

  • Problems of synchronization in loops. Help, please!

    In my connection to labview program, I have problems with my timing.  To give a background: I have random numbers generators put out numbers and from time to time, I hit my Boolean button and it collects the numbers of the generator and is the average of the numbers and sends it to a spreadsheet.  But after that first, I press the button, if I press the button within 5 seconds after the first data is collected, it will only collect data until 5 seconds after the last round of data is collected.      But, I press the button sometime after 5 seconds from the last set of data was collected, it will collect numbers as usually, but it also collects data on the right when I press the button and then it collects after 5 seconds.  I don't want these numbers right when I press the button.

    Is there something wrong with my calendar that I have these problems?  Any help would be great!

    Thanks in advance

    Make the mechanical action of the "lock" button by releasing

    In the innermost loop, wire one "equal zero" between the final iteration and the entrance to 'reset' of the time elapsed express VI. This will ensure that the timer resets each time that the loop begins.

    Place a small wait in the case of FAKE fat. There is no need to check the key to millions of times per second. You cannot click that fast anyway.

Maybe you are looking for

  • Visual Voicemail Iphone6

    I have the iphone6 and visual voicemail is currently unavailable and I can't call voicemail. What can I do?

  • 4.2 - works is not entirely

    Can someone tell me please how to run 4.2? IM will not work, and I'm assuming that calls will not, since no more than adding thing contacts send (even though they added) they get just a swirly thing that says that they are not yet delivered. Help, pl

  • Satellite U400 - it can not turn on

    Hello I have a Toshiba Satellite U400 (PSU40E) and last night, while I was watching a movie on my laptop, it suddenly turned off. I tried to turn on my laptop, but I wasn't able to do that. When I press the 'Power', the light button, the fan starts t

  • synaptic device not found!

    Hi guys My lenovo z500 show this error when installing synaptic and I have to go this path on the cd driver and install this file Link to photo but I think that pilot synaptic without installation completely on my frind z500 laptop install so good. S

  • 2000-2106TU HP: upgrade of the system for Hp 2000-2106TU

    I want to update my laptop. Please help me with the following information from Hp 2000-2106TU: (1) SATA version Frequency of the RAM 2)