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

LabVIEW 2025 Download issues

$
0
0

I cannot download the LabVIEW 2025 (32 or 64 bit) offline installer WITHOUT the drivers included... the to exclude them is just simply not available.  I have an active license, and this is not an issue with the other versions of LabVIEW.  I don't do much work with hardware, so have no need of the drivers (and the 10x size jump in installation media).

 

I know a patch was released in the past few days, so maybe this is related to that, but I at least wanted to make sure this issue was known.

 

jyoung8711_0-1739286376883.png

 

 

 


How do you join more than 2 numbers? Such as, three U16's where there's a High, Mid, and Low?

$
0
0

Subject says it all really. I'd like Join Numbers to be scalable, but it isn't. So, What's the easiest way to do this?

Error 1671 when returning data from python

$
0
0

Greetings,

 

I followed this guide here:

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000oyaHCAQ&l=en-US

 

And I was attempting to send a few parameters to python from Labview, run a query using pyodbc, and then return the results into an array.

Here is my Labview program:

2025-02-11 13_11_07-DB - CAEN DGTZ Profile - Read for Viewer.vi Front Panel _.png

 

As the guide shows I created a cluster of my datatytpes and put them into a 1D array. 

 

I tried to remove the strings and just do simple integer returns, but that yields the same error. I'm not sure why Labview seems to be erroring for no reason on this data return. Any advice or critique would be greatly appreciated.

 

Here is what I am returning from Python, it is a list of tuples similar to the guide above:

[('default', 4128, 'Record Length Ch 1', 128, 'samples', 'RW', 'init', 'Initial entry'), ('default', 4136, 'Input Dynamic Range Ch 1', 0, 'Vpp', 'RW', 'init', 'Initial entry'), ('default', 4384, 'Record Length Ch 2', 128, 'samples', 'RW', 'init', 'Initial entry'), ('default', 4392, 'Input Dynamic Range Ch 2', 0, 'Vpp', 'RW', 'init', 'Initial entry'), ('default', 4640, 'Record Length Ch 3', 128, 'samples', 'RW', 'init', 'Initial entry'), ('default', 4648, 'Input Dynamic Range Ch 3', 0, 'Vpp', 'RW', 'init', 'Initial entry'), ('default', 4896, 'Record Length Ch 4', 128, 'samples', 'RW', 'init', 'Initial entry'), ('default', 4904, 'Input Dynamic Range Ch 4', 0, 'Vpp', 'RW', 'init', 'Initial entry'), ('default', 5152, 'Record Length Ch 5', 128, 'samples', 'RW', 'init', 'Initial entry'), ('default', 5160, 'Input Dynamic Range Ch 5', 0, 'Vpp', 'RW', 'init', 'Initial entry'), ('default', 5408, 'Record Length Ch 6', 128, 'samples', 'RW', 'init', 'Initial entry'), ('default', 5416, 'Input Dynamic Range Ch 6', 0, 'Vpp', 'RW', 'init', 'Initial entry'), ('default', 5664, 'Record Length Ch 7', 128, 'samples', 'RW', 'init', 'Initial entry'), ('default', 5672, 'Input Dynamic Range Ch 7', 0, 'Vpp', 'RW', 'init', 'Initial entry'), ('default', 5920, 'Record Length Ch 8', 128, 'samples', 'RW', 'init', 'Initial entry'), ('default', 5928, 'Input Dynamic Range Ch 8', 0, 'Vpp', 'RW', 'init', 'Initial entry')]


Here is a snippet of my Python:

#This is the main script of the GPAS database connectivity

#import modules
importpyodbc
fromdatetimeimportdatetime

#set the connection info
conn_str="DSN=GPAS"

#connect to database and create cursor
cnxn=pyodbc.connect(conn_str)
crsr=cnxn.cursor()

####################################################################################################################
####################################################################################################################
 
defCAEN_DT5730_read_profile(Profile_Name, Mode, Group_Name😞


    #build the query
    query="""
            WITH RankedEntries AS (
                SELECT
                    *,
                    ROW_NUMBER() OVER (
                        PARTITION BY Register_Address
                        ORDER BY Timestamp DESC
                    ) AS RowNum
                FROM
                    GP_CAEN_DT5730_Profile
                WHERE
                    Profile_Name LIKE ?
                    AND Mode LIKE ?
                    AND Group_Name LIKE ?
            )
            SELECT
                Profile_Name,
                Register_Address,
                Register_Name,
                Register_Value,
                Units,
                Mode,
                Group_Name,
                Change_Log
            FROM
                RankedEntries
            WHERE
                RowNum = 1
        """
   
    #execute the query
    try:
        crsr.execute(query, Profile_Name, Mode, Group_Name)
    exceptExceptionase:
        print(f"Error executing query: {e}")
        return []
   
    # Fetch all
    returncrsr.fetchall()

Sub VI failed to return Output

$
0
0

My main vi is calling multiple sub-vis but doesn't seem to be able to access their outputs. I have used highlight execution to track the flow and the subvi seems to be providing the visa resource name out and pump error out to the main vi, but I'm not seeing that actually happen there. 

I previously had the multiple subvis in a flat sequence, but it would never go past the first case, so I replaced that with a case structure based on a simple boolean from the subvi, but it still doesn't get triggered. What am I doing wrong? Am I missing a loop somewhere? Is it something in the VI properties? Because I've tried switching between clone reentrant execution and non-reentrant execution and it didn't seem to make a difference.

Inverse Chirp-Z bug or How to Use??

$
0
0

Trying to use the Inverse Chirp-Z transform. I have incomplete frequency domain data and would like to transform it into the time domain. But the help and output of the function does not make sense. Years ago, there was this thread

 

The same problem seems to exist today. The Help for the function gives this diagram (picture only not a VI):

mcduff_0-1739301846371.png

 

The example for the Chirp-Z transform works perfectly, it gives the frequency domain over a limited range. (Example attached here). However, if you try to inverse the transformation according to diagram above, you get nothing. If you reduce the number of bins to the Inverse Chirp Z Transform input then you get an answer, but it is non-sensical as the values are exceedingly large as seen in the previous thread. (Note I added the diagram above to the example, it's not there in the original.)

 

Anybody have an idea about how this works or if this is a bug?

 

Thanks

DAQ read freezing

$
0
0

Hello,

I've been using a producer/consumer loop for the past three years without issues. This month, I increased my sampling rate from 100 Hz to 1500 Hz and encountered a problem with my VI. My DAQmx task is set to continuous nChan nSample.

 

I run biofeedback experiments, meaning participants see real-time data on a monitor. The issue arises when I read 30 samples at a time from the DAQ buffer (equivalent to a 50 Hz display rate). I experience random freezes lasting over 2 seconds. However, I don’t lose data since the DAQ continues recording into the buffer, which I’ve sized at 15,000 samples. But a 2-second freeze is far from ideal for biofeedback.

After extensive testing, I found that the DAQmx Read VI is responsible for the freeze—it’s not caused by other parts of my code. When I isolated the issue, everything pointed to the DAQmx Read VI itself.

 

Interestingly, when I set the read parameter to "Read all available data" (-1) or use the AvailSampPerChan property, everything runs smoothly. The only drawback is that my producer loop starts running at 3000 Hz, likely because when there’s nothing to read, the iteration continues instead of waiting. While this works, it doesn’t seem like the most efficient solution.

 

I was previously advised against using AvailSampPerChan, though I don’t recall why.

While I’m glad that the -1 input resolves the issue, I don’t understand why specifying a fixed sample size causes these freezes. It feels as if my DAQ’s internal clock is malfunctioning.

 

Any suggestions on what could be causing these freezes?

Thanks!

Memory Growth Issues in LabVIEW

$
0
0

I am encountering a memory growth issue while running my LabVIEW program. As the program executes, the memory usage (as monitored by task manager) keeps increasing until the program eventually crashes.

Program Overview:

  1. Move the motorized stage to a specific position.
  2. Measure data (100 averages).
  3. Plot each point
  4. Repeat the measurement for scanning across different X positions.

Troubleshooting Attempts:

  • Initializing shift register data before each loop iteration.
  • Closing the motor connection after each movement.
  • However, none of these effectively resolved the issue.

I have attached an image showing the main parts of my program.

If anyone has insights or suggestions on how to efficiently manage memory, I would greatly appreciate your advice.

 

 

 

salsberry_3-1739331090200.png

 

salsberry_1-1739331017422.png

salsberry_2-1739331033905.png

salsberry_4-1739331105184.png

 

 

Issue with installing LV runtime engine OR LV suite on LINX

$
0
0

Hey folks,

Has anyone ever had issues downloading the LabVIEW runtime engine or dev suite onto their linux machine? seems like all the packages are installed correctly but cannot run a labview EXE generated from another linux machine when I go to test it.

Cheers


dscProc.dll load error

$
0
0

Hello! I'm having trouble with a project.

An error occurred when starting a project that includes Create process.vi of NI_DSC.lvlib on the server.

The message is "C\Program Files (x86)\....dscProc.dll loading error.DLL initialization routine failed."

 

Both servers with the same specifications have the same symptoms.

The DSC module is installed and I ran it with 32bit LabVIEW.

It's the same even if I run it with the administrator privilege option.

 

Server information
Windows version: Windows Server 2019 Standard

 

System
Maker: Stratus Technologies
model: ftserver 2910 Rls 13.2.3812.0

 

LabVIEW
LabVIEW 2021 32bit

I'll wait for your help.

 

캡처2.PNG

NI 9862 External Power Supply

$
0
0

Hi everyone,

I'm quite new to working with National Instruments (NI) modules and I'm currently stuck on the first step of setting up the NI 9862 for a registration task. The instructions mention that the NI 9862 requires an external power supply, and I'm wondering if this means that the power supply from the cDAQ-9174 chassis is not enough.

Has anyone here used the NI 9862 with the cDAQ-9174 chassis? How do I connect the external power supply to the NI 9862 module? Do I need to power the module separately, or will the cDAQ-9174 provide enough power once everything is connected?

I’d appreciate any guidance or tips!

Thanks in advance!

y axis not following property node?

$
0
0

shuttlefan_0-1739356234412.png

The secondary y-axis seems to not following the property node. 

I want the secondary Y axis to be in increments of 6.  Despite explicit definition, it defaults to 5 for some.

what am I doing wrong?

 

Thanks!

Using Refprop to calculate a refrigerant state

$
0
0

Hi,

I would like to know how can I calculate a refrigerant state (e.g. subcooled or superheated)  using Refprop in labview? 

Thanks

 

Alhabeeb

Time on X axes (Multiple pressure sensors)

$
0
0

Hi everyone,

I can not get time in X axes. X axes maximum show always same number with 'samples to read'

 

I asked chat gpt and read old forums in ni communty. Based on that I have added an empty array to chart history node of waveform chart and added "build waveform". But this did not worked. 

 

I just want to see time in x axes, which should run as normal seconds. I changed chart history to 30 because I just need to see what happened in last 30 seconds. 

Also I am not sure about all the sample rate, sample to read, there is also sample per channel in timing vi,  and number of samples per channel in read vi. I just need 2 sample in a second to see in write to measurement file later. 

Run a LabVIEW 2016 application in a PC with LabVIEW 2017

$
0
0

Hi,

 

I have an application that I created using LabVIEW 2016 and I gave it to a colleague in a foreign country. Initially I thought that colleague didnt have labview installed so I asked that person to install the 2016 runtime and the latest VISA driver. Then I found out she already had LabVIEW 2017 in her PC and this looks like is causing a problem because she already installed the 2016 runtime that I sent her. So her PC has LabVIEW 2017, LabVIEW 2016 runtime and the application I send her and when she tried to open the application it is saying cannot find LabVIEW 2016 runtime. What could be the reason for the issue and how can I solve this. Do we need to install runtime since there is LabVIEW already installed even though it is a higher version than the application? Kindly let me know. Thank you.   

Standard practice for LabVIEW documentation

$
0
0

Hello Everyone!

 

I am implementing LabVIEW Codes for automation testing of a product. Can you help me with the best practice to document the implemented code, if any new engineer wants to understand.

 

Waiting for your reply 🙂


How to stream data to LabView

$
0
0

Hi, I'm a newbie with Labview.

One of my friends wants to use NI LabVIEW DAQ for data acquisition and analysis.

He is asking me to send data (.NET development) to Labview.

 

In the past I have used the LSL protocol (open-source networked middleware ecosystem to stream) to send my data. Is this supported?

If not, what is the best way to send my data to LabView?

I found this article (DirectShow .NET LabVIEW SDK (Video, Audio, IP streams) - NI Community) but it seems pretty old

 

Thank you for your advices

 

Guda

Labview Runtime 2025 Q1

Check if 1d / 2d array has empty data which is written in delimited spreadsheet

$
0
0

Hi all,

I have a labview vi for an automated test. The last part of it stores the result of each part of the test in an excel spreadsheet. Throughout the vi, I am adding the results (field name and result value) in a 1d array and then sorting it into 2d array with multiple rows and 2 columns in the vi shown below.

 

With least number of changes, I want to be able to add a feature wherein I can check if the result for any field name is empty or not. For example if the field name is software. Check the column to the right and if the cell is empty then flag it as a fail in the consecutive case structure.

 

I have added features wherein I am checking for number of rows and columns to make sure no cell is empty. I want to make this feature more robust wherein I am able to check each row and see if the column next to it which contains the result is empty or not. 

 

I want to add this feature in the first part of the horizontal frame so that if I catch for an empty cell, I will be able to store the result document in the fail folder.

 

Satvikpai_0-1739374647307.png

Thank you for your reply.

 

 

I'm using Labview 2019 myRIO and I'm trying to create a txt file

$
0
0

The program works on Labview however as soon as I connect the MyRIO it stops creating the file. I think it has something to do with the file paths. Anyone knows how to fix this problem?

Create and open type def in one step

$
0
0

I am always making typedefs. They're super helpful and make my code much easier to modify. However! I must right click and select Make Typedef, Then right click again to open the type def and save it. This is annoying. Under what circumstance would I create and then not also open and save a typedef? My preferred behavior would be that when I create a typedef, the control is immediately opened for modification and saving. In fact, the prompt to save might pop up automatically as well.

 

Maybe someone has create a quickdrop shortcut for this.... 

Viewing all 66732 articles
Browse latest View live


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