LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XY Graph Messing Up When Opening Other Applications

Hi,

 

For some reason, whenever I open task manager or microsoft word, or any application, my XY Graph glitches momentarily. Does anyone know how to fix this?

0 Kudos
Message 1 of 10
(3,730 Views)
Wow, this happens if i do print screen too.
0 Kudos
Message 2 of 10
(3,720 Views)
What do you mean by "glitches"?
0 Kudos
Message 3 of 10
(3,706 Views)
See attached.
0 Kudos
Message 4 of 10
(3,703 Views)
Seems to me like you're trying to draw the graph using some sort of software timing, and when you launch Word or do something else then Windows decides to preempt your LabVIEW VI. Are you drawing the graph using some sort of software timing?
0 Kudos
Message 5 of 10
(3,700 Views)

Yeah, its generated data, every 10 miliseconds. I'm using the wait until next milisecond multiple VI.

 

This is not happening with the NI generated sine wave, which uses the sample clock. Hmm...

 

The problem is that I'm going to be interacting with a galil card, and even though right now its generating data every 10 miliseconds, wen the card goes in, im going to be sending commands to get analog inputs every 10 seconds and the same problem is going to happen.

0 Kudos
Message 6 of 10
(3,696 Views)

Bilal_J wrote:

Yeah, its generated data, every 10 miliseconds. I'm using the wait until next milisecond multiple VI.


Unfortunately, this is going to be affected by you launching an app like Word.

 


This is not happening with the NI generated sine wave, which uses the sample clock. Hmm...

Are you referring to one of the signal generation VIs? Those actually create a waveform datatype, which has a start time, deltaT and array of values. There's no "real" timing in the sense of a clock. Or, are you referring to something else?

 


The problem is that I'm going to be interacting with a galil card, and even though right now its generating data every 10 miliseconds, wen the card goes in, im going to be sending commands to get analog inputs every 10 seconds and the same problem is going to happen.

What's a galil card?

 

0 Kudos
Message 7 of 10
(3,682 Views)

Galil Motion Control card for controlling multiple axis servos.

 

No by NI data, I mean DAQ MX, but simulated channels.

 

For the Galil Card, I get analog input values by sending commands to the card. Maybe that one is not interfered with applications opening...

0 Kudos
Message 8 of 10
(3,676 Views)

I wouldn't expect this to occur if you will be conducting hardware timed data acquisition.  When doing data generation is being done within software you are at the mercy of your processor which is distributing it's efforts to all the applications running on your computer.  But if your data is coming from another piece you are at the mercy of your Galil card, which does not have to worry about other applications opening.

 

I hope this helps.

Tejinder Gill
National Instruments
Applications Engineer
Visit ni.com/gettingstarted for step-by-step help in setting up your system.
0 Kudos
Message 9 of 10
(3,657 Views)

Bilal_J wrote:

Galil Motion Control card for controlling multiple axis servos.

 

No by NI data, I mean DAQ MX, but simulated channels.

 

For the Galil Card, I get analog input values by sending commands to the card. Maybe that one is not interfered with applications opening...


 

If these blips are a show-stopper, brace yourself.

 

I avoid those issues by starting up a background process to do countinuouse double buffered acquisions so that hardware keeps collecting while Windows is off in la-la-land.

 

If your widget demands software intervention then you will have to move to a real-time platform, a different set of hardware, or maximize your screen and don't let anyone launch any other code while you test is running.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 10 of 10
(3,649 Views)