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

Share Your Input: The Next LabVIEW Feature to Go Open Source

$
0
0

Now that our GitHub repositories for the Icon editor and Actor Framework are live, we’re excited to move forward with our next phase of open-sourcing additional LabVIEW features. We’d love your input on what you’d like to see open-sourced next. Please leave a comment with your suggestions—your feedback will help us prioritize and determine which features to release based on community demand. Thank you for helping us shape the future of LabVIEW!


Adding measurement for 2nd power sensor

$
0
0

Hello,

 

I have an manufacturer VI for measuring power on the Boonton 4000 series power sensor.  The VI is set up to find the resources connected (via USB) and then select the 1st one in the returned array and then initiate a measurement and to read the measurement and close.  I am having trouble adding the 2nd sensor, one for forward power and one for the reverse power.  It seems to me that I would take the same structure and just apply the same process to the index from the find resources node.  It is detecting and showing both of the power sensors, but only one is returning values.  My guess is that these two processes are stepping on each other somewhere.  Do I need to bundle these together and then unbundle them after the read function?  What is the strategy for running the same acquisition on both power sensors simultaneously?

 

I have attached the sample VI for reference.

 

Thanks!

Multiple ai/starttrigger events triggered by multiple analog inputs

$
0
0

I am programming with LabVIEW to read signals from a detector using 3 analog inputs. One of the channels is used as the ai/starttrigger, and when a signal above a certain threshold is detected, a pulse is generated using the counter output. However, when only one analog input is used, the counter output generates a single pulse as expected. But when two or more analog inputs are used, multiple pulses are generated. I suspect that other analog input channels are influencing the output. Could you give me a hint on how to resolve this issue?

This code is a test version where a sine wave is generated using an analog output and fed into the analog input, serving as a kind of the detector.

Hello everyone, I have a problem with the following picture. Please show me where I can navigate the block I highlighted with black color. Thanks

Display image from congex insight camera

$
0
0

Hello,

I used the native commands and was able to retrieve the data. However, I am
struggling with retrieving the image and the filmstrip and displaying them in LabVIEW. This part I couldn't figure out yet.

If you could help me with this, I would be grateful.

How to Measure Change Detection Frequency in LabVIEW

$
0
0

Hello NI Community,

I am working on a LabVIEW program using a NI PCI-6224 DAQ to detect digital input changes. My current setup:

  • Digital Input Lines:port0/line0:15
  • Change Detection Line:port0/line29 (configured for rising edge detection)
  • DAQmx Timing: Configured for Change Detection
  • Data Visualization: 3D Scatter Plot

Now, I need to measure the frequency of change detection events (i.e., count the number of rising edges per second).

Current Implementation:

  • DAQmx Create Channel (Digital Input) to read port0/line0:15.
  • DAQmx Timing (Change Detection) to trigger on rising edges.
  • DAQmx Read (Digital 1D Bool 1Chan 1Samp) to capture data when a change occurs.
  • Processing & Visualization: Converting digital input into values and plotting a 3D Scatter Plot.

Questions:

  1. How can I count and store the number of rising edges per second?
  2. What LabVIEW functions should I use to measure frequency accurately?
  3. Should I use Tick Count (ms), Elapsed Time VI, or another approach to calculate frequency?
  4. How do I efficiently store the previous count and calculate the event rate dynamically?

I have attached my current LabVIEW program for reference. Any guidance, example VIs, or best practices would be greatly appreciated.

Thank you for your support!

Dinamically populate combobox inside a cluster inserted in array structure

$
0
0

Hi everyone is my 3rd question on this topic so i hope to find a solution.

I have to create a Table made with an array that contains clusters with two object (See picture below). I made the table structure but i can't properly popolate the combobox using the property node or other way around, why an easy thing has to be so difficult when you use an array?! 

At this point give my the solution, i know isn't the best way to learn but i'm tired and out of idea, i tryed everything i know without sucess , i'm still learning....

My question is how i can popolate dinamically the combobox without changing all the combobox?? 

 

Thank you for your time and knowledge and remember: Array properties appply to all element inside the array  😡😤

 

Using Labview2021 

Digits in Export from a graph

$
0
0

Hi guys,

 

When plotting a graph, let's say for these data :

nitad54449_0-1741179802391.png

I get a graph as expected:

nitad54449_1-1741179839770.png

As I imposed a single digit precision for scales, the axis are like this (this is how I wanted). Note that the points are plotted at their values, as expected. 

When I export from this graph the data, in clipboard or Excel, I obtain

Time - Plot 0 Amplitude - Plot 0
1000.6 10.2
1000.6 10.2
1000.6 10.2
1000.6 10.2

I understand that it will export data with the digits I impose on the scale. Why ? I mean, the graph has all the digits, I need the data not truncated. Is there a way to obtain the full data (without chaning the scales..) ?

Thanks

 

 


Error 10 on building application with websevices

$
0
0

Hello fellow Labview-coders!

 

I am using Labview a lot to make web applications nowadays. I am currently working on an application that creates a mobile web-app. It works fine when I test run it inside Labview. But I haven't been able to build it into an application for a while now. I keep getting the same (probably arbitrary) odd error message below:

aartjan_0-1741187591824.png

The errors of the application builder drive me crazy, because they are misterious and hard to solve. I can't deploy this application because of this error. Even though all the code is unbroken. The error also points to issues in packaging all the code in one place.

How to pass and set Variants in the DLL?

$
0
0

Dear colleagues, can you please help me with kind of my homework?

 

I can easily fire UserEvent from DLL something like that:

SimpleUserEvent.png

The code under the hood:

typedef struct { int32_t Type; LStrHandle Value; } TD1; __declspec(dllexport) MgErr SendEvent(TD1 *Data, LVUserEventRef *UserEventRef) { char value[256]; switch (Data->Type) { case 1: //Integer sprintf(value, "%d", 42); break; case 2: //Boolean strcpy(value, "True"); break; case 3: //String strcpy(value, "Hello, LabVIEW!"); break; default: //and so on strcpy(value, "undefined"); break; } size_t len = strlen(value); MgErr ret = NumericArrayResize(uB, 1, (UHandle*)&(Data->Value), len); if (noErr == ret) { MoveBlock(value, LStrBuf(*(Data->Value)), len); LStrLen(*(Data->Value)) = (int32)len; ret = PostLVUserEvent(*UserEventRef, Data); } return ret; }

But such trivial serialization is not elegant. Now I would like to do the same, but with Variant:

 

VariantUserEvents.png

The question is — how C Code may looks like?

typedef struct { int32_t Type; LvVariantPtr Value; } TD1V; __declspec(dllexport) MgErr SendEventV(TD1V *Data, LVUserEventRef *UserEventRef) { switch (Data->Type) { case 1: //Integer // Set(Data->LvVariantPtr, 42) - ? break; case 2: //Boolean // Set(Data->LvVariantPtr, TRUE) - ?? break; case 3: //String // Set(Data->LvVariantPtr, "How to do this???") break; default: break; } MgErr ret = PostLVUserEvent(*UserEventRef, Data); return ret; }

 

One of NI Engineer's comments from April 10, 2012, states, "We do not publicly document how Variants are structured in LabVIEW. Therefore, we cannot provide information about how the Variants are structured."

 

Before deep diving into reverse engineering, I would like to ask first, because maybe someone already did this exercise since 2012 and can kindly share a code snippet, which will be helpful for me and other participants? Rolf Kalbermatter, perhaps?

Thank you in advance!

Filter error: 20023

$
0
0

Hi everyone.

I am writing a code where I use a filter function. First i used filter from signal analysis-express. I got 20023 error. I belive my values are okay, although I use very small rate and  s to read. 

Then with ptbypt I get very different chart (in foto). And with simple filter in last code i see nothing in chart. 

 

I have looked at prevoius forms in community and tried these methods based on them. 

 

Thanks in advance

Unable to verify Labview community edition

$
0
0

I've installed "LabVIEW2023Q3Patch5Community.dmg".   
I am running an Apple M1 Ultra, with Sonoma 14.6.1 

When I go to register/authenticate the software - I get the following messages:

"You have been authenticated.  You may close this window"

Then on the application it states:

"Unable to verify LabVIEW Community Edition entitlement.

Please login to ni.com and redownload LabVIEW Community Edition."

I have removed and downloaded 3 times - each with the same result. 

Any thoughts or recommendations? 

"DAQmx Write (VI)" explanation if it wait till the device generates all the samples

$
0
0

I am using the "Timing VI" to write continually data to DAQmx 4468. By the TEXT "If the task uses on-demand timing, this VI returns only after the device generates all samples. On-demand is the default timing type if you do not use the DAQmx Timing VI." (from help of this function) I understand that after using the "Timing.VI" the Device will not be in the "On-Demand" mode anymore, and the FUNCTION "DAQMX WRITE.VI" will immediately return and not wait for all the data to be generated.
I can see that the opposite is happened. The Function wait time relative to the number of Samples I`m feeding her.

Can someone explain this ?

Thanks...

 

The code I`m using is the  "Voltage (non-regeneration) - Continuous Output.vi" example.

TCP/IP

$
0
0

I have jut got a new detector and they only provide python code with the method of TCP/IP to communicate with the detector. When I used the python, I can read the count from the detector but when I use the labview, it always show the error out 56, did someone know how to solve it, or it is because the labview did not have utf8 ? the python and labview is in the attachment 

NI Drivers under Linux

$
0
0

I have recently been migrating my development workstation from Windows 10 to Linux Mint. All the tools have been installed such as NI I/0 trace, NI VISA-Interactive, etc. However, I cannot find the GPIB Analyzer package. Am I missing a repository or is this this simply not available for Linux. I use this tool quite frequently on Windows and would like to use it on Linux as well.

 

Best Regards,

 

Craig Petersen


XYGraph cursor position (x-axis is absolute time)

$
0
0

Hi Guys,

I am using XYGraph with X-axis (absolute time). When the Monitoring Start button is pressed, I need to put a cursor on the present time and Y value. I have created a property node for cursor position. How do I control the cursor position?

 

Thx

A driver station for MacOS

$
0
0

Hey, I'm a part of NeatTeam #1943 and wanted to ask why doesnt the developers of the driver station doesnt make it compatible with MacOS it would help a lot of student (myself included) when working on a Frc robot so they wouldnt have to use both a mac laptop and a windows laptop for those who it is easier for them to use MacOs and not windows.

LABView 8.6

$
0
0

Hello everyone,

 

My company has purchased a LABView 8.6 full version but the installation CD is missing. Is there anywhere I can download the Software. We also have a full Version of the 2018 professional but for old project I need to be able to open it with LV 8.6. The latest Version I can find in the download section is LV 2009.

Your help is much appreciated

 

Best regards

Manuel

Labview License Activation Issues for virtual machines running VMware

$
0
0

Hello I just spent a week and change setting up a new laptop Win11 OS with the latest VMware Workstation Pro  17.2 trying to activate NI software for 7 different versions of Labview on 7 virtual machines covering l7 years. Note these are virtual machines being used since the version came out on a native WinXP, Win10 and the latest laptop on Win11. The newer versions of labview 2014(WinXP vm) ,  2016(Win7 vm) ,  and 2021(Win10 vm) were fairly quickly activated with the newer the version the easier activation was.

The older versions labview  8.6  ,  2009,  2011, and  2012 are each on WinXP vm.  All of these older versions on XP vm had been used on Win XP and 10 native machines without any issues.  When I migrated the vm's over to the new Win11 laptop all 4 of these older versions which came with perpetual licenses now showed up with red exclamation marks vs the green squares in NILM observed prior and stating "activated on another machine".

I couldnt find any relevant info on NI website and tech support had me try numerous things that couldnt get my vm's back to the state they had been in activated forever on prior laptop.  The last thing I thought to try unfortunately  was when you first launch vm on laptop after copying over the vm files to the laptop is a popup appears with two buttons "I moved it", "I copied it", with a comment to the effect if you not sure select the copied button.  Thats what I had done on prior computers without issue was to select the "copied" button.  The "moved" button cured all the problems and the NILM came up with green squares and never expiration activated on this computer for all modules without even going thru activation process.  I was thinking about retiring trying to get the "copied" button activation going as it didnt look like it was going to happen.

Just wanted to post this to possibly save someone else the pain I went thru.  Good Luck

Source Control usage in labview 2025 Version

$
0
0

Hi, I'm using Community version of LabVIEW 2025 Q1, and I'm unable to get the source Control provided name in the drop down for integrating, Please help me in knowing if the Community version has this access or restricted, I knew it can be done with third party external sources, but I want to the build options for the community edition is available or not. Please respond to this asap.

Viewing all 67022 articles
Browse latest View live


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