Best way to generate a PWM for a stint with LabView2010 and a laptop

Hello

as mentioned in the title, I'm looking for the best way to generate a PWM signal to a relay. I want to use a laptop computer and the LabView2010 for she. I have read through several topics, but after a time that he just got more confused. For example the NI USB-6008 OEM case seems to be a solutiion at low prices, but I don't know if I can use for the generation of PWM signals like this thread says is not possible:

http://forums.NI.com/T5/Multifunction-DAQ/using-PWM-on-NI-6008/m-p/231860/highlight/true#M13339

But then again this thread right here makes it seem as if it was doable:

http://forums.NI.com/T5/Digital-I-O/generating-a-PWM-using-USB-6008/m-p/421654/highlight/true#M5527

Once again in abbreviated form.

What I need:

-the best way to generate a PWM signal to control a relay

What I have so far:

-LabView2010

-Laptop

If possible, it would be good to have two channels for two separate signals, but it is more low importance right now.

Hey Kambra,.

The first thread you mention is correct, you can't make output PWM in any deterministic mode with a 6008. The 6008 is strictly software timed, which means that each digital writing that is done in the unit must go through the operating system and down to the device. And there is a lot of jitter of the involved BONE. The second article you mention says the same thing. They emphasized that they could reduce the jitter of some, but still can not remove it entirely. In the second thread, they mention using a M-series USB device do output PWM deterministic (timed material).

The compromise really down to your application and its requirements. If your application to control the relay requires no determinism, then you can use the 6008. If you need precise control over the relay, try the USB M series.

Tags: NI Hardware

Similar Questions

  • Best way to generate signals of activation (square wave) with my 9401 on my 9022?

    Hi, I tried seriously over the past two days to find the best way to do it. I am trying to generate a very precise square wave, controlling the duty cycle and frequency, with the OID on the 9401 in testbed cRIO 9022.

    I have a VI that is theoretically able to do this, but whenever I try to go above 5 Hz or more, duty cycle and frequency becomes inaccurate (I have watch on an oscilloscope), various a lot too for my needs. I have a feeling that this is caused by my addiction on the calendar software controlled, with errors at the time (of the ms order) accumulate as they get processed and the signal is sent. I have attached a piece of code that illustrates the basic idea of what my VI have in them.

    I have avoided the square wave generators integrated because I could never work to satisfaction, but I can work with them so that will solve my problems. Selection structures and cases prevent the user to exaggerate their inputs. Unwaited so the loop was just to test.

    I'm running the 9022 as target in real time, but also tried to run in the FPGA and I was able to produce much more accurate signals using FPGA VI square wave, displaying a Boolean variable, but I couldn't see the best way to get double precision variables to work with everything (and I want more precision than variables FXP enabled clock 40 MHz).

    I feel there is just a mistake in my approach here. I've seen other discussions where people throw around using meters to edge of the test bench to produce a square wave, and I see the example screws as Gen dig pulse - continuous Train, I'm not sure if initially these screws DAQmx for my situation (eg. How to identify my counters, because they are clearly not Dev1/ctr0 by default in these examples)

    Thank you

    Dealing with the representation of Point fixed and all is a reality for LabVIEW FPGA<= 2011="" programmers.=""  you="" might="" build="" a="" small="" sub="" vi,="" such="" as="" the="" one="" attached,="" to="" encapsulate="" the="" frequency="" calculation,="" thereby="" abstracting="" the="" conversion="" formula="" and="" fixed="" point="" data="" type.=""  you="" can="" adjust="" the="" properties="" of="" the="" floating="" point="" input="" control="" to="" accept="" only="" valid="">

    This implies the series VI void on the host of the RT, and not on the FPGA target.  So, you also need nodes in the Palette of the FPGA Interface to send PWM fixed Point RT frequency to the FPGA.  The complete solution of frequency may resemble the following.  It is common for FPGA programmers to build a collection of thesesub screw, that make up the API for hardware.

    Note that 40 MHz is hard-coded.  For increased flexibility, consider making the FPGA clock rate an entry to the Subvi with a default value of 40 MHz.

    -Steve

  • What is the best way to store the RCS for an insert/update in this rec

    Oracle on Win 64 non-conteneur 12.1.0.2

    When a record in one table is inserted or updated, what would be the best way to store the RCS for this record in this folder.

    I thought of a line after trigger, but did not know if this trigger to store the current_scn would still fire that trigger again (recursive trigger).

    Someone at - he a good idea of what the best way is to do?  The devs don't want to store the pk and the SNA in yet another table...

    Yes, row_dependencies would be the best way to go.  But mgmt doesn't recreate all tables for this.

    3rd party applications retrieve data from tables (all data).  We are looking for a way for them to just pull what is new or updated updated since their last sweater.

    I suggest that you try again and give all OF THE REQUIREMENTS.

    You have rejected ANY answer given and he justified using 'hidden' on what knowledge management or the devs want or do not want to. Stop making us guess what are the requirements and constraints. If you want a real answer then tell us ALL the news.

    When a record in one table is inserted or updated, what would be the best way to store the RCS for this record in this folder.

    Solomon answered repeatedly. If you want to add a column to a table to store the then "best" SNA is to let the Oracle to do this for you automatically by using the DEPENDENCY LINE.

    As he says also re-create the table to add this clause will be MUCH MORE EFFECTIVE that everything THAT you can do it manually. It will be also more accurate because Oracle will fill the value ORA_ROWSCN with the SNA at the time the line was committed. You, as long as user, can't fill a column in function when a line is engaged since real VALIDATION belongs to a transaction, not the line or the trigger that you use.

    Yes - there are two drawbacks to this method:

    1. you need to re-create the table

    2. you cannot add an index to this "hidden" column

    The devs don't want to store the pk and the SNA in yet another table...

    Then? Who cares what the devs want to do? You want the BEST solution? Next, you will need to put aside personal preferences and determine what is the 'best' solution. Why it is important that certain dev wants to do this or not?

    OK, the problem of biz is now, 3rd party external users are an all-wheel drive large number of tables in the database via the API that we wrote.  That was obviously interrupted OLTP during the day.  To reduce to the minimum, we want for them just to extract data that has been inserted/updated since their last sweater.

    It is the definition of a "replica" DB Then why don't you consider a real replicated DB? You can use DataGuard and have replicated DB which is read only that can be used to generate reports. Oracle does ALL the work to keep ALL the tables in sync. You and your developers do NOTHING!

    We thought that store the RCS higher their last sweater would allow the API to extract only data with YVERT higher than their last data pull CHN.

    OK - except you keep rejecting solutions actually do. Ask you questions about the SNA stored in the same table, but then reject the solution that does this. And then you add your "devs" don't want to store the info in a new table either.

    Then your solutions must ONLY use the replication or Log Miner. The REDO logs have all changes, if you want to extract yourself. Replication (e.g., DataGuard) will use these logs for you to maintain a replicated database.

    We thought about it, but recreate all tables in production with ROWDEPENDENCIES as well as dealing with CF and other dependencies idea this was shot.

    Well you NEVER mentioned you "thought that" and rejected it. And you NEVER mentioned anything about FKs and other dependencies. What is FKs and other dependencies which prevents this working solution? Tell us! Give us ALL the information.

    Wouldn't a trigger AFTER LINE capture the commit YVERT?  Or is after really not after validation?

    No - a trigger has NOT one commit. A trigger runs as a step in a transaction. Validation applies to the entire transaction. Until you, or Oracle, issues a commit, there is NO "committed SNA" to be stored as ORA_ROWSCN.

    You can easily see that for yourself. Create a simple table with dependencies of the line and then update two different sessions.

    create the table emp_scn rowdependencies in select * from emp where rownum<>

    Select empno, emp_scn ora_rowscn

    Update emp_scn set work = 'b' where empno = 7499

    commit;

    The first SELECT statement will show you that each row has the same SNA.

    EMPNO, ORA_ROWSCN

    7369,70622201

    7499,70622201

    7521,70622201

    Now, do the update (but no commit), then SELECT it

    EMPNO, ORA_ROWSCN

    7369,70622201

    7499,

    7521,70622201

    Where is the value of 7499? This session will NOT see a value for the changed lines in the current transaction. Other sessions will still see the old value.

    Now do the validation, then SELECT

    EMPNO, ORA_ROWSCN

    7369,70622201

    7499,70622301

    7521,70622201

    7499 now has a new and different value than the other lines. It will not be this new value until the validation occurs.

    Yes, row_dependencies would be the best way to go.  But mgmt doesn't recreate all tables for this.

    Well, you got the answer you want. You ask the best way. Now, you say that you were told the best way. But now you don't like the answer.

    How is it our fault? Your question has been answered wasn't she?

    Here are the facts:

    1 oracle creates a history of changes - the REDO log files

    2. you can use Log Miner to extract these changes

    3. you can create your own change log by adding a log file of MV to your table.

    4. you can then write a custom code to use this MV log file to determine which rows to "reproduce".

    So far reject you all THE POSSIBLE solutions.

    Accept it or change the requirements to allow one of the solutions proposed to be used.

    Personally, if I HAD to use a customized solution, I would use a MV journal to record the ROWID of the lines that have changed (for tables ROWID cannot be changed). I would then extract the appropriate lines by pulling on the lines corresponding to these row ID.

    Even that has problems since a line can be changed several times and children lines can also be amended several times - these questions FK you mentioned.

    I suggest you read this entire thread on AskTom a dozen years ago. It addresses ALL these issues.

    https://asktom.Oracle.com/pls/Apex/f?p=100:11:0:P11_QUESTION_ID:16998677475837

    Then in your next reply on this topic give us a summary of where some things with your question and what help you further expect.

  • What is the best way to create the layout for a single page website in Adobe Muse?

    I was wondering the best way to create the layout for a single page website in Adobe Muse. Does anyone have any suggestions?

    You can have access to this tutorial (and their other) a month for only $9.99. Is it too expensive for you!

  • A program of Photoshop for beginners help with things and advertising brochures

    What would be a good program of Photoshop for beginners help with things and advertising brochures

    ' Advertising brochures and things ' seems to imply elements that will be printed on both sides of a piece of paper or make multipage documents.

    Photoshop is an image editor and can have only 1 page per document.

    In short, Photoshop is the application bad for something more than a single item from the front.

    Adobe InDesign is a page layout program that is specifically designed to create multipage documents.

    You can type or place text, photos of the place and the other images and have better control over the placement and arrangement of the elements on the page.

    InDesign, like Photoshop, Illustrator has a steep learning curve.

    You can download Adobe trial versions (these will only work for 30 days) and raise you some books or sign for video lessons on Lynda.com

  • Best way to generate the software clock for USB-6501 of Measurement Studio for c# VS2008

    Hi all

    I wonder if there is a better way to generate a clock software for USB-6501 of Measurement Studio for VS2008 in C Sharp?

    I have developed a clock using C Sharp "Thread.Sleep (msecPauseTime)"; and statements to switch digital output high and low. There are a few things I noticed in creating a software clock in this way:

    1. The smallest delay by the Thread.Sleep command time is 1 millisecond (which means higher clock period is 2 msec-500 Hz, not holding not ball account no. 2 below).
    2. Sometimes the delay I see on an oscilloscope is considerably longer than the delay that I specified in the sleep command.

    In my application, I create signals (a clock, a latch enable and data series) to control what an attenuator step through the USB-6501 RF connected to a USB 2.0 on my computer. This particular step RF attenuator can accept clocks with frequencies up to 10 MHz, so I would like to generate a software clock (without having to connect to an external clock to a line of input on the USB-6501) which is closest to this maximum frequency, and I think that the USB2.0 line could handle clock speeds over 500 Hz. Also, I would like to know why the delays that I see on the scope are sometimes longer than the time specified by the Thread.Sleep command. Is it caused by the suspension of the execution of my program processor for something else, as I suspect? Of course, this isn't a big deal, because it does not affect the time as my serial data and pieces change compared to my clock. However, I would like to know why it does this.

    I appreciate your help.

    Thank you

    Jonathan Becker

    Doctoral research engineer

    Carnegie Mellon Silicon Valley

    Jonathan,

    Since the USB-6501 DIO is software programmed, you are at the mercy of the planning of the operating system and won't be able to work reliably with an external clock in the software.

    You can try to set the priority of your thread 'generation of clock' to improve performance, however, because Windows is not a deterministic operating system, there are still no guarantees.  Operating systems are not required to honor the priority of threads.  You can find examples and information on the definition of the priorities of the threads in c# here:

    http://msdn.Microsoft.com/en-us/library/system.Threading.thread.priority.aspx

    Kind regards

  • What is the best way to generate the density curve for example spectral dBuV / 200 Hz?

    There are large screws for PSD, but this is an easy way to create a field of spectral density with units dBuV/200 Hz?

    Hey steveMAX,

    If you have equipment that can acquire these tensions, then it should be too difficult. You can use the Express VI spectral measures to produce the data. This will automatically give you the output in dB. You can then resize the axis on the graphical indicator you create so that you can display the correct data and label the axis correctly.

    Kind regards

    Chris

  • Best way to generate dynamic html in apex

    Hi all
    I need to create a complex page as html with tables in tables, ajax and a very large number of elements (text fields).
    Would like to have your opinion to know what the best solution to create this page. The HTML code in PL / SQL, it is difficult to manage in the future. There is another way to generate code HTML, without being inside PL / SQL?

    Hi 819517,

    You should be able to get your desired using regions and sub-regions effect.
    As you create your own custom for both templates.

    You can find issues with more than 50 fields on your form.
    You can work around this by re using domain names (as in a form of multi line).

    If you submit several hundred fields, you will need to look at settings for modplsql in apache (if you use it) because the maximum number of form fields is a parameter in the conf file.

    Concerning

    Michael

  • Volume: Best way to decrease the volume for a portion of a clip

    I have an audio clip of speaking me - about 22 minutes. I knew it would be difficult to change because of its length, so I divided into eight sections and each section has recorded independently.

    However, I made a couple of mistakes here and there. So instead of wasting time to record a whole clip again and again until I understand well, I have just re-recorded paragraphs which should be corrected.

    So, imagine a master audio clip named Project1 in setting up first. In the track above, where the third paragraph starts, is another audio clip - Project1-3. I'm trying to understand the best way to kill the volume on Project1 - just for the duration of the third paragraph. So when I listen, I should hear the patch, Project1-3, instead of the main audio, Project1.

    I checked a few tutorials, but I'm a bit confused. I thought it was something I have to do in the Source monitor, by using keyframes, but it does not work too well.

    I put a screen shot in line @ https://www.geobop.com/images/audio.png

    In the upper left corner, you can see where I created a key by clicking on the Volume and selecting the level. It was set to 0 by default, so I changed the value of-20. But when I preview the video, I can still hear the sound and changes in value-20.

    Can someone tell me what I am doing wrong?

    Thank you.

    Rather than apply keyframes to the Volume setting, you will find may be easier to use the razor tool to split the audio clip called "Project1" into several segments in the timeline panel.  Then, disable the unwanted segment (select it in the timeline panel and choose Clip > enable) or raise TI (press point comma), leaving a space.

    Your tracks can be difficult to hear suddenly as the stopwatch for the effect of Volume Audio is enabled by default.  If you look at the effect controls panel, while the audio is selected, you can proceed to the next and previous keyframe to see what 'level' to each key frame.

  • best way to specify a folder for a new virtual machine

    Hello

    I am currently working on a system that has the following file structure:

    DC1

    Prod

    Linux

    Windows

    Other

    Dev

    Linux

    Windows

    Other

    Beta

    Linux

    Windows

    Other

    What is the best way to specify a specific folder for a new virtual machine. At the Moment so I just say Linux it is said that there are several files with the same name. I discovered a way to get the good record, but it's very nearby. Any comments would be much appreciated.

    Kobus

    Perhaps the function in my folder through post might help?

  • best way to generate the format avery label

    I have data in oracle xe and I use apex 4... What is the best method to generate the label... format Avery...

    1. use Jasper
    2 other methods...?
    I don't want to use bi... THIRD party cost solutions or...

    Published by: susf on June 22, 2012 21:34

    susf wrote:
    I do not know how do I get labels State... from...
    And I tried... He
    Report 1

    Cheena chris cox Green

    Jose Orange

    But does not show the image...

    More do not know how do I get label... Thanks to this method...
    He will just show me a picture...
    How can label processed... through this approach...

    The OP was able to understand:
    >
    You're right - no page element need! It took me a little bit, but I figured out how to get what I need from your example. The CSS that I use also includes: height of the line, font-size, border and width. I had serious performance problems until I removed the title of column sorting (unchecked all boxes). I added .csv and .pdf links, but they do not have the inline-block formatting so were of no use.

    Of course I learned a lot about the functioning of the reports and models. Thanks for sharing this info Paul - I appreciate it greatly.
    >
    Although it may take several days. Note where they say + "I of course learn much about the workings of the reports and models." + is the most important: to understand the concepts and techniques involved and when and how they could / should be applied to meet the needs.

    The images are only data [form of]: replace the image data and the name with the data required in your report.

  • Best way to generate a record per day from a table with the dates of the FEP/exp

    Hello

    A table equipped with various attributes and a date of eff and exp. for example Attributeto, 05/01/2012, 16/05/2012

    We want to create another table in this table for a record per day. for example 16 documents.

    What is the best way to achieve this in OWB?

    Thank you

    Assuming that you have a calendar table, then you can reach your rate table corresponding to the date table schedule between the table rates start date and end date.

    Something like:

    Select a.rate, rate_table b., calendar_table b.
    where b. between a.start_date and a.end_date

    should translate easily into a join of two tables in OWB?

    Concerning
    User909022

  • What is the best way to create a bookmark for a user to return?

    Hello to all... hello again Steve... I'm back with another question - what is the best way to set up a bookmark system so return users can pick up where they left off in a lesson of AW? I tried the usual internet research, always do, but a few samples and answers I found were AW5, not a lot of help...

    I have a dozen or so cards attached to my frame, I would like a user to return to the last card that he read before the close. (My AW communicates very well with database Access, so if passing a variable to access and back to AW when begins the lesson is on track, let me know...) If the answer here is too complicated, perhaps pushing me in the right direction and I'll me dive in.

    Thanks in advance to all those who have some tips, I really appreciate it!

    Terry

    Try this overview, see if it helps...

    Enter a reference to the map as you enter, then save to the database when you exit.

    You want something that will give you the equivalent of a page number - if you have 7 cards hung the setting, and the user is in the 6th plan when it stops, you want to save the number 6.

    There are dozens of ways to do it, but probably the easiest way is just to attach a calc to each card that has this code

    (I do not have Authorwar very convenient to check the syntax, then you should check out!)

    BookMarkPage = ChildIDtoNum (IconParent (IconID), IconID)<-- tells="" authorware="" to="" return="" the="" "page="" number"="" of="" the="" current="">

    Save BookMarkPage in your Access database to the exit.

    In return, read the bookmark in BookMarkPage, ask the user if he wants to go back to the bookmark. If so, use a calculated navigation that uses

    ChildNumToID (@the of your frame name or its ID, BookMarkPage)

    Note that you could argue something similar by recording the your card, the IconTitle or IconID but these two can break if never update you your file by adding or removing pages, renaming etc. With this method, all you need is a simple page County check that makes sure you don't try to nav for a page number that does not exist (use IconNumChildren).

    Steve

  • Best way to generate swf files

    I'm looking for a way to command line / automated generation of files .swf for multimedia files that I have in my application. At some point, there could be hundreds of videos in the directory and the application allows users to download media on the server.

    I know how to create .fla, files .as etc. to a file using CS3, but I hope there is an easier way to generate these swf files.

    I'm looking to Flex SDK (specifically mxmlc) to write a cron job, but I wanted to see if people use other methods.

    Thanks in advance

    Jody:
    Thanks for the reply. That answered my question.

  • best way to put in place a new iMac with saved files?

    Hi all

    I'm new here so please forgive me if I've done something wrong. Just recently got a new iMac and wanted to get all my software work of music and other files installed. I used the Migration Assistant on the iMac to move files from a recent time Machine to the top of my Macbook Pro. After what seemed to be a successful migration, I noticed that Garageband, iMovie and a few other products Apple should be updated. My new iMac has been updated the newer versions until the migration wizard has been used. My questions are, it's best to go on a new set up, and never has that somehow restored my new machine settings to the previous settings of the Macbook Pro? Would it have changed anything wise speed or image and sound quality wise? of resolution, depth of bit or similar?

    Thanks in advance for any help or answers.

    Dave

    What is the best way to ride on a new together

    Yes.  Other resources - move your content to a new Mac - Apple Support and
    A new Mac set up an ancient, its backups or PC

    Software, Apple and 3rd party will need to be updated to work with your new OS System.  You can visit RoaringApps which will make easier verification.

Maybe you are looking for