LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Background loop

Solved!
Go to solution

 Hello all,

 

I have managed to get a nice UIR where I press a button and it will open a com port, send a message, to configure the rs232 device downstream.

 

What I want to happen is to remove the need to initalise this by user interaction.

I want to have it automatically sending a constant message every 10 seconds.

Do I place a loop in the main or is there another parallel function i can run to loop through this comopenconfig, comwr, comrd. 

Regards,

Wes

0 Kudos
Message 1 of 6
(3,303 Views)
Solution
Accepted by topic author WesleyTaylor

I suggest you to examine the timer controls: the timer controls can be configured to fire a callback at regular intervals; inside that callback you can integrate your RS232 stuff. 

I suggest you take the com port opening and closing out of the timer controls, so that no time is wasted in unnecessary operations during the periodic callback.

If you want to see examples of timer control operations you can search for "Timer" in the example finder (Help >> Search Examples... menu function): you'll find several examples to look at to understand how to use timers.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 2 of 6
(3,286 Views)

Hi,

 

Let me tell you my application for  Image capture by Ximea Camera.

 

The background captured should be the moving average of the intensities  and change the value of the next background depending on the intensities of the following images .

 

Let me problem statement in the word doc named camera.docx.

 

I am unable to proceed for a moving array or shift register .

Could you please look my answer. and suggest a solution?

 

Thanks  a Lot

 

Download All
0 Kudos
Message 3 of 6
(2,857 Views)

Hi,

 

Let me tell you my application for  Image capture by Ximea Camera.

 

The background captured should be the moving average of the intensities  and change the value of the next background depending on the intensities of the following images .

 

Let me problem statement in the word doc named camera.docx.

 

I am unable to proceed for a moving array or shift register .

Could you please look my answer. and suggest a solution?

 

Thanks  a Lot

 

0 Kudos
Message 4 of 6
(2,856 Views)

Hi, this question appears to be related to the LabVIEW environment, so please repost it to the proper board.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 5 of 6
(2,834 Views)

I think that all this wrong messages here are due to the habit of Labview programmers to think by images and signs, loosing the ability to read and understand textual information.
This board then should be have icons for reading impaired people. Smiley LOL
Just kidding, but not as much as someone can think. Smiley Wink

Carlo A.
Megaris




0 Kudos
Message 6 of 6
(2,821 Views)