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

Advertisement

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

Tags: NI Hardware

Similar Questions

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

  • With the help of modulated signal pulse width (square wave) to control when a signal is enabled or disable

    With the help of modulated signal pulse width (square wave) to control when a signal is enabled or disable

    Hello all

    I am using a modulated signal to labview created pulse width (square wave) to control when a signal is activated or not.

    Here is my logic and a concrete example:
    (1) the wave source signal is continuous
    (2) use a PWM (square wave) created in labview to control when the signal is enabled or disabled
    (3) if the PWM (amplitude) signal is superior to 0 play signal PWM is not greater than 0 do not play signal.

    I use actually this to the sequence step / pulse several distinct magnetic coils using my audio card (which has several channels of audio output), I have a signal in labview played constantly.  As to compare it to the PWM (square wave) which controls whether or not the signal is played on each separate channel.  That way I can control which coil is on and offshore and in what order they are activated.

    I couldn't find an edge detection for a square wave created in labview, so I tried the limits, but it doesn't seem to work unless I change the phase manually and it only goes 1-1.  I'm just trying to compare the PWM (edges of the square wave) already created by labview / play a signal if the pulse is greater than 0 and it shuts off the signal, if she is less than 0.

    Should I do this another way

    TIA

    A waveform contains an array of values. You must check every value and respond accordingly:

  • Best way to send signals between the two screws

    Hi all

    I have two screws that generate some complicated signals (sine wave, pulse, etc.). The other one takes manually entered the tension and pressure send to certain material with a pump and reads the output of the pump.

    What is the best way to send the waveform of the signal VI the VI hands-on? I still need to be able to control the signals manually in this manual control VI.

    Thank you.

    Your user interface would handle this. If you use a machine to States (hint-hint) you would simply chose the State appropriate for your current configuration. You would provide a mechanism (UI, configuration file, argument of command line to name a few) for the parameter which mode to use, and the application would have chosen the appropriate action.

  • Best way to measure accurately the activity of hiking on Apple Watch

    I use my Apple Watch with watch OS 2.2.2 paired with an iPhone on ios 9.3.3 6 and ask what is the best way to measure the calories during the hike. I currently use the app to drive and walk outdoor activity type, but it seems that the market with more than 30 pounds on the back should burn more calories than the market alone.

    It would make sense to increase my weight of 30 pounds (or whatever the weight of the package is that day) in community health for the market or is there another solution to workaround that would suffice?

    It would be great if a later version of workout app had a hiking activity or hiking with a place to specify the amount of extra weight in a pack or vest or even just an option for additional weight to the open-air market.

    Thank you!

    tcpsoft wrote:

    It would be great if a later version of workout app had a hiking activity or hiking with a place to specify the amount of extra weight in a pack or vest or even just an option for additional weight to the open-air market.

    If you want to suggest that Apple considers adding that as a new feature, you can do so here:

    https://www.Apple.com/feedback/watch.html

    (You do not speak to Apple here - it is a community based on the user).

  • 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

  • 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

  • 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

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

  • 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

  • Generate a continuous output of square wave with E Series DAQ cards

    Hello

    I use a card DAQ-AT-MIO-16XE-50 and labview 6.1 to generate the frequency divider. The first thing I want to do is to enter a continuous digital signal into the program so I can divide it. The attachment is the program I use. It's pretty simple, just read the output signal and put them all in a while loop to get a continuous pulse. But when I want to observe the waveform on the oscilloscope, I got some square waves unregular.

    I'm a freshmen in labview. It will be appreciated for all her help!

    Hello

    If you are just getting started with digital i/o with traditional DAQ, I'd take a peek at some examples to see how to structure your code for both input and output.  There is one here (http://zone.ni.com/devzone/cda/epd/p/id/1113) which should give some features similar to what you are looking for, but if you want more examples, you can navigate to the examples as a result of the article here (http://digital.ni.com/public.nsf/allkb/46D0C7360A10D25F862571B5007B4411), as long as you have installed them with traditional DAQ.

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

  • Best way to transfer a subset of the catalogue with files sidecar from one computer to another?

    I'm recently sent to me to take pictures in Costa Rica as part of my work but had to bring my own laptop because it is not suited to my workplace. While that on the road, every night I loaded the photos I had taken this day here on my computer and often started to change. Now, I'm back at home and want to move all photos of travel as well as all files XMP sidecar from my laptop to my desktop computer at the office. What is the best way to do it? I don't want to transfer all the photos on my laptop (pictures of my children, for example), and I don't want to lose the changes that I've already done everything outside the office.

    Please notify.

    Select the pictures you want to copy and then export as catalog including pictures on an external drive. Then, on your desktop, you import catalog.

    A simple google search will be several links to articles and tutorials on how to do it.

  • Best way to horizontally align a row of images with the same amount of filling

    Basically, I want to line up a row of images horizonally each with the same amount of space between each. What would be the best way to go about this? should I put in a div?

    I want to watch how images would be aligned in a clothing site. Thus, for example, like this - http://shop.thehundreds.com/c-439-tees.aspx

    Thank you

    Hi Hannah (?),

    You can try one of the models of Nancy O. from here: http://alt-web.com/TEMPLATES/CSS-Semi-liq-photo-sheet.shtml.

    Hans-Günter

Maybe you are looking for

  • iPhone 5 has no OS update

    Just tried to update my iPhone 5 IOS 9.3.2 and she failed.  He's been stuck on the apple screen for nearly 24 hours. I tried to restore/downgrade it but I can not disable "find my phone" so it will not allow him. Impossible to get an appointment at t

  • How to get the Lenovo on Windows 8.1 Power Plan

    Hello I got ThinkPad T450s and installed Windows 8.1 (no recovery partition) MSDN subscription. Now, my battery life is very short... about 3 hours so I thought that the power of lenovo plan would help, but I don't see it in the list of available pow

  • Driver SoundMax Audio Digital driver does not.

    I have no sound from my SoundMax digital audio driver in Windows XP. No problem with the driver diagnosis Device Manager. A ran a diagnostic program after re-boot and tested the driver outside Windows and obtained its testing, but still not get sound

  • How do I create new folders

    I recently bought a 2 GB Fuze for one purpose, to listen to radio podcast. I could not find a way to add folders under the folder "Podcast". For example, I want a folder titled 'Len' in the Podcast folder, but it does not add a new folder.  What Miss

  • KB2310138 not install, what's the problem?

    Get an internet connection error