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

Labview2023 Email smtp with appendix

$
0
0

Hello,
Recently my email VI stopped working after a few years of trouble-free operation.

jan910101_0-1739880445687.png

 

Error Code 1172:

Method node System.Reflection.TargetInvocationException: A call target has caused an exception error.
Inner Exception: System.Security.Authentication.AuthenticationException: Error with SSPI call, see internal exception.
Inner Exception: System.ComponentModel.Win32Exception: The requested function is not supported <append><b>System.ComponentModel.Win32Exception</b> in email2.vi

 

A 1&1 or IONOS mail address is used.

 

 

I then tried the Email VI from the examples, even though I don't have the attachment, but that doesn't work either.

Error 56 at LabVIEWSMTPClient.lvlib:Send.vi:2280002

 

Can someone help me further and / or give me an example VI?

Best regards

 


Time recording when the button is pressed

$
0
0

Hi, help with the implementation of time saving.😿

 

I want to go to mine.txt file the time data was saved from the moment the button was pressed, not from the moment the coding  was started. (i.e., the countdown starts from 0 when the button is true)

 

image.png

 

As soon as the button is pressed: Data recording stops, the countdown stops, and the countdown resets again to 0 for the new file.

 

Additional questions: Can you tell me how to implement a good counter? I mean, when the score reaches 60 seconds. The saved file did not show 61..62...120.. seconds, and 1 minute is 1 second, etc. (For example, all 60 minutes are 60 seconds) 

How do I organize this in my program?

SeraphimSeth_0-1739884249868.png

 

 

Instability in Closed-Loop PID Control Between LabVIEW and Simulink via UDP

$
0
0

Hi everyone,

I’m new to LabVIEW and currently working on setting up a closed-loop PID control between LabVIEW and Simulink.

I have successfully set up a bidirectional UDP (also tried with TCP/IP but I ran into the same problem) connection between LabVIEW and Simulink, and data transmission works fine in both directions. However, I am facing instability when implementing a closed-loop PID controller in LabVIEW for a transfer function running in Simulink.

What Works:

If I replicate the transfer function in LabVIEW, transmit the PID output from LabVIEW and feed it to the same transfer function in Simulink: the system response is consistent in both software.

Problem:

When I attempt to close the loop, where:

  • The PID controller runs in LabVIEW,
  • Its output is sent to Simulink’s transfer function,
  • The output of the transfer function is sent back to LabVIEW as feedback,

the system becomes unstable.

Possible Causes I’m Considering:

🔹Timing mismatch between LabVIEW and Simulink.
🔹Data transmission delays affecting the control loop.
🔹Synchronization issues between the two software.

I made sure to match the sampling time in both environments by setting a fixed time step in Simulink and the same step as the control loop period in LabVIEW. I also tried using a "Wait until Next ms Multiple" function in the LabVIEW while loop to make sure the execution time is a multiple of the Simulink sampling time.

Has anyone encountered a similar issue? I would really appreciate any insights on how to solve this.

Thanks in advance!

Double integration signal slope in Control&Simulation loop

$
0
0

Hello, is there a way to remove slope from double integrated sine signal in control&simulation loop? 

Fast Data Acquisition VI

$
0
0

I am trying to make a VI that can create a .csv, write to the .csv, and record at set intervals.  This is to replace some older Windaq hardware and software that has been in use for many years and is becoming harder to get support for.  And some Labview hardware was ordered ages ago but never utilized of which, I have a NI 9223 module and 9171 plugged via usb to a computer.

 

What I am trying to emulate with Labview is a VI that can display voltages (which I have not created yet), graphs for viewing the signal, and a logger that records the data.  The problem I am encountering is I can write to the .csv but I do not get the time intervals that correlate with the frequency.  I want a .csv that has the elapsed time from start (zero) in the left most column with adjacent columns in the same row having the voltage reading.  

 

I'll take the criticisms my ignorance warrants.

IMAQ dx Error -1074360282 occurred at IMAQdx Open Camera.vi

$
0
0

Hi

 

I have Labview 2011. I used it well, but there's a problem these days.

When I run my code of labview, I get this error, "Error - 1074360282 occurred at IMAQdx Open Camera.vi" "Possible reason(s):NI-IMAQdx: (Hex 0xBFF69026) License not activated"

 

I searched about this error and I understand this error is occured because of deactivation of license or compatibility problem.

So, I confirmed that all licenses are activated and the drivers are compatible.

And also, I removed and re-installed all software.

But, it still doesn't work and displays same error code.

 

- I have "Labview 2011"

- I'm using Basler camera which works in MAX

- I upload  the screenshot of the NI license Manager

 

Please help me....  Any help would be great.

Connection between Compact RIO and AKD kollmorgen servodrive with labview through ethernet ip

$
0
0

I did some previous research and came into this thread: https://forums.ni.com/t5/LabVIEW/Kollmorgen-AKD-communication-with-Labview-Ethernet-IP-drivers/m-p/3755954#M1057776

 

I programmed the second to last response. but it did not work.I have my compactrio and akd servodrive in the same DHCP network and have allowed the parameters I am changing in the kollmorgen workbench. My question is if I need to do an extra piece of programming in labview to do the connection with the servodrive or what is needed to start seeing results in my code to move the servomotor

I2C Lockup on cRIO 9045 module 9402

$
0
0

I have little knowledge of I2C communications and wonder if anyone can help explain / resolve a lockup issue.

 

I am using a cRIO 9045 with module NI9402 to communicate with a Sensirion SHT85 sensor. https://sensirion.com/products/catalog/SHT85  (powered by module ni9401). I'm using example code from I2C&SPI API  (attached below). This code is working with the sensor and I am able to get sensible readings of Temperature and Humidity.

 

If any cabling is removed from the NI9402 or the test software is stopped running and restarted on the cRIO I have issues regaining communication with the sensor. Each time the software is restarted the sensor is power cycled. The only way I seem to regain communications is if I completely power down the cRIO and restart it back up. I'm wondering if there is a away to avoid this and regain communications with the sensor programmatically?

 

I've tried a software reset via the code below (page 13 of the data sheet) by sending hex code 0x30A2 and that doesn't work. How would I enable an interface reset using the code below? I'm unsure if I am able to just toggle the SCL and keep the SDA high using the software available to me or if this will even resolve the issue.

 

 

 

 

 


PICO TC-08 connection

$
0
0

Hello

I am attempting to connect a Pico TC-08 data logger device to labview 2020 with the goal of getting a temperature reading from a single thermocouple (to test right now). 

Screenshot 2025-02-19 at 9.57.44 AM.png

This is  my block diagram, and it is seen that the error 1097 comes at the beginning. 

I have already run as an admin, restarted labview, ensured the correct path in the call library functions, changed usb ports, etc but cannot solve this. 

Any help in the right direction or advice would be appreciated. 

to display the waveform of a rectifier circuit in LabVIEW.

$
0
0

hey masterminds, this is my first query in this forum, so sorry if i have made any mistake.

i am currently planning to make an full wave rectifier circuit,half wave rectifier circuit and also bridge wave rectifier circuit on bread board and then i want to display the output waveform in LabVIEW,(I am using the LabVIEW community version Q3 2023).


from what i have surfed from the internet i had an idea to connect the output from the rectifers to an ADC of arduino uno and then i dont know how to proceed with that to connect to LabVIEW and then display that in Labview.

can anyone help me on how can i proceed to complete my project. also you are open to give your own ideas to help me in completing the project.

please can you guys help me. thanks in advance

Problem with Agilent 82357B GPIB

$
0
0

I have installed the keysight I/O libraries and this interface does recognize an instrument.
I have noted that the interface is working properly when viewed in control panel.

The problem I'm having is I cannot see (or create) the interface in MAX?

Any suggestions?

Thank you

Accessing USB Instruments on VM ?

$
0
0

How can LabVIEW running on VM to access a USB NI device connected to the host machine ?

 

 

LabVIEW modbus help!

$
0
0

I'm new to LabVIEW, and to programming in general, my background is in Mechanical Engineering but in my new role I'm involved in the control and instrumentation of a thermal hydraulic test rig which is how LabVIEW comes to play.

At the moment we have the data acquisition completed by LabVIEW whereas external controls such as the heaters and pump are controlled by other software. We also have a Rheonik Coriolis flowmeter which isn't picked up by the LabVIEW.

Ultimately the aim is to integrate everything into LabVIEW so that the control and data acquisition is all in one, but as a priority I need to integrate the flowmeter readings into the LabVIEW script.

The flowmeter is connected via serial into COM port 6 on the computer, and I have downloaded the modbus library into LabVIEW but I just don't know how to then write the script to get everything working. I know I need to get the baud rate and parity bits all matching but I'm stuck on the actual coding and how it should look.

If anyone has any ideas, I would be extremely grateful.

TDMS scale data

$
0
0

Hi everyone,

I’m having a minor issue with the **TDMS Set Scaling Information** function: I only want to create a single set of scaling information, but every time I write data, new scaling groups are generated. Is there a way to resolve this?

I also tried setting the scaling group number via the **input source**, but it didn’t work—additional scaling groups are still being written!

+Complaint wrong transaction service centre number 933-957-2626

$
0
0
  • ++Complaint wrong transaction service centre number 933-957-2626

Wav Analysis

$
0
0

Hi,

 

I have created this simple VI for analysing a .wav file from which I need to check the level in dBm. The problem is that when I compute the level using the wire connected like the red circle I made:

Zuc_Lab_0-1740037866641.png

 

I obtain this error:

Zuc_Lab_1-1740037866643.png

 

Even if I delate the connection between the two modules, I still have that error for the file wav I have read and I do not get why. Like the connection between the modules breaks something on the wav.

As a last question I’m curious also to understand the differences of -0.7 dBm between the hypothetical value at which the wav was generated (-5dBm) and the one computed by the VI.

 

Thank you for the help!

 

Zuc

Simulation of IQ on LabVIEW FPGA

$
0
0

Hello, 

 

I am trying to write a logic for generating an simulated IQ signal, I can simulate generation of real and imaginary signal but unlike host VIs, but I haven't been able to find a way in FPGA  to create a complex signal from real and imaginary. I have been through high through complex multiply functions but, it requires 2 complex number for operation. I am looking for a way to convert the sine and cosine signal for complex signal. 

 

How can I implement that in FPGA ? 

How to make array as an Functional global variable

VISA: (Hex 0xBFFF0071) A specified user buffer is not valid or cannot be accessed for the required size.

$
0
0

Hi, 

 

I am using the VI in attach for resetting the switch modules in HP34970A Keysight instrument.

For some reason when i update the test station with IOLibSuite_18_3_29324 this error appears... :? Anyone has similar experience?

 

error: VISA Write in HP34970A Reset Modules.vi VISA: (Hex 0xBFFF0071) A specified user buffer is not valid or cannot be accessed for the required size.

 

Using Build.vi from NI_App_Builder_API.lvlib inside a Shared Library

$
0
0

Hello everyone,

I am trying to use the Build.vi  provided by NI to create my own VIs for building applications and other projects. So far, everything has worked perfectly. However, I now have the requirement to start LabVIEW without the GUI.

I found an article on the NI website (https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019RYlSAM&l=de-DE) that describes how to create a program that contains a VI, which in turn calls the Build.vi. I was able to create my program using the description and (more or less) execute it successfully. The outputs from my VI, indicating whether the build was successful or not, are still displayed when I run the new program.

My question is: Is it possible to use the Build.vi  within a shared library and with the LabVIEW Runtime Dark (liblvrtdark.so.16.0.0)?

 

I am using LabVIEW2016

 

Thank and have a nice day,

Musa

 

Viewing all 67103 articles
Browse latest View live


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