LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Timing is off

Solved!
Go to solution

I am certain there is a simple solution but I haven't written a VI in several years. Attached is a snippet of code that calls on a sensor connected via 485. I am struggling to control the frequency of measurement. I would like to be able to tell it to read data 10 ms, 100 ms, or 1000 ms, etc. but at the moment I can't seem to control it. Any thoughts?

Thank you.

0 Kudos
Message 1 of 5
(2,538 Views)
Solution
Accepted by topic author Geologian

It looks like you are reading from 2 separate channels? The "Wait (ms)" you are using has the effect

Start For Loop

Wait X ms

Read Channel 1

Wait X ms

Read Channel 2

Exit For Loop

0 Kudos
Message 2 of 5
(2,535 Views)

Can you dumb that down for me? I don't know how to break the 2 channels into separate reads as you describe. Thanks.

0 Kudos
Message 3 of 5
(2,522 Views)

I think you already are doing 2 reads by using the For loop

0 Kudos
Message 4 of 5
(2,513 Views)

I was totally overthinking this. Thanks.

0 Kudos
Message 5 of 5
(2,462 Views)