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

Multiple Reader/Writer using network streams

$
0
0

I am using network streams to allow one LV application to communicate with two other LV applications.  I can connect and communicate with either application, but only one at a time.  When I try to connect to the second application while the first is still connected, I get a -314004 error.  I have a one second time out and increasing it makes no difference.

 

Any suggestions?


Built EXE is ~100x slower until the original source code is ran in IDE?

$
0
0

So I have a large, LVOOP, interconnected application.  I build the application into an executable, and everything works fine.  Opening and parsing a collection of json files takes approx 117ms, all the profiling works fine.  Then I start distributing this executable to other users, and opening and parsing the *same* collection of json files takes upwards of 9.18 seconds?  So I have one of my coworkers download and open up the project file and try to run the application in the IDE to debug it.  Oddly enough, the version ran in LV2019 loads everything in around 100ms, so the problem isn't reproducable.  But here's where it gets weird:

 

At first, the built executable took ~10 seconds on my coworker's machine.

After downloading the source project, that version runs in a tenth of a second.

And now, the original, unmodified, built executable runs in 121ms!

My coworker then deletes the entirety of the source project, thinking the executable was using vis from the source instead of the build.

The original executable still runs in 121ms!

 

How could running a program in the Labview IDE suddenly make a built executable speed up by a factor of 100?  Aren't built applications entirely using their own compiled code, what could have changed to speed up what's supposed to be a self-contained application?

Time reverse acquired waveform

$
0
0

Hello all first time posting here. 

 

I am using LabVIEW NXG 3.1 and a USB-6356 DAQ. 

 

After acquiring a waveform (voltage measurement) I would like to time reverse it such that it begins with the final value and then perform a convolution with another waveform.

 

Which is the most efficient way of compmputing this? 

 

I have tried negating the dt values but then convolution is not permitted due to different dt values between the two input waveforms.

 

 

How can I read Adafruit INA 219 in LabVIEW? How can I get data from an Arduino file in LabVIEW?

$
0
0

Hi!

1. How can I read the Adafruit INA 219 sensor in LabVIEW? I use Linx but I can't read the INA 219 sensor without the I2C library either.

2. How can I get data from an Arduino file in LabVIEW?

 

Thank you!

WSDL Validation Failed, how to debug?

$
0
0

I have a WSDL file that was provided to us from another company. (I'm not at liberty to share the file)


I have uploaded it to a web server.  I do not need authentication or proxy information.  I verified that I am able to access the file with a web server.

 

I try to import the wsdl file at Tools -> Import -> Web Service...

I click Next twice, and I get the error "Validation Failed. Possible Reasons are: 1. The URL does not exist or the WSDL is bad.  2. Authentication is not correct.  3. Proxy information is not correct."

 

The WSDL file references several xsd files.  I uploaded all those to the same directory as the WSDL file.  Now I get the error from Labview "WSDL Validation Failed.  Bad value was passed into a function (e.g. empty file name)."

 

I used the tools at wsdl-analyzer.com to validate the WSDL file I have.  I made some adjustments until wsdl-analyzer.com accepts it.  But Labview still gives me the error "WSDL Validation Failed".

 

How can I know what part of this WSDL file Labview is not accepting?

Problema com icon editor

Cleaning of the joint line

$
0
0

There is a string formed from many strings using Concatenate Strings. At the output we have a large multi-line text, you need to clear this line
In the attachments, I showed how I tried to clean the string, but it does not bring results ..image.png

Error 1671 in Python Node (Type Error)

$
0
0

Hi all,

 

I am calling python node in LabVIEW to call for python script in order to communicate with my HID device.

 

I am open and close session only once outside the state machine. Every step in the state machine will call for the python script and send different commands to the HID device. However, i faced some intermittent error of 1671 when running the LabVIEW.

 

Can anyone please advise? I try not to open and close the python session in every step but seems like this cause me a lot of problems. Thanks in advance.

 

Untitled.png


When will DSC be updated for 64-bit?

$
0
0

NI has been clear that they were planning on phasing out support for 32-bit operating systems, and in February announced that: 
"On May 1, 2021, National Instruments software will drop support for ... all 32-bit Windows operating systems."
"New versions of NI hardware drivers will install only on supported 64-bit operating systems and will include both 32-bit and 64-bit user-mode support, meaning users can continue to run 32- or 64-bit applications on supported 64-bit operating systems." [my emphasis]

 

https://www.ni.com/en-us/support/documentation/supplemental/19/national-instruments-support-for-windows-7--windows-server-2008-.html

 

I have a major update for my test facility acquisition system coming up. The software utilizes DSC to communicate with some of the facility control systems (OPC UA). It is increasingly problematic to have LabVIEW and DSC forced to run 32-bit, while other systems are now all 64-bit.


Even LabVIEW DSC's 2020 edition is still 32-bit and can only be used with 32-bit LabVIEW. Is NI planning on updating DSC to be 64-bit, or replace it with a 64-bit alternative that can provide access via OPC-UA? If so, when is that expected to be released?

FPGA Error Code 65637

$
0
0

We have been trying to run a reasonably simple C program on top of some simple FPGA code to read the data coming out of some accelerometer cards (NI-9232, NI-9231).

Mostly this all works perfectly fine, however we are seeing a persistent warning when the cards are connected to sensors and configured as IEPE AC Coupling.

 

The register for the error code coming out of the FPGA IO Read is coming up as 65637.

 

Trying to track this error down has proven a bit of a pain as I can't seem to find it anywhere on the NI website or any documentation. The only source of information I have found has been when I saw the error running an FPGA headed, explaining the error presented the message:

 Error 65637 occurred atan unidentified location
Possible reason(s):

One or more channels have anopen loop orashort circuit. Check the module connections.

 

Is this a reasonable error to expect on the acceleration cards? Is there anyway I can disable this check?

LabView accessing Azure Active Directory

$
0
0

Hi,

 

I am using LabView 2016. I want to build a LabView application to authenticate using Microsoft identity platform and Azure active directory. The client application needs to request an Azure AD access token by using the following parameters:

1. Azure AD tenant endpoint.

2. Resource URI

3. Application Client ID

4. Application redirect URI.

 

In .NET equivalent, it uses method like AuthenticationContext.AcquireTokenAsync(String, String, Uri, IPlatformParameters)

I am not able to find any relevant example in LabView to do this. Although NI Cloud Toolkit for Azure is available, but it does not provide such similar examples. If someone on this forum have done similar vis, then please help!

calculate area plot

$
0
0

 Hello.
Who knows how to calculate the area under a curve bounded by two cursors?
I bring my non-working option. I went through the entire “integral” palette and nothing helped. There is no calculation.

integral.png

How do I get a local host name using the API

$
0
0

 

Is there any function in user32. DLL that you can get?
Can you teach me how to use it?Or use another dell file

LabVIEW

$
0
0

Does LabVIEW Community Edition support Stand-Alone code deployment on Arduino?

Epson ESC/POS Printer commands

$
0
0

HELP....

 

I am trying to get an Epsom POS printer to work.

 

I have managed the basics, like printing text to it, no problem. i have even managed to get line feed n lines and cut to work.

 

But, i can not seem to get anything else. i want to print a barcode and also print in red (Colour 2). the manual has examples, but i am not sure how to convert them and send them to the printer.

 

The barcode code looks like this - 

 

PRINT #1, CHR$(&H1D);"h";CHR$(80); ← Set height
PRINT #1, CHR$(&H1D);"f";CHR$(0); ← Select font

PRINT #1, CHR$(&H1D);"H";CHR$(2); ← Select print position
PRINT #1, CHR$(&H1D);"k";CHR$(2); ← Print bar code
PRINT #1, "496595707379";CHR$(0);
PRINT #1, CHR$(&HA);

 

then there is the colour change example - 

 

PRINT #1, CHR$(&H1D);"(N";CHR$(2);CHR$(0); Color 1 Color 2
PRINT #1, CHR$(48); CHR$(49);← Set character color 1
PRINT #1, "Color 1";
PRINT #1, CHR$(&H1D);"(N";CHR$(2);CHR$(0);
PRINT #1, CHR$(48); CHR$(50);← Set character color 2
PRINT #1, "Color 2";

 

Programming guide is called "Programming manual APG_1005_receipt.pdf"

 

Has anyone had any success with this? please share....

 

Attached code will print, then feed 10 lines, then cut. not tidy, its a work in progress.

 

Any and all help gratefully received.


General scalar or array processing template example using malleable vims

$
0
0

Something I use and like a lot and thought maybe others would use and like a lot too 🙂

 

Open "general scalar or array processing example.vi"

How can use USRP as a repeater?

Can we read Android Studio logs(Logcat) in LabVIEW

$
0
0

I want to read the log messages in the logcat section of Android Studio in LabVIEW. Is this possible

Is there an easy way to change SI unit label from 1M to 1000k?

$
0
0

For my GUI I want to display final numbers in a format the user is used to seeing them in. I know 1M is the same as 1000k, but some people, well, they just don't. Is there a quick way to do this? I know I can format into string and do some syntax, but was hoping I could do it somehow in the numeric indicators properties. The indicators are all clustered and it will be a pain to go through and add a format into string for each indicator. 

extract some data from an array

$
0
0

Hi, I'm looking forward to extracting each 820 sample packages data from

initial string/array and save them separately at equal time intervals (for example 800ms) then use this every packet in turn in another processing operation. As if I were reading 820 samples packages at equal time intervals.

I built this VI but it doesn't work. I tried a lot of options but I couldn't reach the desired result. So I need help or a bit of advice for which I thank in advance.

 

 

Viewing all 69606 articles
Browse latest View live


Latest Images

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