# LabView intigration

**URL:** <https://discuss.saleae.com/t/labview-intigration/2633>\
**Category:** Uncategorized\
**Created:** [December 28, 2023, 2:56pm UTC](https://discuss.saleae.com/t/labview-intigration/2633 "2023-12-28T14:56:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Laputa](https://avatars.discourse-cdn.com/v4/letter/l/9f8e36/32.png) [@Laputa](https://discuss.saleae.com/u/Laputa)\
**Post date:** [December 28, 2023, 2:56pm UTC](https://discuss.saleae.com/t/labview-intigration/2633/1 "2023-12-28T14:56:53Z")

</div>

I’m a long time user of both Saleae and NI LabVIEW and am searching for a VI interface between the two.

Any references or code appreciated.

---

<div class="post-metadata">

**Author:** ![BitBob](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.saleae.com/bitbob/32/2292_2.png) [@BitBob](https://discuss.saleae.com/u/BitBob)\
**Post date:** [December 28, 2023, 6:19pm UTC](https://discuss.saleae.com/t/labview-intigration/2633/2 "2023-12-28T18:19:48Z")

</div>

As far as I know, there isn’t any direct/simple support or integration between LabVIEW and Saleae Logic. However, I think there are a few options:

- Use [LabVIEW Python Node](https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/functions/python-node.html) to access the [Saleae Automation features](https://www.saleae.com/automation/), specifically the [Automation Python API](https://saleae.github.io/logic2-automation/automation.html)
- Use [LabVIEW gRPC Support](https://github.com/ni/grpc-labview) to access the [Logic2 gRPC services](https://github.com/saleae/logic2-automation) directly
- Develop a [custom Low-Level Analyzer](https://support.saleae.com/saleae-api-and-sdk/protocol-analyzer-sdk) with [the Analyzer SDK](https://github.com/saleae/AnalyzerSDK) to interact with LabVIEW with ‘live’ data  
(would need to develop your own method to stream the decoded data directly)

Note: here is an old post (Logic 1.x Automation API) that talked about using Socket API to communicate with LabVIEW:

> [@Use socket API with LabVIEW not working](https://discuss.saleae.com/t/use-socket-api-with-labview-not-working/1311):
>
> Hi, It’s my first post in this forum… So nice to meet you all! slight_smile I’m currently working on a project where I will need to measure a duty cycle on 8 channels during more than 100h. So I need to automatize the data recording and I will do this through LabVIEW. So far, I’m able to connect to the server, get the connected devices. But I can’t select an active device (I got no answer, not even a NOK) and get an error (56: Timeout When Communicating Between LabVIEW and Network Devices). …

---

<div class="post-metadata">

**Author:** ![erik](https://avatars.discourse-cdn.com/v4/letter/e/b5ac83/32.png) [@erik](https://discuss.saleae.com/u/erik)\
**Post date:** [January 5, 2024, 7:25pm UTC](https://discuss.saleae.com/t/labview-intigration/2633/3 "2024-01-05T19:25:26Z")

</div>

Hello @Laputa -

Here is a first pass at a LabVIEW driver. It uses LabVIEW \<\> Python \<\> Logic2 Software. It wraps the python commands using the Python Node in LabVIEW. I have several ideas on how to create a cleaner implementation, but this was the easiest way to get something up and running quickly. Logic2-Automation uses gRPC ([https://grpc.io/](https://grpc.io/)) which would be a nice solution in the future cutting out the Python in the middle.

Please give it a shot and let me know if you have suggestions or feedback. I’ve verified it on both PC (Windows 10) and Mac (MacOS 14.2.1 Sonoma) with Logic Pro 16 both real and simulated.

> **[GitHub - saleae/logic2-automation-in-labview: Automated control of Logic2...](https://github.com/saleae/logic2-automation-in-labview/)**
>
> Automated control of Logic2 software from LabVIEW. Contribute to saleae/logic2-automation-in-labview development by creating an account on GitHub.

Regards,  
Erik
