Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 67231

Darren's Occasional Nugget 02/23/2018

$
0
0

There is a little-known feature in LabVIEW 2016 and later called Data-agnostic Smart Probes. These are probes you can place on wires in LabVIEW that don't actually care about the value being passed through the wire, so much as they care that data has passed through the wire.

 

LabVIEW does not currently ship with any Data-agnostic Smart Probes, but you can create one relatively easily. Follow the procedure for creating a new smart probe, then simply delete the control that was created within the probe VI matching the wire data type. You now have a Data-agnostic Smart Probe!

 

I've attached an example 'Timing Probe' to this post (saved in LabVIEW 2016) that illustrates the power of Data-agnostic Smart Probes. See the following diagram:

timing_probe_1.png

I have created a Timing probe on each of those wires with different data types (normally, you can only probe a wire with a probe that matches the wire data type). But in this case, each wire has a timing probe, and in the Probe Watch Window, you can see the time difference between when data flowed through each wire. Note that each instance of the Timing probe allows you to specify a unique 't start' to calculate the delta t between execution of any other Timing probe and the current probe.

 

A few caveats about using Data-agnostic Smart Probes:

1. You have no access to the data that flowed through the wire being probed. You only know that when the probe executes, it's because data has flowed through the wire being probed.

2. If your Data-agnostic Smart Probe panel has an XControl on it (as the Timing Probe does), your probe will not work on LabVIEW RT.

 

To try out the Timing Probe attached to this post, unzip the contents of the attached zip file to your [LabVIEW Data]\Probes folder or your [LabVIEW 20xx]\vi.lib\_probes folder.

 

I look forward to seeing more scenarios for which the LabVIEW community can utilize Data-agnostic Smart Probes.


Viewing all articles
Browse latest Browse all 67231

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>