Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Signal choppy from VISA, except when NI I/O trace running in background

Solved!
Go to solution

Dear Folks,

 

Strange issue, have been trying everything that i Know.. but unable to crack it. 

Simple Serial port data ( from 1 sensor and 1 encoder) - 

RS232- to -USB converter and reading in my program. (LV 8.5)

Works fine in my other computer with windows 10

in my customers system (windows 8), the signal is choppy esp from encoder.'I tried varying all possible parameters but to no avail

I ran NI I/O trace in the background.. an the signal is no more choppy!!

Trying to find out how I can run the app in this system without Trace in the background all the time... 

 

Any help is appreciated.. Atached are the pic of the block diagram and that of the signal, with and without trace..

 

Thanks,

Palch

Download All
0 Kudos
Message 1 of 3
(2,821 Views)
Solution
Accepted by topic author Palch

running IO trace probably just delays your program enough to run without zero time measurements.

try adding a wait ms before reading the time, even a zero ms wait will wait a bit.

greetings from the Netherlands
Message 2 of 3
(2,798 Views)

Thanks albert, it works with delay (20ms).. however it reduces the samples.. i was hoping to get more samples (atleast 100 samples/sec ), maybe its not possible this way..

0 Kudos
Message 3 of 3
(2,784 Views)