Problem when the PWM signal combinning and analog signal TOGETHER!

Hello everyone,

first I DAQmx 6212, and I need to run the water pump small (9V - 16V) that should be driven by a PWM signal; I also have a motor (5V - 13V) for a water supply which must be controlled by an analog signal and it has built in a force feedback potentiometer, I logged onto this potentiometer correction + 5V the DAQmx and used the output voltage of the third extremety as a value to diagnose to know the position of the engine.

My VI shows:

1 is a normal meter production to create my PWMout signal.

2 is an analog input, I use it as a PWMin to the LabVIEW to diagnose what is happenning in my pump water through the cycle and frequency.

3 is an entry of the third extremety of the analog potentiometer.

4 is an analog output that I used as power supply of the motor valve and I used an AC/DC amplifier for aplify signal the DAQmx and the motor road, between the two (3. 4.) I made a comeback with a few calculations, I had a P-controller to know the real position of the engine valve.

My problem:

When setting to 1. and 2. in the same VI only, I get an own PWM output with no problem.

also with 3. and 4. in the same VI only i can control the motor valve without any problem.

but when I put all these 4 set found in the attached VI, I have a problem as the engine valve turn continuously without stopping even if I change the position of the valve between 0 and 100%, I should mention that I see a PWM normal outside a signal on my oscilloscope, another thing to delete one of (1 or 2)  and run the engine valve VI works fine without any problems.

so this my problem, if you can think of any solution please let me know.

Thanks in advance for your help.

Kind regards

Caliente

Here's your VI, slightly modified so the two analog inputs belong to the same task.  This if only for purposes of illustration, I him have not tested.  You will still need to do some debugging.

While changing your VI, I noticed another potential problem with your original configuration.  You have configured the two tasks of AI for the same frequency, but read you 10000 samples of one of them and only 100 samples from the other (and throw it most of it).  Data acquisition data are buffered, and if you read as fast as you acquire, the buffer fills eventually.  If you read 10,000 samples of a channel, and the other channel acquires at the same rate, then when you read from the second channel you will get old stale data or an error full buffer.

Tags: NI Software

Similar Questions

  • Error - there is a problem with the external Setup program and it must be closed when you try to install windows updates

    Original title: How can I fix external MSI?

    When I try to download the updates, the error message says there is a problem with the external Setup program and it must be closed.  Updates will not be installed.  Anyone know how to solve this problem...?

    Hi John,.

    ·         You are able to install other applications on the computer?

    It seems to be a problem with the corruption of the .net framework. I suggest trying to repair the .net framework on the computer and see if you can install the updates.

    http://support.Microsoft.com/kb/923100

    Hope the helps of information.

  • How to solve a problem when the windows setup program does not open a program, says I need to install it. and an error message 1706

    How to solve a problem when the windows setup program does not open a program, says I need installation cd and a 1706 error message happens.

    Hi PAtwoodwu,

    1. what program are you trying to install?

    2. did you of recent changes on the computer?

    3 does happen with all programs?

    Check and make sure that the Windows service install is running on the computer.

    (a) click on start to reduce this includes this image, click run , type services.msc , and then press enter to open Services.

    (b) right click on the Windows Installer service and then click Properties.

    (c) if the box Startup type is set to Disabled, change it to Manual.

    (d) click on OK to close the Properties window.

    (e) right click on the Windows Installer service and then click Start. The service should start without errors.

    (f) click on the file menu, and then click exit.

  • 11G with ASM and RDBMS problem when the server reboot (dependencies)

    Hello

    I just install the new version 11G with ASM for the first time. When I restart my server, RDBMS start before the ASM service isn't over to start. It's like when the care services, CSS and EVM have been replaced by the OH dependencies have been lost. The OH service is started but it's as if he is not optional and others start immediately (ASM and RDBMS).

    Early restart, I see the OHservice started and the DSO after that (on the road), but when the RDBMS starts the instance handle of stay (inactive and not mount) because unit number logic for the catalog of service is not available yet. I see in the alert.log to RDBMS catalog segment is not found or not existing (/ catalog not nfound).

    If I wait about 3 to 5 minutes and restart only the RDMBS all start without problem.

    Is there a way I can adjust the stop with the 11g version service or use the crsctl to indicate to the RDBMS service start only when all the ASM service (MON) segment are mount?

    Thank you

    Normally the database is started by the clusterware and not by the windows service.

    Thus, there could be 2 ways to do this:
    (a.), try to assign the Windows of the database service to manual. It must be started by clusterware.

    If that doesn't work, try this:

    (b) leaving the service to automatic startup (Windows), but disable the automatic start of the database. This you can normally change in the registry
    -Online-online Oracle-online key HKLM => ORACLE__AUTOSTART
    (not 100% sure on the key, but I'm sure that you'll be able to find it.)

    Unfortunately do not have atm WindowsCluster to try it myself.

    Additional please check if your db instance has the correct dependencies defined in the clusterware.
    Make one

    stat ora res crsctl. .db Pei

    and paste it here.

    So good luck...
    Sebastian

  • Bluetooth decreases when the network signal changes

    Hello guys,.

    Since the last update (23.5.A.1.291) my bluetooth devices (headphones, speakers, etc. I've tried several) are not functioning normally. Bluetooth keeps disconnecting and then reconnect. I thought it was random at first, then I thought it was when my network signal was change, for example when it goes from 4G to 3G, it disconnects (even when the network signal is also 2 bars 3).

    You have a solution, this is done on my nerves...

    Thank you

    Concerning

    I made this https://www.reddit.com/r/SonyXperia/comments/2mdmuk/getting_throw_function_to_workalternative/ and it worked.

  • Detect when the menu is opening and closing

    Hello

    In my application, I use the ESC key to return to the previous screen.

    The problem is when to press the MENU button, a menu appears, and it must be able to use the ESC key to close the menu (if he wants).

    So, I would detect when the menu is opened and when the menu closes, I can manage the ESC to go back screen or simply to close the menu.

    Is it possible to do this?

    Thanks in advance

    Hai

    Do not use keylistener.

    Override keyChar() in your screen and locate the ESC key.

  • I have a problem with the Narrator, repeating words and phrases.

    original title: NARRATOR in WIN7 SUPPORT

    I use windows7.  The annoying Narrator sometimes voices repeat words and phrases.  I also need help, change of voice and using Narrator to read aloud my text book I downloaded.  It is in PDF format.

    Original title: Narrator sometimes repeat words and phrases

    Hello

    Thanks for posting your query in the Microsoft Community.

    You have a problem with the Narrator, repeat words and phrases. It can be difficult when something that is important to you does not work as expected. It's pretty simple and we're here to help you solve the problem. We work as a team and get this sorted out.

    Please answer these questions-

    (1) exactly where you run the Narrator?

    (2) the Narrator extends from a particular document?

    (3) have you made changes on the computer before the show?

    I would like more information about the issue.

    Method-

    I wish that return you the items for assistance-

    Narrator doesn't read what I expect him

    http://Windows.Microsoft.com/en-us/Windows7/Narrator-doesn

    Hear text read aloud with Narrator

    http://Windows.Microsoft.com/en-us/Windows7/hear-text-read-aloud-with-Narrator

    Let us know if you need assistance regarding the issue. We will be happy to help you. We at Microsoft, strive for excellence and provide our customers with the best support.

    Thank you.

  • How can I save by iPad 3 when the screen is black and nothing appears?

    How can I save my iPad in ITunes or iCloud 3 when the screen is black and nothing appears?

    Is the empty screen, because just the screen is broken, or is the iPad just dead? Have you tried a soft-reset/reboot it?

    At least you can see what you touch on the screen of the iPad, you cannot force a backup to iCloud.

    If the iPad still works and is connected to wifi, a backup should automatically happen (if iCloud backups are enabled) if it is connected and the locked screen.

  • I can't download attachments in Windows Live, although I can view online when the link is there and can also download zip.

    Cannot download attachments in windows live, although can view online when the link is there and can also download zip. What has happened recently. I was always able to do until recently.

    original title: Windows Live Mail

    Hello

    The best place to ask your question of Windows Live is inside Windows Live help forums. Experts specialize in all things, Windows Live, and would be delighted to help you with your questions. Please choose a product below to be redirected to the appropriate community:

    Windows Live Mail

    Windows Live Hotmail

    Windows Live Messenger

    Looking for a different product to Windows Live? Visit the home page Windows Live Help for the complete list of Windows Live forums at www.windowslivehelp.com.

  • Problem in reading the PWM signals in myRIO 1900

    Hi guys,.

    I work with myRIO to generate PWM pulses.

    Here is the block diagram of my circuit.

    I connected external to the analog input pin PWM pin. So I can watch the PWM pulse in the waveform table.

    But the waveform is not clear. This is as shown in the screenshot.

    See that the waveform is not correct. When I'm watching the same PWM pulses in the CRO (cathode ray Oscilloscope, oscilloscope real in the real world), I get exactly the waveform. that is, the PWM pulses are generated correctly. But the analog read is unable to read the PWM pulses.

    I faced the same problem with the pin of analog reading earlier when I read the input voltage. Is not give continuous reading of the voltage input.

    Please guide me how to read these impulses via analog read.

    Please tell me at what frequency range, I can use this myRIO to generate impulses?

    I am able to use 40 kHz?

    Hi rcs.
    The desired pulse frequency is 10 KHz. My sampling rate must therefore 100 kHz, which is not possible in data acquisition mode. There is another problem with the myRIO. Only AI0, BI0 and CI0 has n-sample mode. The analog input pins is still have no n-sample mode. But in my project, I need 4 pins of I in n-sample mode, which is not possible. In addition, the sampling rate should also be favourable, which does not happen in my case. We can say that this is a disadvantage of myRIO with data acquisition mode.
    The only alternative to solve this problem is to use FPGA in myRIO.
    He can taste a 25nS rate.
    But little complexity is there

  • Podcast OGG resume problems when the device has been turned off and on again

    Even if the rocket + is listed as support AAC, it seems it does not support AAC files over a certain length, otherwise some file size.  (Someone, is it a value of its own thread?)

    For this reason, I need to convert some podcasts to another file format before listening.  MediaMonkey standard appears to limit MP3 conversions (but I love the software otherwise) so I thought that I would like to convert it into OGG instead (and OGG seems to have a better rate of compression than MP3 anyway).

    I found it by listening to these podcasts I can pause successfully to create a restore point, and when I come back, it takes up very well, as long as the device has not been driven off the coast between the two.  If the unit has cycled and turn it back on, when I come back to try to resume, it tries (he lists even the index of screen time) but then says "no file type supported" and fails to resume.  I tested on my old Fuze and do not have the same problem.

    Others experiencing the same thing?  I want to make sure that if it is just a simple bug of Sandisk is aware of this and can provide a fix in a future update.

    BTW, I'm using firmware 1.32.00 (latest as of this post).

    This seems to have been fixed with the latest firmware.

  • When I try to play a game online a page appears saying certifcate theres a problem with the security of websites and it will not connect to yahoo messenger

    Im trying to sign on a MSN chat game when I do a page appears saying that there is a problem with the security certificate from the Web site.

    It gives you three choices

    leave the Web site

    continue to this website (not recommended)

    more imformation

    When I click on continue he don't go to the game it won't let me play and a page comes up saying (open ports)

    also when I try to log in to yahoo Messenger, a message pops up saying

    We cannot connect to yahoo messenger

    then he gives me a choice of output or troubleshooting

    When I use troubleshooting, it is said that there could be a problem with your internet connection

    I have listed these two items because they were both working at the same time now their not.

    Any site, I try to get shows this message cerificate

    I did a scan on my computer and it says (fichier-\device\mfeavfk01.sys) (masked driver infection)

    so im collecting it is all related to the same problem

    Hello

    1. what browser you use to play games online?

    2. If you are using Internet explorer, version of Internet explore you use?

    Method 1:

    If you use Internet Explorer, I also suggest you to see link and check.

    "There is a problem with the security certificate from the website" when you try to visit a secure in Internet Explorer Web site

    http://support.Microsoft.com/kb/931850

    Method 2:

    How to reset Internet Explorer settings

    http://support.Microsoft.com/kb/923737

    WARNING: Reset Internet Explorer settings can reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings. We recommend that you note these sites before you use the reset Internet Explorer settings.

    If you are facing any issue links to the yahoo Messenger, I suggest you to contact yahoo messenger support forums and check.

    http://help.Yahoo.com/communities/index?page=forums

  • Using the AVCHD settings and 60 fps creates problems when the final product will be at 24 fps

    Using a canon vixia HF R62, trying to get the end result of highest quality of my work. I learned that shooting AVCHD to 60 fps is the highest quality I can achieve. What problems can I encounter when the final will be played at 24 frames per second?

    Suggestions for the workflow would be greatly appreciated, as I'm at the very beginning of learning what and how to do things properly.

    Robert

    Hi Robert,.

    If you look at a picture of the 24 p video and compare to a frame of the video of 60 p, 60 p frame will look better. When people say 60 p is the best quality, it's because you get several images per second... not better executives... just more of them. But as we have already mentioned, it is useless in shooting 60 p If you send only 24 p. Frame rate conversion will affect the final quality!

    Just keep in mind that you need to adjust your style of shooting for the 24 p, which means no fast pans for example of what they will offer very rough.

    Thank you

    Jeff Pulera

    Safe Harbor computers

  • Problem with the sensor of pressure and NI 9205 with NI 9263

    I have a bridge pressure sensor based with a range of 0 - 5000 psi and requires a 10 V excitation. The output is 3 mV/V. I plugged on a cDAQ with a NI 9263 providing excitement V 10 and a NI 9205 to read the output values. I would expect a 0-30 mV output corresponding to 0 - 5000 psi, correct? (Incidentally, the NI 9205 module must be accurate to 0,1 mV or this should lead to a precision of about 16 psi, right?).

    However, when I tested it in fact the sensor on the run a test ranging from 0 to 1000 and back to 0 lb/po2 (now for quite awhile to States of pressure) the values I get from the NI 9205 are about 204.614 mV for 0 lb/po2 and then goes 204.867 mV to 1000 lb/po2 (actual results are noisy (, so these are averages). I enclose the SignalExpress file used for the test as well as the Excel file containing the resutls. Testing was performed with a number of other active sensors (load and displacement, LVDT and gagues strain gauges) in addition to the pressure that I'll eventually use them for my experience. In the SignalExpress file, the pressure transducer is the only sensor receives the excitement of the NI 9263 (ao_0) and ai_3 on the NI 9205 module.

    So this time I tried to run the test again, but changed the SignalExpress file (second .seproj attached) to include only the pressure transducer. But now I don't have an answer at all by the transducer (it remained simply flat).

    As to the connection of the transducer material, it is a connection 4-wire (excitement, - Exciation + Signal - Signal). I plugged the cables from signal to pins 4 and 23 (AI3 and AI11) for a differential pair. Then, I plugged the son of excitement to the pins 0 and 1 (AO0 and COM). Finally, I took a wire jumper and connected 23 on the NI 9205 module PIN to pin 1 on the NI 9263. I made this last step at the suggestion of support OR for a previous problem with a string potentiometer. This stage connected the ground between the two modules (the sensor did not answer with a pressure change when I don't have the wire).

    I appreciate any help as to why. I did not receive a 0-30 exit mV.

    his does not work like that.

    The probe should @30mA to 10VDC.  There is only available from the canal AO 9263 1mA.  you need another power supply.

  • Questions about the synchronization between output and analog input

    Hi all

    I now have a simple task which head a signal voltage (from PXI ao0) on a circuit and then your comments a voltage at the terminals of a component, for example, that one of the resistors in the circuit, through ai0 on PXI. So in this case, the synchronization between analog input and analog output must be made to avoid error of phase shift.

    I tried to build my VI by learning this example: https://decibel.ni.com/content/docs/DOC-3882

    However I have a few questions.

    1. I noticed that there is a merged error fed the "start task" sub VI for the analog output.  What is the point of fusion to mistake?

    2. I enclose my VI (also shown below) for the output voltage. I put my writing of DAQmx Subvi in the while loop so that I can change the voltage while the VI is running.

    However, in the example, the author has been reading outside of the loop and before even the start task. What difference will it make?

    3. I have also attached my synchronized VI. I always put the wavegeneration and the DAQmxwrite in the loop. A bulging guard error saying about samples is not available and needs to a higher sampling rate or a longer wait time. What causes this?

    I appreciate that these problems can be solved. Thanks to you all.

    (1) first you need start the task of acquiring, he'll wait for trigger here. And then you start the build task that provides this trigger. If acquisition could trigger and never start.

    (3) you must first write something in the buffer (writing DAQmx), then only you can generate it (Daqmx Start).

    Check Cont Gen tension Wfm - Int Clk - no Regeneration.vi in the help-> examples for example.

Maybe you are looking for