Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Show onboard clock in digital waveform data

Is there a way to show the on board clock signal in the digital waveform data graph that is generated during my session? It would be useful to be able to see it without using an O'scope.

kph
0 Kudos
Message 1 of 4
(3,477 Views)

Hey kph.  There's nothing built into the LV graph to have it display a clock, but you could create such a signal and append it to your data before sending it to the graph.  The trick is that if you have 1000 samples in your data, to properly add a clock that has both a rising and falling edge per sample, you'll need to expand this to 2000 samples.  Thus if a particular data line looked like this without adding the clock:

Data1: 0 0 1 0 1 1 0 0 (8 samples)

it would look like this with the clock:

Clock: 10 10 10 10 10 10 10 10 (16 samples)

Data1: 00 00 11 00 11 11 00 00 (16 samples)

Hope this helps,

Chris

0 Kudos
Message 2 of 4
(3,465 Views)
First, thanks for the info. I found out the trick already by playing around with the vi's. You bring up an interesting question though. If I want to use a numeric control to send data in hex how can I translate that into the sample rate you suggest without having to jump through hoops? When i use the clock the translation is easy, but when the samples increase I need a way to convert from hex (FFFF) to digits (1111111111111111) I have attached an example. If I create a third signal for my clock then converting will be difficult.

kph
0 Kudos
Message 3 of 4
(3,462 Views)
Okay, it wasn't as difficult as I imagined. It wasn't intuitive either, but that's LabVIEW.Smiley Tongue

kph

0 Kudos
Message 4 of 4
(3,452 Views)