Problema di drift usando una Time Loop
Sto utilizzando un sistema con:
Labview 2012,
sistema operativo: XP (dovrà migrare su Seven)
NI-PXI 8106 con chassis PXI-1045
scheda seriale Fastcom FSSC della COMMTECH
Devo utilizzare una comunicazione seriale sincrona e inviare ad intervalli di 1 msec un messaggio: a tal fine ho utilizzato una "Timed Loop" anziché una "wait";
purtroppo, da un esame con l'oscilloscopio, emerge un jitter piuttosto ampio tra un messaggio e il successivo.
Vorrei cortesemente sapere:
1) è possibile migliorare questa situazione? Se si, quali soluzioni sono possibili?.
2) una delle soluzioni a cui pensavo è utilizzare un timer hardware per pilotare il Time Loop: posso, senza il toolkit simulation, realizzare questa soluzione? Se si come posso fare?
Grazie.
Hi
How much is your drift?
Bruno Costa
Automation Engineer
Similar Messages
-
Time loop problem when add a parellel subvi in another time loop
I have four time loops in parellel, they work find
without any problem. However when I add a third party
Vi as a subvi in parellel inside a another time loop.
The first four time loops start working eraticly.
Is there any way I can make them work independently
time wise. There is no data transfering between any
of the loopsHello
The VI with the timing loop is set to cycle once every second, and all it does
Is turn on a boolean light indicator off and on every second. It has a boolean
inverter connected to the shift registers of the loop. Its priority is set to Normal.
The third party VI interacts with a spectrometer hardware. The spectrometer measures
The amount of light and transform the data collected by the spectrometer into digital information, which is then passes to LabView. LabView then compares the sample information to a reference measurement and displays the processed spectral information.
The timing loops of the main VI is manually set by me the user.
The timing loops would loose its sequence; the loops would run normal for a couple
Of cycle the
n either run fast or run slow. If I take out the third party subvi everything
Runs fine
I am using windows XP with LabView 7.1
Attachments:
Dr_Grady_Solinoid_HM_3.vi 129 KB
USB2000_SUBVI.vi 238 KB -
Problem with java swing button and loop
Problem with java swing button and loop
I�m using VAJ 4.0. and I�m doing normal GUI application. I have next problem.
I have in the same class two jswing buttons named start (ivjGStart) and stop (ivjGStop) and private static int field named Status where initial value is 0. This buttons should work something like this:
When I click on start button it must do next:
Start button must set disenabled and Stop button must set enabled and selected. Field status is set to 1, because this is a condition in next procedure in some loop. And then procedure named IzvajajNeprekinjeno() is invoked.
And when I click on stop button it must do next:
Start button must set enabled and selected and Stop button must set disenabled.
Field status is set to 0.
This works everything fine without loop �do .. while� inside the procedure IzvajajNeprekinjeno(). But when used this loop the start button all the time stay (like) pressed. And this means that a can�t stop my loop.
There is java code, so you can get better picture:
/** start button */
public void gStart_ActionEvents() {
try {
ivjGStart.setEnabled(false);
ivjGStop.setEnabled(true);
ivjGStop.setSelected(true);
getJTextPane1().setText("Program is running ...");
Status = 1;
} catch (Exception e) {}
/** stop button */
public void gStop_ActionEvents() {
try {
ivjGStart.setEnabled(true);
ivjGStart.setSelected(true);
ivjGStop.setEnabled(false);
getJTextPane1().setText("Program is NOT running ...");
Status = 0;
} catch (Exception e) {
/** procedure IzvajajNeprekinjeno() */
public void IzvajajNeprekinjeno() { //RunLoop
try {
int zamik = 2000; //delay
do {
Thread.sleep(zamik);
PreberiDat(); //procedure
} while (Status == 1);
} catch (Exception e) {
So, I'm asking what I have to do, that start button will not all the time stay pressed? Or some other aspect of solving this problem.
Any help will be appreciated.
Best regards,
TomiThis is a multi thread problem. When you start the gui, it is running in one thread. Lets call that GUI_Thread so we know what we are talking about.
Since java is task-based this will happen if you do like this:
1. Button "Start" is pressed. Thread running: GUI_Thread
2. Event gStart_ActionEvents() called. Thread running: GUI_Thread
3. Method IzvajajNeprekinjeno() called. Thread running: GUI_Thread
4. Sleep in method IzvajajNeprekinjeno() on thread GUI_Thread
5. Call PreberiDat(). Thread running: GUI_Thread
6. Check status. If == 1, go tho 4. Thread running: GUI_Thread.
Since the method IzvajajNeprekinjeno() (what does that mean?) and the GUI is running in the same thread and the event that the Start button has thrown isn't done yet, the program will go on in the IzvajajNeprekinjeno() method forever and never let you press the Stop-button.
What you have to do is do put either the GUI in a thread of its own or start a new thread that will do the task of the IzvajajNeprekinjeno() method.
http://java.sun.com/docs/books/tutorial/uiswing/index.html
This tutorial explains how to build a multi threaded gui.
/Lime -
Processing in Time Loop with microseconds.
Hello,
I am make one application in Labview where I capture the frame of one camera and I processing the image. The camera is communicate with the board NI PCIe 1433 in the PC with camera link. This camera can work with one frame rate of 2000 fps. For processing every frame in the pc I need one time loop that work with microseconds. The problem is that this time loop only work with millisecond in Windows. If I use the module Real Time, Can I configure this time loop with microsecond or are there other solution?
ThanksThanks,
The purpose of this is controller the application. In this timeloop I obtain the frame and I the processer. If I configure the timeloop with 1 ms I lose frames and if I configure the application with one normal loop I can obteain several time the same frame. The frame rate can change and with this change I configure the timeloop for controller all the time the captures, not lose any and not obtain replay.
-
Time loop and events (again)
Good morning,
I still have problems with time loops and events.
I have an event structure based on run time menu (two buttons: start stop).
When I push start, an automatic sequence is started made of a state machine (so a while loop).
I want to stop the process by means of presing stop in the run time menu. The problem is that the system doesn't respond when I press the button (it's not locked since I unchecked the option to stop front panel acitivity in the event structure configuration). I see that the pression of the stop command is made, but the code inside the event structure is not executed.
How can I avoid this?
Thank you,
FedeEvents don't react to changes in local and global varables, and that's usually a good thing.
To trigger an event programmatically, you should write to a signaling property of the control assigned to the event, and the event will fire (even if the value does not actually change).
Attached is a simple modification of my example that forces a stop of any ongoing measurments every 10 seconds using the above method.
LabVIEW Champion . Do more with less code and in less time .
Attachments:
Prova Loop MenuIII.zip 15 KB -
Hi,
I haver some problems with the time loop structure. I try to get digital pulses of a width down to 50 microseconds! I have a real time OS on an PXI 8176 RT controller. For only one digital channel, this is not a problem, but the more channels I use in the time loop, the worse it gets. Is there any solution? What is the accuracy of time loops?
Thanks
TimHello Tim,
please post an example what you are trying to do. So it is easier to understand your problem.
On the other hand it sounds reasonable:
The more number of channels you try to handle the higher system load you will get ...
Regards,
Thomas.
Message Edited by Tobel on 01-17-2006 04:31 AM -
I am writing a FPGA VI with module cRIO 9104, I need to do a lot of parallel execution of inside a timed loop. In total, I have used 20 pairs of shift registers in the timed loop, which simply means there is 20 parallel exceution across ONE time loop. However, it tells me that there is an over-used of the FPGA resources in the compliation report. One is the Slices and the other is the number 4 of LUTS ( see the attached file), would the compile will be sucessful if I change it to ALL block diagrams cascaded in series without using any shift register accross the timed loop? And do you think that it is reaosnable to have 20 pairs of shift register arranged in parallel inside a timed loop.
Thank you!
Attachments:
afternoon912.jpg 2305 KBYour compilation report has 2 useful numbers to help answer your question, I'll summarize:
Number of Slice Flip Flops = 27%
Number of 4 Input LUT's = 100% *
You are using the Timed Loop Shift registers to pass a value from one iteration of your loop to the next. The LabVIEW FPGA compiler will use Slice Flip Flops to create this behavior in the FPGA fabric. You are only using 27% of the Flip Flops, therefore the 20 Shift Registers are not your problem.
LUT's (Look Up Tables), which are the basic logic building block of an FPGA, are your problem. You are using over 100% of the LUT's in this FPGA. To fit in this FPGA you will have to reduce the amount of logic (and/or gates, additions, comparisons, etc.) in your design.
-RB -
Hi, I would like to ask about how to capture data from real time loop.
Hi,
Here is some overvier of my project:
I have done real time control using labview 9.0. I used PID controller.
In order to optimise this controller, I need to capture data from my sensor(input) and actuator (output).
1. For example while real time control is running. I need to capture 1000 sample data (sensor(input) and actuator (output)).
Then I will used these data for PID optimisation on the other loop without intefere my real time loop.
2. When PID optimisation is completed, I will sent its PID parameter to real time control loop.
3. These operation is done in parallel.
Anybody can help me to solve these. Your idea may solve my problem.
TQTypically you will have to use RT FIFO or Queue communication to avoid any impact to your time critical loop.
Best regards
Christian -
i have a problem in my account every time i want to install application from app Store on my iphone a message shows that my Apple ID has been disabled, i creat a new password and still that message shoes ,what is the problem ?can you help me please???!!!!
If your account is disabled then you might be able to re-enable it via this page : http://appleid.apple.com, then 'reset your password'
You might then need to log out of your account on your phone by tapping on your id in Settings > iTunes & App Store and then log back in so as to 'refresh' the account on it
If that doesn't fix it then you might need to contact iTunes Support : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page -
Problem with DAQmx and Real Time PCI-7041/6040E.
Problem with DAQmx and Real Time PCI-7041/6040E.
I have a problem with the Real Time card PCI-7041/6040E, I think it is properly installed because my software run with the traditional NI-DAQ. When I try to use the new DAQmx to acquire one signal, Labview doesn't see any device for de DAQ card 6040E.
Information, I work on Windows XP and LabView v7.0.0 (NIDAQ RT v7.0.0, NI-Serial RT v2.5.2, NI-VISA v3.0.1 and NI-Watchdog v2.0.0).
Could Labview RT run with new DAQmx ?
What can I do to use DAQmx with PCI-7041/6040E?
Thanks for your help !Hello,
I refer to your posts because i am using the PCI 7041/6040E card as
well but without any success to make it work. The problem I have
already described in the following thread:
http://forums.ni.com/ni/board/message?board.id=170&message.id=120198
Would be nice if you had a look on it, maybe you can help me. BTW, the
thread starts with a problem of someone else, the difficulties I
encountered are to be found a little bit to the bottom of the thread's
page.
Thank you!
Dirk Völlger
Darmstadt
Message Edited by ratschnowski on 07-28-2005 07:14 AM -
I have a MacBook OSX 10.5.8 and a Time Capsule 500GB since July 2008. My problem is (for the 4th time in 4 yrs) the backup gets stuck in "preparing" indefinitely (hours). In the past, wile still under apple care warranty, tech support had me redo backup (loosing previous backups). Now I'm out of warranty and still having this problem. Any help is greatly appreciated.
I have a MacBook OSX 10.5.8 and a Time Capsule 500GB since July 2008. My problem is (for the 4th time in 4 yrs) the backup gets stuck in "preparing" indefinitely (hours). In the past, wile still under apple care warranty, tech support had me redo backup (loosing previous backups). Now I'm out of warranty and still having this problem. Any help is greatly appreciated.
-
I installed LION on my mac pro 2008 and it's alway's pop with " there was a problem connecting to the server " Time Capsule" .How can i remove this popup. My Time machine is working fine and also rename it with less than 7 karakters. But the popup keeps on coming with the old name.
I have a BT Infinity router plugged into the Time Capsule, not sure where the radio settings are?
They are able to use the network settings of the TC i.e. they can connect to the internet via the wifi through the TC but when they try and connect to the AirPort Disk this is where it is not allowing a connection.
I don;t have the drive shared out at all at the moment, is this necessary? How do I do this if so?
I have attached the screen shots of all the settings.
Thanks again for your help. -
The following error pop's up as an [OK] dialogue box after logging in the iMac,
There was a problem connecting to the server "Time Capsule".
The share does not exist on the server. Please check the share name, and then try again."
As it happens, a connection to the Time Capsule is established usually, anyway. On occasion it doesn't.
I have a Volume, Data, on the capsule, which similarly, usually mounts, but occassionally doesn't, with access permissions denied.
Any suggestions on how begin to work out how to achieve networking seamlesness?First, restart the Time Capsule by disconnecting the power adapter and reconnecting it. If other devices on the network can see it, you can skip this step.
From the menu bar, select
▹ System Preferences ▹ Network
Click the lock icon in the lower left corner of the window and authenticate to unlock the settings, if necessary. Click the Advanced button, then select the TCP/IP tab in the sheet that drops down. Click Renew DHCP lease.
Try again to back up.
If you still can't, open the Time Machine preference pane and delete the TC from the list of backup destinations. You may have to unlock the settings by clicking the lock icon in order to do this. Then add it back. -
what is cookies.sqlite and why does it slow the start up of mozilla by a minute or so. I found it and deleted it,fixed the problem, but it reappears every time I restart mozilla.
AVG reports these sqlite cookies each time firefox starts. they usually belong to tribalfusion or some other tracker. How do I block them in the first place. I thought firefox is a safe browser. Did not have this problem until I upgraded to 3.6.
-
Como puedo monitorear un proceso en tiempo real usando una plataforma con LINUX, no importa que esta conectado a via TCP/IP con un equipo con SO windows, que actua como serviddor OPC.
Ing. Jorge MirabalJorge,
Necesitas compar el programa de RT de National Instruments para hacer cualquier cosa en tiempo real o determinatistico como le acostrumbran llamar. La plataforma que uses no imporata. El sistema de desarrollo es el mismo en cualquier plataforma.
Ing. Otman Estrada
PS. Ademas de talves poderte ayadar, conteste tu pregunta porque queria ponerme el titulo de Ingeniero. Aqui en EEUU no se acostrumbra eso no importa cuanta educaccion tienes. Como dicen aqui, pienso que es "cool".
Maybe you are looking for
-
Using Weblogic LDAP JAAS credentials for 3rd party authentication
Hello to all! I'm posting this question because I'm developing a software layer that will connect a weblogic based web application, with LDAP authentication, to a 3rd party application, also with LDAP authentication, and I'm having difficulties in ge
-
How To Make A 3D White Character?
This Is A Example... I Think It Should Be Done In Photoshop, If Not, Moderator Please Move This Thread To The Place It Should Be (Example Illustrator)
-
I enabled smart print this morning. Since then I am not able to send pic via my email to print. I received a message from HP's ePrint service saying printing has been delayed because the printer is turned off or not connected to the internet. I like
-
Sound difficulties with MacBook Air running 10.9
I have a MacBook Air running 10.9 OS X Mavericks, everything was going fine after the update. Except now after my MacBook goes to sleep for a couple of minutes the next time it is turned on sound in both the built-in speakers and headphones doesn't w
-
Okay..........I know I'm new and I know Pentium 4 is not on the supported hardware list for Solaris. However, can someone in Sun tell me what version of Solaris will support this new cpu? I would prefer Solaris on my box rather than another UNIX-base