Quantcast
Channel: LabVIEW topics
Viewing all 66739 articles
Browse latest View live

RT Linux executable wont run/ file permissions

$
0
0

I am having an issue where whenever I choose "run as startup" and reboot on a rt target but the executable doesnt seem to run. 

 

I have no problem running as source. And I have an old executable that I can copy onto the rt target and this works fine as well but I cant deploy anything new.

 

I use git so I can see there is no difference between the project or start up vi or ANY vi or ctl or lvlibp or anything in the project from now and the old executable. However I noticed the diff of the new executable created its different than the old one. 

 

I also noticed that every time I try to redeploy the file permissions change on the rt target for the executable .. I am not sure if this is related.

 

It feels like the rt is rejecting my new build. Has anyone experienced anything like this? I was constantly building and deploying and running start up exe for weeks and it always worked but after one day it just stopped working. 


Announcing LabVIEW 2025 Q1!

$
0
0

LabVIEW 2025 Q1 was released on January 23rd and is available for download!

 

DPrida_0-1739419010402.png

 

We’re excited to announce the release of LabVIEW 2025 Q1, which comes with exciting new features that improve interoperability and collaboration.

 

  • Support for .NET 8.0
  • Support for Python 3.11 and 3.12
  • Changes to Compare VIs and other LabVIEW Files – adds HTML format for comparison reports
  • New Row Options – Added options for word warp and alternating colors

 

NoteLabVIEW 2025 Q1 Patch 1 is available for download on ni.com or NI Package Manager. Find more information below.

 


 

LabVIEW 2025 Q1 Features and Changes Section in the Manual:

.NET (Core) 8.0 Support

LabVIEW 2025 Q1 supports loading and running .NET 8.0 assemblies on Windows. The following features are also supported with .NET 8:
  • Building applications, packed libraries, and source distributions.
  • Defining and using static properties and methods.

 

DPrida_4-1739419766356.png

 

Note The .NET Container, registering VIs for event callbacks, and building .NET assemblies, are not yet supported with .NET 8.

Python Support

LabVIEW 2025 Q1 supports Python 3.11 and 3.12.
Note: LabVIEW 2025 will continue to support Python 3.9 and 3.10.

Changes to Compare VIs and Other LabVIEW Files

LabVIEW 2025 Q1 adds the HTML format for VI comparison reports. These reports include:
  • Annotated images of differences, including different colors for additions, modifications, and removals.
  • Images of changed VI icons and connector panes.
  • Collapsible sections to help focus on the remaining differences during reviews.

Interactive comparison of VIs also has new annotations and buttons to copy images of differences to the clipboard. You can easily use these features in change comments, such as in Pull Requests with Git.

Project, library, and class files now contain better property labels and less redundant information. It makes it easier for you to review changes using third-party tools for text files.

 

 

DPrida_2-1739419727361.png

New Row Options for Listbox, Multicolumn Listbox, Table, and Tree Controls
LabVIEW 2025 Q1 adds the following new options to listbox, multicolumn listbox, table, and tree controls:

  • Added Word Wrap option. This option causes text in a cell to display in multiple lines if the column is not wide enough to display the complete text. This option will work best when used in combination with Autosize Row Height.
  • Added alternating row background color option. This option makes it easier to associate text with the correct row, especially when the control is not showing horizontal lines. In high contrast themes, this feature is disabled when using system colors for both the text and the background color.

 

DPrida_5-1739419778438.png

 

New Properties, Methods, and Events

LabVIEW 2025 Q1 includes the following new properties, methods, and events:
  • The Project and Library classes include the following new property:
    • Save Version (read only) — Returns the save version of the project or library.
  • The Project class includes the following new method:
    • Set Project Save Version — Sets the save version of the project. Version is specified as a short form LabVIEW version string, such as 24.0 representing LabVIEW 2024 Q1. The oldest supported version is 17.0. This method will load all project items. The items will prompt to be saved on close if not already saved in a compatible version.
  • The Library class includes the following new method:
    • Set Library Save Version — Sets the save version of the library. Version is specified as a short form LabVIEW version string, such as 24.0 representing LabVIEW 2024 Q1. The oldest supported version is 17.0. This method will load all library and class items. The items will prompt to be saved on close if not already saved in a compatible version.
  • The Listbox, Multicolumn Listbox, Table, and Tree classes include the following new properties:
    • Word Wrap — Determines whether the height of a row is based on explicit lines or wrapped text.
    • Alternating Row Colors — Row background colors alternate to make row size and boundaries more obvious.
    • Alternate Row Background Color — Background color used to draw alternate rows.

You can download LabVIEW, here, today!

 

NoteLabVIEW 2025 Q1 Patch 1 is available for download on ni.com or NI Package Manager.

You can find more information on the LabVIEW 2025 Q1 Bug Fixes page.

And for assistance with installing patches, learn more in this KnowledgeBase article: Identifying and Installing Patches.

Here's a link, too: LabVIEW 2025 Q1 Patch 1 download

 

 

ADCMT 6241 LabVIEW Example - Error When Running VI

$
0
0
Hello everyone,

I am trying to control an ADCMT 6241 precision source meter using LabVIEW, and I encountered an issue when running the example VI provided by ADCMT.

System Setup:
ADCMT 6241 connected via USB
LabVIEW (2017 32-bit)
ADCMT 6241 official LabVIEW driver and example VI
Problem:
When I run the example VI, I receive the following error:
(Poly VI 'Read.vi':SubVI is missing)

Has anyone encountered a similar issue with ADCMT 6241 and LabVIEW?
Any suggestions on debugging or modifying the VI to fix this error would be greatly appreciated!

Thanks in advance! 
 

 

 

Pause Timer until User Confirmation in SubVI

$
0
0

Hello LabVIEW Community,

 

I have a SubVI that processes an array with three columns: Temperature, Time, and a Boolean signal (1 or 0). Each set of 10 rows represents a recipe step, where each step should last for the number of minutes specified in the Time column. This part is working as expected.

 

Now, I need to modify the SubVI such that when transitioning from one step to another, the system must wait for user confirmation via a button before proceeding. The problem I am encountering is that the timer continues running while waiting for the user's confirmation, and I want the timer to pause until the user presses the button to confirm. Once the user confirms, the timer should resume and continue counting.

 

How can I modify my SubVI to pause the timer and resume it after the user confirmation?

In addition, I would like to ask for suggestions on what kind of pop-up or notification could be used for this confirmation. What is the best way to implement this kind of user interaction in LabVIEW?

Any help or suggestions would be greatly appreciated!

Thank you in advance!

How to display additional information next to video without overlaying it when saving to AVI in LabVIEW

$
0
0

Hello everyone,

I am currently working on a LabVIEW project where I am capturing video from a camera and saving it as an AVI file using IMAQ AVI Write.vi. The issue I am encountering is that I would like to display some additional information (such as text or images) next to the video while it is being captured and recorded, without overlaying this information onto the video itself.

 

My current setup captures the video and successfully overlays text onto the image using IMAQ Overlay Text / 

Снимок экрана 2025-02-13 110919.png

However, I need to find a way to display information next to the video — not on top of it — and still record the video as it is, while keeping the text or other elements visible on the LabVIEW front panel.

 

 

(I was testing the number 100 to roughly figure out how it works)

 

This is what should be shown on the saved video file. The image and how any parameters changed during recording

Снимок экрана 2025-02-13 111831.png

 

 

Issue Importing EtherCAT XML Profiles in LabVIEW 2024

$
0
0

Hi everyone,

I recently upgraded my LabVIEW project from LabVIEW 2017 to LabVIEW 2024 due to a Windows update. The PC is connected to a cRIO-9030, which is linked to an EtherCAT device with multiple inputs.

In the LabVIEW Project Explorer, I can detect the EtherCAT device, but not all of its sub-items. When I try to deploy the EtherCAT configuration, I get an error stating that I need to import the profiles via the *XML configuration of the MFCs.

However, when I attempt to import the XML profile, I receive the following error:

"NI-Industrial Communications for EtherCAT: The software cannot import the device profile."

I've checked the Industrial Communications for EtherCAT help documentation, but haven’t found a solution.

In addition, I can successfully deploy some sub-devices that do not require an XML configuration, so I don’t believe this is a connection or device detection issue.

Has anyone encountered this issue before or found a workaround? Any help would be greatly appreciated!

Modulable timeout in event structure

$
0
0

Hello everybody , I would like to add a timeout to an events/messages handling loops system, but I want to change the timeout value as a function of the event case. Moreover  the events I have to deal with are of different types (strings, booleans, numerical values).
Many thanks in advance for your help!

Python node - Instrument connection object in LabVIEW?

$
0
0

I'm guessing the answer to my question is "No", but I figured I'd ask it here in the hope that someone with more experience has a different answer.

 

I'm using the LabVIEW Python node to call functions that communicate (control and data) with an instrument. The Python SDK is supplied by the vendor.

 

As is typically done, the Python SDK has a method which instantiates an instrument object and uses the instance to open a connection. This instance can be returned from the method to be used by other methods, thereby using the same open connection. 

 

lynx = DeviceFactory.createInstance(DeviceFactory.DeviceInterface.IDevice) ... ... return lynx

 

But in the case of the LabVIEW Python node, I don't think I can use the returned instrument object in LabVIEW, since the Python node expects me to specify a return type, and I don't see what standard LabVIEW type I can use for a random instrument object. 

 

 


Creation of a RT VI, application and installer with a cRIO9055

$
0
0

Hi! I want to create an RT VI with a cRIO9055. The program is simple; it just generates a sine wave with an NI9264 (AO) module and reads this wave using an NI9205 (AI) module. This is just to understand how everything works. The issue is that I need to run this application on a computer that does not have the LabVIEW environment installed, and therefore, I understand that I should create an application with its respective installer.

The normal VI is made and relatively also with the global variables, but I am having some problems when generating an application and its corresponding installer.

The first problem and thing I don't understand is how do I make the RIO recognized on the new device? I tried to include a "RIO device" selector, but when I run the application, it gives me the message "the RIO server could not be found on the specified remote system," and I can't use the application.

The second problem/question is: How do I make my AO module (NI9264) controllable from the global variables? The input module is easily recognized, but I can't get the output module to be recognized.

Finally... I am most likely generating both the application and the VI and the installer incorrectly and simply don't know how to proceed. If you could help me with at least one of the questions, I would be grateful.

NI-USB-6009

$
0
0

I am trying to use NI-USB-6009 new part I ordered and it's not working. when I connect it to my laptop, I got the attached message. I can't even see the device in NI MAX. what would be the issue please if someone can help with that?! Capture.JPG

Offline Activation Code Issues

$
0
0

Hello,

 

I have a LabVIEW Professional Development System Debug Deploy license on a computer disconnected from the internet, running LabVIEW 2024 Q1 (32-bit). I now need the 64-bit version of the software, but only the 2025 Q1 version is available for offline download. I loaded the 2025 Q1 version, but when generating the offline activation code here, the versions listed for "LabVIEW Professional Development System Debug Deploy" only go up to 2024 Q1. So I can't generate an authorization code for my 2025 Q1 offline installation, and I can't download the offline installation of 2024 Q1 which I would be able to activate. 

 

Does anyone know how I could access an offline installation of 2024 Q1 (64-bit), or do you know if there is another way to successfully activate the offline installation of 2025 Q1 (64-bit)? Much appreciated. 

Upgrade a legacy DAQ

$
0
0

Hello,

 

I'm upgrading a system that is using a NI cDAQ-9172 with NI 9211 and 9213 modules.

 

From what I can tell, the modules will work with the latest LabView, but the chassis will not.  Is there an updated chassis that will work with the older modules?  Thanks in advance.

Writing Multiple Variables Being Monitored in Labview

$
0
0

Hello, 

 

I am very new to using Labview and am needing assistance with writing mutliple variables to a Measurement file. I am attempting to monitor 6 voltage channels, 3 temperature channels, and  5 current (voltage) channels. I am attaching my block diagram (with the errors) and the file it writes. I am trying to get all values on the same spreadsheet with a time stamp.Currently I am receiving multiple untitled spreadsheets with instantaneous snapshots of my data.  Any assistance is welcome. Thanks so much!

External Calibration date change

$
0
0

Hello all,

 

I would like to change external calibration date of my Pxie-4081. When i initialize the NI dmm session, i get invalid identifier.

How can i find the correct identifier name in NI max?

 

Regards

Osman Ç.

[Bug] VI methods "Create from Data Type / Reference" clear undo history

$
0
0

Hi fellow VI scripters,

 

I noticed VI methods "Create from Data Type" and "Create from Reference" clear the undo history of the target VI. As a consequence, even if the action is wrapped in an undo transaction, it can't be undone:

raphschru_2-1739530184239.png

This is not a major concern however, as a workaround is to call the method in a temporary VI / Control instead, then copy the control / constant to the target VI:

raphschru_3-1739530244237.png

raphschru_4-1739530271094.png

 

This is quite silly since it adds unnecessary steps, and I see no reason why a direct call on the target VI couldn't be undone...

I wanted to share it here because it can be critical to maintain the undo history when implementing plugins such as right-click menus, and also in a hope that NI fixes it one day...

 

Attached is a benchmark demonstrating the "undoability" of the different methods. Here are the results:

 

raphschru_5-1739531106012.png

 

Regards,

Raphaël.


How to handle low sample rate from NI-9213 not bottleneck my other tasks

$
0
0

Hi, everyone,

 

I'm new to LabVIEW and working on a project where I need to control parameters via serial communication based on thermocouple measurements. I'm using an NI 9213 module, which acquires data at 75 S/s, causing my main loop to take around 220 ms per iteration. However, I also have tasks that need to run much faster.

I've read about the producer-consumer architecture, but since I plan to expand the project with features like MQTT communication and reading parameters from a CSV file, I’m unsure if it’s the best approach in the long run.

What would be a good strategy to handle thermocouple measurements efficiently without creating a bottleneck for the rest of the system? Any suggestions would be greatly appreciated!

 

Thanks!

Modbus master does not read holding register

$
0
0

Hello everyone.
I created a simple VI with Modbus master and slave that write and read holding registers. Unfortunately I cannot read the values ​​written (in the same vi) with the slave with the master.
Any suggestions?
Thank you

A

Recording Strain data in LabView

$
0
0

I have an NI-9237 with a 9945 and am trying to record data from a 120 Ohm strain gage in LabView. I have the strain gage mounted on an aluminum beam and soldered to wires to connect it to channels 0 1 and 2 on the 9945. The 9945 is connected by RJ-50 to the 9237 which is plugged into a chassis and connected to the computer by USB (and is plugged into the wall outlet, of course). 

 

I think my issue is in LabView trying to set up the DAQ assistant. In the block diagram I have the DAQ assistant wired to a waveform plot, but when I run the program it just displays a constant value no matter any strain I put on the beam.

 

When I try to calibrate the DAQ assistant I get error message -201398 saying that my AI.Max value is 1.0e-3 when it needs to be less than 37.49e-6. I'm not sure what any of that means

EtherCAT xml profile not imported

$
0
0

I recently upgraded my LabVIEW project from LabVIEW 2017 to LabVIEW 2024 due to a Windows update. The PC is connected to a cRIO-9030, which is linked to an EtherCAT device with multiple inputs.

In the LabVIEW Project Explorer, I can detect the EtherCAT device, but not all of its sub-items. When I try to deploy the EtherCAT configuration, I get an error stating that I need to import the profiles via the *XML configuration of the MFCs.

However, when I attempt to import the XML profile, I receive the following error:

"NI-Industrial Communications for EtherCAT: The software cannot import the device profile."

I've checked the Industrial Communications for EtherCAT help documentation, but haven’t found a solution.

In addition, I can successfully deploy some sub-devices that do not require an XML configuration, so I don’t believe this is a connection or device detection issue.

Has anyone encountered this issue before or found a workaround? Any help would be greatly appreciated!

Is it possible to remove elements of a cluster like removing/deleting rows/columns of a 2D array?

$
0
0

I have a single array of cluster.  I want to write the single array of cluster to file (maybe some of you remember this from last week).  But it's possible I don't want all the data in the cluster written to file.  But I also want to maintain the datatypes.  Is the following madness?  Deleting elements of a cluster?  Do clusters just not work that way?

Viewing all 66739 articles
Browse latest View live


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