DIO using loop to generate TTL
Hello
I have a sbRio and on the FPGA, I have a loop that runs every 5 US. The loop has a counter that increments with each iteration, and I acquire analog data each cycle (effectively setting the rate to 200kS/s). The counter is used to generate a Boolean value True or False. Thus, for example, if the count is less than 200 (for example) the value is False, but greater than 200, it's true. The counter then resets back to zero in, say, 400. This counter is used for two purposes - the resulting value of T/F is sent to a DIO port then it becomes, in effect, a TTL output, and because I store the meter with the analog data, it acts as a reference for where the data were sampled in the cycle TTL.
My problem is that when I look at the output "TTL" on an oscilloscope everything seems pretty OK... except that now and then I get a glitch where it suddenly either falls to zero or "stutters".
The question I have is this - if I write a True value for a port DIO in a timed, loop makes this "lock" of value until it is changed or does literally flick on then turned off during a period of time (the implication being that it is actually not a true continuous, but a series of true/false steps which occur on a timescale much shorter than my loop time)? If so, is there a way to make sure the value remains constant until the next iteration of the loop? If this isn't the case, then should I move using ticks rather than at the loop timer?
Thanks (and sorry for the length).
I think the question is read the values half/full cycle. If I replace those with constants, the problem seems to disappear. I moved the reading of those outside the main loop, and that seems to have worked.
Thanks for your help! The loop of the case has been deleted since, as you pointed out, it was not necessary. Oh and sorry for the twisted...
Tags: NI Software
Similar Questions
-
I stuck with a problem that I use FOR loop to generate expandable nodes.Now when I concat the node generated in the primary node and then I only last iteration of the loop FOR.can someone suggest me a way to manage this error...BECAUSE me IN 1.pl_phone_tab. CountyLOOPSELECT xmlelement ("phone", xmlelement ("PHONETYPE", xmlattributes ('01' AS "dmnADRP_PHONETYPE"), pl_phone_tab (i) .p_phtype_tab), xmlelement ("PHONENUM", pl_phone_tab (i) .p_phnum_tab), xmlelement ("PRIMARY_CONTACT", pl_phone_tab (i) .p_prcon_tab))IN p_phone_xmlDOUBLE; END LOOP;SELECT xmlelement ("PhoneInfo"xmlconcat (p_phone_xml))IN p_phone_info_xmlDOUBLE;Here, I'm a single node, but there must be two nodes for node of PHONE
-
date of reading of hurt to excel using the report generator tool kit
Hello
Im trying to read a date from an excel worksheet by using the report generator tool. I talked about this http://digital.ni.com/public.nsf/allkb/01B026BEB54E3414862571B600618827 KB and it works... kind of.My dates are all read next 4 years and 1 day. Can't really understand why?
Any ideas would be appreciated!
Thank you
DavidThe format of the time in LabVIEW is distinguished by the time format in Excel. If you simply convert the timestamp cluster double
and paste that data into Excel, it won't make sense. This is because the Excel format is based on the number of days
Since January 1, 1900. The time of LabVIEW is based on the number of seconds elapsed since January 1, 1904. Converts this vi
LabVIEW to Excel time time. reverses the logic of switch from excel to labview -
loop to generate variables with different values
A quiz, I have answers user saved in a table. At the end of the quiz, I need to extract individual responses to the different variables q1, q2, q3, etc.. The questionnaire can be of different questions so I need to adjust based on total questions inside. How can I use loop to create variables and values to capture?
So, I would change the following:
var q1:int = userAnswersArray [0];
var q2:int = userAnswersArray [1];
var q3:int = userAnswersArray [2];
var q4:int = userAnswersArray [3];
...
to the loop like the one below:
for (i = 0; i < totalQuestion-1; i ++)
{
This ["var var q" + i] + ": int" = "userAnswersArray []" + this [i] + "]";
}
He probably has syntax errors that it does not work.
Thanks for your help.
If evidence of userAnswersArray are always aligned with issue numbers (say, question 1 answer is saved in 0, 2 - position 1, position etc.) maybe work the following:
var urlreq:URLRequest = new URLRequest("subresultpage.asp"); urlreq.method = URLRequestMethod.POST; var urlvars:URLVariables = new URLVariables(); for(var i:int = 0; i < userAnswersArray.length; i++) { urlvars["q" + (i + 1)] = userAnswersArray[i]; }
-
2 running, 1 inside and 1 sql external, dynamic queries using loops and ref Cursor
Hi all
I'm under Oracle 10.2.0.2. I'm currently building dynamic sql using external and internal queries ref Cursor. Queries make use of user selected lists of ID, which is stored in a table in memory at run time. My example is as follows. From a list of book_publication_id on a web page, the user selects several books. The same user selects then several maps from a list of map_publication_id on the same web page. A book contains several maps and some of these cards will appear in more than one book (aka many many relationships).
This should then ask the following output to a new web page:
In the example above, the outer loop displays the details of the book for book_publication_id 230 and the inner loop displays all the users selected the maps in book_publication_id 230. Then, it moves on the details of the book for book_publication_id 240 and done the same thing again. Similar in some ways to how break would work in SQL * Plus, even if the table is built like an HTML, the book details must be on a separate line for the card details. However I don't know how I would want it to work.Outer loop: Display book details for book_publication_id 230 Inner loop: Display 1st map details for map_publication_id 340 Inner loop: Display 2nd map details for map_publication_id 346 Inner loop: Display 3rd map details for map_publication_id 350 Outer loop: Display book details for book_publication_id 240 Inner loop: Display 1st map details for map_publication_id 346 Inner loop: Display 2nd map details for map_publication_id 375 Outer loop: Display book details for id 255 and so on.
So far, using loops, I could not show all the details of card for each different book_publication_id, after the details of the book for only 1 book_publication_id are displayed each time. If a loop in a loop. I hope that makes sense. I think this is my internal request that it be built differently. My code for this part of the program, which is currently wrong, is as follows:
If anyone has any ideas or suggestions, I would be grateful. It is an extension of my previous code, I posted a question recently. As I am working and learning a step at a time, I left this idea in my previous question, that I had to make sure I knew that first.--Global variable section contains: var_user_chosen_map_list_ids VARCHAR2(32767); var_details VARCHAR2(32767); ...... PROCEDURE PROCMAPSEARCH (par_user_chosen_map_list_ids PKG_ARR_MAPS.ARR_MAP_LIST) IS BEGIN FOR rec_user_chosen_map_list_ids IN 1 .. par_user_chosen_map_list_ids.count LOOP var_user_chosen_map_list_ids := var_user_chosen_map_list_ids || '''' || par_user_chosen_map_list_ids(rec_user_chosen_map_list_ids) || ''',' ; END LOOP; var_user_chosen_map_list_ids := substr(var_user_chosen_map_list_ids, 1, length(var_user_chosen_map_list_ids)-1); var_details := FUNCMAPDATAFIND (var_user_chosen_map_list_ids); htp.print(var_details); END PROCMAPSEARCH; FUNCTION FUNCMAPDETAILS (par_user_chosen_map_list_ids IN VARCHAR2(32767) RETURN VARCHAR2 AS TYPE cur_type_map IS REF CURSOR; cur_book_search cur_type_map; var_book_date NUMBER(4); var_book_title VARCHAR2(32767); cur_map_search cur_type_map; var_map_date NUMBER(4); var_map_title VARCHAR2(32767); begin: OPEN cur_book_search FOR 'SELECT BI.book_date, BT.book_title FROM BOOK_INFO BI, BOOK_TITLE BT, TABLE (sys.dbms_debug_vc2coll(' || par_user_chosen_book_list_ids || ')) BL_1 WHERE BI.book_title_id = BT.book_title_id AND BI.book_publication_id = BL_1.column_value'; OPEN cur_map_search FOR 'SELECT MI.map_date, MT.map_title FROM map_info MI, map_title MT, TABLE (sys.dbms_debug_vc2coll(' || par_user_chosen_book_list_ids || ')) BL_2 TABLE (sys.dbms_debug_vc2coll(' || par_user_chosen_map_list_ids || ')) ML WHERE MI.map_title_id = MT.map_title_id AND BI.book_publication_id = BL_2.column_value AND BI.book_publication_id = MI.pub_publication_id AND MI.map_publication_id = ML.column_value'; LOOP LOOP FETCH cur_map_compare INTO var_book_date, var_book_title; var_details var_details := var_details || 'Book date: '|| var_book_date || 'Book title: ' || var_book_title; FETCH cur_map_compare INTO var_map_date, var_map_title; var_details := var_details || 'Map date: '|| var_map_date || 'Map title: ' || var_map_title EXIT WHEN cur_book_compare%NOTFOUND; END LOOP; EXIT WHEN cur_map_compare%NOTFOUND; END LOOP; RETURN var_details; END FUNCMAPDETAILS;
Kind regards
TimUsing dynamic SQL
declare dd sys_refcursor; ee sys_refcursor; d dept%rowtype ; e emp%rowtype ; begin open dd for 'select * from dept' ; loop fetch dd into d ; exit when dd%notfound ; dbms_output.put_line('Department:'||d.dname); open ee for 'select * from emp where deptno='||d.deptno ; loop fetch ee into e ; exit when ee%notfound ; dbms_output.put_line('..Employee:'||e.empno||':'||e.ename); end loop; end loop ; end ; / Department:ACCOUNTING ..Employee:7782:CLARK ..Employee:7839:KING ..Employee:7934:MILLER Department:RESEARCH ..Employee:7369:SMITH ..Employee:7566:JONES ..Employee:7788:SCOTT ..Employee:7876:ADAMS ..Employee:7902:FORD Department:SALES ..Employee:7499:ALLEN ..Employee:7521:WARD ..Employee:7654:MARTIN ..Employee:7698:BLAKE ..Employee:7844:TURNER ..Employee:7900:JAMES Department:OPERATIONS PL/SQL procedure successfully completed.
HTH
SS
-
My program is complete in a while loop. Once it runs, it will use kinect to keep my data of position of the head, so it will generate a position once. I want to reach 5 positions and can calculate 3 speed and acceleration 2. How can I get 5 times while it generates 1 time?
If your data are made at the edge of the while loop and you right-click where the wire exits the while loop, you can select "Enable Indexing" that will produce a table of the data received as large as the number of times in the loop. You can also check the "examples: help find ' ' Producer/consumer', which will allow your receiver (producer) loop to get the data and send it to a processing loop (consumer).
-
Application of GarageBand: I composed/arranged some songs using ENTIRELY loops GarageBand... and then I sell it as my own original songs (without falling foul of copyright issues) via iTunes or something similar?
Kasper Gutman wrote:
I composed/arranged some songs COMPLETELY using GarageBand loops... I can sell them as my own original songs
Yes:
http://www.bulletsandbones.com/GB/GBFAQ.html#commercialrelease
(Let the page load COMPLETELY. The link to your answer is at the top of your screen)
-
Can I use a group generator camping in Qosmio F60
I go to this site and need to know if I can use a generator to power my laptop
Hi mate
I think that you will need a car adapter that is compatible with the Qosmio F60.
As far as I know, you can order all the compatible parts of a local Toshiba ASP (certified partner).
Guys can provide detailed information which adapters drive would be compatibleWelcome them
-
Are you allowed to use loops in your PUBLIC song?
???????????
Apple Loops that came with the content downloaded from the inside of the logic/GB?
Yes...
Logic Pro X and MainStage 3: use of the content of free included in commercial works - Apple Support
However,.
Part 3 loops you downloaded from outside the logic or GB... or bought or obtained by other means?
Check the terms and conditions/license that accompanies these loops...
-
Use loop - unpredictable queue rate
Hi all
I develop the structure of producer-consumer on RT, and I have a strange problem. I get data from the FPGA producer loop and send queue loop of consumer. Then they must cross flow network host. Due to the fact that consumers stay at the producer (queue overflowed), I started to slow down producer (the cost of this action sends more data). It did not help, so I added the structure of the case to the producer to send data to just half of the queue (those to TRUE in the shift register).
This is the moment where I realized that sometimes closing LabVIEW environment and opening it again the effects to accelerate the transmission of the queue. Then I can even speed loop producer and my queue is not overflowing! And I can stop and run my program and it still works well.
I finish by closing and opening of LabVIEW and run my entire program again wait that it 'click', because when he finally arrived, I have no problem until the next session of LabVIEW.
Someone has an idea of what I could do wrong? Or how could I solve this problem?
Dear Owca
I see no problem in the code that you sent, and the speed with which you work are relatively low, too. This brings me to assume that the other parts of the code can be causig the problem you are experiencing. Let me make some suggestions:
- Check the CPU usage when the VI is running. Because the consumer is runing at normal priority (as it should), other priority tasks could starve it.
- Is the amount of data about in a table? Another good test is to monitor the memory usage to see if fragmentation is causing a disorder.
- Using a queue of fix size? If this isn't the case, I recommend to avoid dynamic memory allocations.
Disabling debugging features allows a little. Please get back to me if you have results.
Kind regards:
Andrew Valko
NOR Hungary
-
How to use the path generated by a star to guide the robot to move?
I now know how to use a star planning on Voronoi path and I can run this program successfully. \
However, my problem now is how I can use the path data (generated by the planning algorithm * path) to guide the robot rolling along this path? Well, I guess I can get a set of points (denoted by x and there contact information) of the path and use those points to guide the robot?
can someone please help?
Thank you very much
You must only post the question once.
-
use excel to generate signals in labview
Hello
I have an a problem generating a signal in labview using excel and then he charted under the waveform.
In excel file, I 2199 rows and 9 columns with the second time and I want to draw time against other columns except column 1. In the rows, I have the text first.
Any help much appreciated.
Thank you
A simple thing you can do. Open the Excel file and save as delimited .txt file and use the reading of the spread sheet file to read the data and then remove the first line and convert DBL and then draw it.
Good luck
-
How do program labview to get an average of 200 meter reading (using loop)
Hello
How the labview program to obtain a value average 200 reading of the multimeter (I-help using the loop) to read the voltage level of mulmeter, but I want to get an average value of all of the 200 reding how can I do?
Thank you
Wee
Thanks for the pointer to James, but I think that I misunderstood.
I enclose an excerpt from the details I have never described the use of a table.
-
"Setup is preparing your computer for first use" loop problem
Hello, I was hoping you guys could help out me with a big problem, I ran across when trying to install Windows 7 on a desktop computer new, custom - build. I managed to successfully install my Windows 7 64-bit, it appeared, but when I try to run it, that I will meet a black screen that says "Setup is preparing your computer for first use" and it will stay there forever, I would say. I let it run all night and didn't go anywhere.
I tried to start in safe mode, and Windows was loading files sys32, he got to "Classpnp.sys" and it froze. After a few minutes, the screen is blacked out, and I got fired the familiar screen "Setup is preparing your computer for first use.
I bought the copy of Windows 7 nine FRY, there will be no problem with that. My HD is a (new) 240 GB PNY Optima SSD, my mobo is a (new) Z97X-SLI Gigabyte, and I have 16 GB of RAM. All these things have been recognized by my BIOS, it seems that everything is properly connected.
I tried to install Windows 7 on a second time and exactly the same thing happened. I also tried to repair the installation to start upward, but he finds no problems. Also a check of the memory and the disk has verified without any problem. The only things I plugged are my monitor, keyboard, and mouse.
Does anyone know of a workaround for this screen loop "first use"? Any help would be greatly appreciated.
Set of utilities to test for computer HARDWARE manufacturers:
Note: If you are Overclocking or use an automatic overclocking or BIOS power saving features, start by disabling: Intel EIST, Turbo Mode, Cool and pretty and fall back to the speed of stock as a starting point.
Disconnect any other (additional) internal hard drives and external USB devices.
Look for any loose hard drive power or cables SATA, graphics card or other power cables.
First run Memtest86 +:
It runs from a floppy disk or CD and should eliminate or confirm if one or more of your memory
sticks are bad or the values of the SPD in the BIOS are correct.
Let it run for as long as you can: 2,4,6,8 or several hours (at least 3 full passes), if no errors at that time then your ram is OK.
Memtest86 + Guide/How To (use the.) ISO to create a bootable CD)
http://www.overclockers.com/forums/showthread.php?t=409152
Test your hard drive
Intel® drive SSD Toolbox
https://Downloadcenter.Intel.com/Detail_Desc.aspx?AGR=Y&DwnldID=18455
Corsair SSD Toolbox:
http://www.Corsair.com/en-us/blog/2013/may/the-Corsair-SSD-Toolbox
Toolbox of Kingston:
http://www.Kingston.com/us/support/technical/sandforce_ssd_toolbox.aspx
OCZ Toolbox: http://ocz.com/consumer/download/firmware
Support PNY: http://www.PNY.com/support/contact-us
Samsung Magican review:
SanDisk SSD Toolkit: http://kb.sandisk.com/app/answers/detail/a_id/9328/
Seagate: http://www.seagate.com/support/internal-hard-drives/laptop-hard-drives/laptop-600-ssd/
Life of the SSD: http://ssd-life.com/
= Is installed after Windows =.
Device drivers: have you installed latest drivers from device of the manufacture of the motherboard?
Check their support site for the latest drivers as the CD that came with the computer
or motherboard may be older and less stable drivers.
Visit the download of the manufacture of the graphics card:
Download and install the most recent Windows 7 or 8 drivers for your card.
ATI: http://support.amd.com/us/gpudownload/Pages/index.aspx
NVIDIA: http://www.nvidia.com/Download/index.aspx?lang=en-us
See also the test of 'Smoke box' Nvidia or other demos: http://www.nvidia.com/object/cool_stuff.html#/demos
or equivalent ATI.
Prime 95:
http://www.Mersenne.org/freesoft/
It's a stand alone .exe file contained in an archive .zip.
Simply choose to run the 'stress test' option for 8 hours or more.
If your PC can pass this test, your memory and CPU
are very good (close the housing cover in order to maintain adequate ventilation)
Core Temp:
The temperature of each core of the processor.
Note: For the overclockers using stock radiator and cooling fan Intel/AMD you can expect
a range of 35 to 40 at idle and 60 to 65 C max temperature when running Prime95.
http://www.alcpu.com/CoreTemp/
CPU ID (CPUZ): http://www.cpuid.com/cpuz.php
Watch the clock speed of the CPU under various conditions of loading
(when using speed step technology Intel EIST).
#1 Note:
CPU - ID has two tabs - tab 'Memory' that shows the actual speed of the memory
and the "SPD" tab shows the nominal speeds for each memory location that is filled.
#2 Note:
Compare the two values, the actual speed of the memory must not exceed the rated speed of your memory.
CPUID HWMonitor: Hardware program that reads the sensors of health main PC monitoring systems.
voltages, temperatures, fans speed.
http://www.CPUID.com/HWMonitor.php
Speccy:
Advanced for your PC system information tool.
Need to know what's inside your computer?
No problem! Speccy will give you all the information you need.
Note: May or may not show the motherboard manufacturing.
Overview: https://www.piriform.com/speccy
Free version: https://www.piriform.com/speccy/download
Test of Stress of FurMark GPU (graphics card):
http://www.oZone3D.NET/benchmarks/fur/
Pass marks burn in test: http://www.passmark.com/
Burnin test, and their test bench at the same time give a good workout from all the major parts of Windows.
HD Tune:
Provides information of the car and has an option (tab scan error) to test your drive.
CrystalDiskInfo:
http://CrystalMark.info/software/index-e.html
User Manual: http://crystalmark.info/software/CrystalDiskInfo/manual-en/
Monitors the State of health and the temperature. Solid State Drives brackets (value of the software).
SpeedFan:
Monitors internal temperatures and has a function of analysis health online (SMART tab) for hard disks drive.
It displays your drives model number and compares your drive with other discs of the same brand and model.
Note: Unfortunately now includes a lot of bloatware, be very careful when installing remove bloatware.
http://www.almico.com/SpeedFan.php
GPU - Z:
A utility light, designed for you give information about your video card and GPU.
http://www.techpowerup.com/GPUZ/
PC WIZARD:
A powerful utility designed especially for detection of hardware, also analyses more.
He is able to identify a large scale of system components and supports the latest technologies
and standards.
http://www.CPUID.com/pcwizard.php
J W Stuart: http://www.pagestart.com
-
LMD using DB links generate Redo entries/Archivelogs
SOURCEDB production database, we use the database links to connect to the oracle TARGETDB database.
We want to know if the DML statements (Insert, Update, Delete) on TARGETDB SOURCEDB using the database link generates archivelogs on the SOURCEDB.
I have been looking for documentation, but couldn't find an answer to this. Appreciate if provide you any link to answer this question.
Hello
Easy to test:
SQL > connect DEMO/demo@//localhost/pdb1.demo.pachot.net
Connected.
SQL > drop database link DEMO;
Database link dropped.
SQL > create database DEMO link to connect to DEMO identified using the demo '& _CONNECT_IDENTIFIER';
old 1: create database DEMO link to connect to DEMO identified using the demo '& _CONNECT_IDENTIFIER '.
new 1: create database DEMO link to connect to the identified using the demo DEMO "/ / localhost/pdb1.demo.pachot.net'"
Database link created.
SQL > create table DEMO as select lpad('x',1000,'x') x from (select * double connect by level)<=1000),(select *="" from="" dual="" connect="" by="" level="">=1000),(select><>
Table created.
SQL > connect DEMO/demo@//localhost/pdb1.demo.pachot.net
Connected.
SQL > set autotrace trace
SQL > update DEMO@DEMO set x = upper (x);
100000 lines to date.
Execution plan
----------------------------------------------------------
Hash value of plan: 1805557832
----------------------------------------------------------------------------------------
| ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time | Inst |
----------------------------------------------------------------------------------------
| 0 | UPDATE STATEMENT REMOTE CONTROL | | 100K | 95 M | 3919 (1) | 00:00:01 | |
| 1. UPDATE | DEMO | | | | | PDB1 |
| 2. TABLE ACCESS FULL | DEMO | 100K | 95 M | 3919 (1) | 00:00:01 | PDB1 |
----------------------------------------------------------------------------------------
Note
-----
-instruction entirely remote
Statistics
----------------------------------------------------------
4 recursive calls
1 db block Gets
Gets 2 compatible
0 physical reads
Dimensions of 280 redo
854 bytes sent via SQL * Net to client
835 bytes received via SQL * Net from client
3 SQL * Net back and forth to and from the client
1 sorts (memory)
0 sorts (disk)
100000 rows processed
SQL > set autotrace off
SQL > select name, value of v$ mystat join v$ statname where name like 'redo size using(statistic#). "
NAME VALUE
---------------------------------------------------------------- ----------
redo size 3132
SQL > select name, value of v$mystat@DEMO join v$ statname where name like 'redo size using(statistic#). "
NAME VALUE
---------------------------------------------------------------- ----------
size 235313596
For a table that has about 100 MB of data, you see that the remote update generates 200 MB of roll forward on the remote site (which is 100 MB of new values and 100 MB of cancellation). And very little about the local session.
Kind regards
Franck.
Maybe you are looking for
-
I am running Snow Leopard on a Macbook in early 2008. I meet all the requirements for the upgrade to El Capitan, but the App Store said that I can not install on this computer. Any suggestions?
-
iPad, Safari froze and was told that I had to call apple for support assistance.
My iPad Safari froze and was told that I had to call apple for support assistance. I called and gave the last four digits of my serial number of the iPad. They wanted me to download app and pay money, but it felt weird, so I hung up. Am I or my sys
-
I lost my ID to touch, it is re-adjustable
How you re-attach you touch your ID because I lost the ability to touch start and have to enter my password each time?
-
Satellite P840 Win8 - touchpad stops intermittently to answer
Hi, I got my new laptop for 24 hours, and that I have lived two times a situation whereby the touchpad no longer permanently, by requiring that the computer be reset (which ' solve' the problem). In addition to this, I experienced intermittent freeze
-
Hello I want to put in place the control remote desktop using my laptop running windows 7 to access another computer running windows xp family. How can I do? Thank you