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

How to use continous Simulate Signal data in Control&Simulation Loop to model spring-mass system

$
0
0

Hi, I would like to know how to use simulate signal as a input to my spring mass system in control&simulation loop. I´ve tried everythig that I think would help but it just doesn´t work - the waveform chart in cont.&sim. loop shows nothing during simulation.


Fiber Bragg Grating measurements with Labview

$
0
0

I have a pxie 4844 optical sensor interrogator with pxie 1071 Chassis. I wish to get the drivers for the optical sensor system and connect with LabView. Are the drivers still available? And how do I connect it with LabView for real time measurements?

Re: FINS Ethernet driver

$
0
0

Does the OPC server create too much traffic over the network? I got an application using a Omron PLC and 3 client pc running labview. Communicating via NI OPC using shared variables. The comms seems fine when the applications is ran on 1 or 2 of the PC. However, if I ran all 3 application simultaneously things starts gething very slow. Lots of lags. How to improve this? 

Labview block diagram - help with Event structure

$
0
0

Dear community,

I am having problem running my labview program due to the event structure VI that i have implemented for locking numeric slider to not change values by mistake. but as i also have DAQ in my same block diagram. it is showing an error. How can i rectify this mistake ? I am also attaching a picture of block diagram as well as the error dialogue. 

My logic is that if i change the value of the numeric slider. there should be a dialogue box asking "are you sure you want to change the value?". and only when i click yes it should change or else it should go to the previous value. Kindly help me fix this error. 

I have tried fixing number of samples and increasing the size of number of samples and sampling rate also. What could be the possible error ? 

Thanks
Regards,
Shruthi

shruthiganapathy_1-1739179538141.png

 

shruthiganapathy_0-1739179487966.png

 

Control of Front Panel Size

$
0
0

Hello everyone, I’m not sure if anyone has the perfect solution, but any good one would be helpful. Let me try to explain.
An application is running on a Windows tablet PC with an apparent resolution of 800x1200 pixels; in practice, it’s a bit more vertically (1280). The issue is already making the front panel with resolutions that don’t fit on a normal monitor, but once this is overcome, some problems appear. When you rotate the tablet, the applications also rotate, causing the front panel to break, and when you return to the original orientation, it doesn’t come back to its initial state. Does anyone know how to lock this in the front panel of a VI?
The second problem is that the tablet’s resolution is very high, and the manufacturer recommends using a 125% scaling to make it usable, as otherwise everything is too small and hard to manage. However, the front panel has already been designed to occupy the maximum space, with all controls well-positioned. If the user changes the scaling in Windows, the entire front panel becomes disorganized, or part of it goes beyond the visible screen range. Does anyone know of a way to prevent this scaling from affecting the front panel of a VI?
Thanks.

Creating a TABLE where you can hide unecessary indicator of a cluster array

$
0
0

Hi everyone i'm new and i have a lot to learn so here is my first question, hope to be understand if you have any question ask me...

I have to build a Table using an array made of clusters, each cluster contain two string to show Domain and Parameter taking data from a .CSV file ( no problem), the third column show the value and is made up of a enum, string, numeric and  boolean. For each row (Of value)  i have one value to show in the correct location... e.g: if i have a string i have to show it in the string box but if a have a bool i need to show in the checkbox... So here is my question: How (if possible) can hide or disable the three value indicator that i don't use and show only the one which show the right parameter?  I have already tried many ways bue every time it change all the property of the array and not only the one of the cluster element. 

Thank you for the support,

Marco 

LabView Compatibility with Jake AI

$
0
0

Hello all,

 

is there a compatibility matrix where you can see how the compatibility between LabView and Jake AI (from JKI, jki.net/jake ) is ?

With which LabView version does Jake AI work with?

As I understand, Jake AI is an separate installed program, right?

But I think there will be a compatibility matrix.

 

Thank you and BR

EWiebe

GPIB comunication

$
0
0

Hello,

I have a problem with the remote control of an old multiplexer. I found a driver written in turbo paskal 5.0, which was saved on a 5'25 floppy disk. Now I am trying to interpret this driver in LabVIEW. I use GPIB-USB-HS to connect to the multiplexer.
For testing, I am using NI MAX “Communicate with Instrument”.
I found that when I send the command “%”, it switches the first channel to the multiplexer. But after that, I can't send anything else to the device. I realized that after the command, I have to open “Interctive Control” in NI MAX and send “ibsic” to GPIB. After that, I can send a new character to the multiplexer and it will work.
For the next step, I wanted to create a small test program in LabVIEW, send a command to the multiplexer for it, and then send “ibsic” in the next frame, but I got the error “Hex 0xBFFF0015”. I am sure that the problem is in the second frame because the multiplexer opens the first channel.

So the problem is, why can't I send this command? What is wrong?

test.png


Align and Resample When One Waveform Has a Length of 1

$
0
0

I am attempting to align and resample waveforms from two sets of data recorded in a loop. In each loop iteration, the following sets of data are taken:

  • The first set of data has length 50 and dt 0.001 sec
  • The second set of data has length 1, resulting in a dt of 0

I would like to align and resample the second set of data using the Coerce method so that the single value is propagated across the timestamps of the first waveform. However, when I attempt this with the Align and Resample Express VI, I get the error shown below. Does this indicate that this operation is beyond the capability of the express VI, or do I have the settings incorrect for what I want to do (also screenshotted below).

ndaniel9_0-1739228800509.png

ndaniel9_1-1739228861814.png

 

 

error-1950679023

$
0
0

hi guys,

When my computer communicates with pxle-1062Q, error-1950679023 often appears. After stopping the program, I find that the connection with the industrial computer will be disconnected. This system has been running normally for five years, and this problem has only recently appeared.

I hope everyone can help me.

quxuexin_0-1739240483924.png

 

read and write cluster from teststand to labview

$
0
0

hello!

I have a cluster type "Device_ID" variable under teststand. I have to read and write it from my labview HMI. I did the manipulation with strings and numericss (testand get property value.vi). I'm able to recover each variable from the cluster and rebuild it but not to recover it in its entirety (in a variant for example and then return it to the type). Is ti possible ?

Thank you

유럽 지역에서는 숫자 소수점이 콤마(,) 로 입력되어서 에러가 발생합니다.

$
0
0

프로그램을 개발하여 테스트까지 완료하여 유럽의 고객에게 전달했는데, 거기에서 실행시 에러가 발생한다고 합니다.

확인해보니까 숫자 입력에서 소수점이 . 이 아니라 , 로 입력되네요.

고객에게 윈도우 설정을 변경해라고 하긴 했지만 랩뷰에서 해결할 수 있는 방법은 없을까요?

Error code 1026 after installing sensor configuration

$
0
0

Hello everyone ! 

 

I`m sorry in advance if somewhere in the forum have the same problem but I couldn`t find it and that`s why I`m writing this topic. 

I made a sensor configuration on LabVIEW 2017 Version 17.0.1f3(32 bit). Machine that I`m using is with cRIO 9049 and Beckhoff CP72xx-xxxx-0060 | Economy Panel PC.

The LabVIEW program is on the IPC and I`m trying to install the sensor configuration from the IPC to the cRIO controller. The file with configuration is ASC file.

The problem is that after installing the file and updating the cRIO from the IPC it gives me the error 1026 and the program loses communication with the cRIO, the interesting thing is that after the error in the program I`m seeing that the configuration is loaded.

I did the same thing for machine configuration where the file is AMC and I don`t have a problem. I have tried a lot of rewriting the files from IPC to cRIO and deleting files but nothing helped, everytime I install the ASC file it gives error 1026 and loses communication. 

So I`m pretty desperate and hoping someone can help and give some advice.

 

Thank you in advance!

Best regards

 

RTS/CTS flow control test

$
0
0

i want to create test case hardware flow control rts/cts using LabVIEW and stm32 board. 
can u tell me steps how to implement LabVIEW setup.
the flow is the stm32 send data to labview when labview buffer gets filled then LabVIEW RTS send high signal to CTS of STM32.

How to create parameters in Labview Program and pass to Teststand

$
0
0

Hi NI

 

I am new to Labview Program. I would like to create a program parameters and passed to Teststand. Any solution

for this.


Measuring ON and OFF Time of an LED in VI

$
0
0

Hello all.

 

I am trying to measure On and Off time of an LED.I will get that data from a GPIO Pin from other PCBA in my real project. But to simulate that, I just added a switch in the VI itself and i am trying to measure the ON time by detecting rising edge and falling edge and capturing the time straps at that time. I am not getting the data as expected. Can you please verify the below attached code and help me where i am missing something.

 

Waiting for your reply:)

Programmatically choose boolean to write in cluster

$
0
0

Short version:

I want to write and read the status of a boolean in a cluster by name, but i want to choose which boolean programmatically. 

SydneyAVDE_0-1739268414264.png

 

Long version:

I've been searching and trying for many hours but i feel i'm missing something obvious and i'm stuck in a loop. No pun intended.  

 

The reason behind this is that i can program one loop that adapts itself to a source. Meaning, when i press 1 button, lets say "button A", the loop knows what to do for everything in the program with the name A.

 

I've tried many things like working with property nodes and variants etc.. while writing this question, i figured the property nodes out, sorta. I wonder if there is an easier way. 

SydneyAVDE_2-1739273621062.png

 

Many thanks in advance to anyone who can solve my issue.

I know i can always get rid of the cluster and do things easier (yet bulkier), but i have to know if and of so, how it is possible. 

Best Approach for Communication Between Two while Loops with Different Speeds in LabVIEW?

$
0
0

Hello LabVIEW community,

I'm currently working on improving an old LabVIEW VI, and I'm trying to find the best way to handle communication between two while loops running at different speeds. In the current VI, the communication between the loops is done using local variables, but I’m not sure if that’s the most efficient or reliable method.

I would like to know what alternative methods or best practices you would recommend for such communication. My primary goal is to improve performance and reliability, especially given the loops are operating at different speeds. 

I’d appreciate any insights or suggestions based on your experiences!

Thanks in advance!

USB-6356 Labview Analog Reading

$
0
0

Hello. I want to make an analog measurement with the USB-6356 card I have. I can select “Differential” in the Terminal Configuration option on the Labview screen, but I cannot select “NRSE” or “RSE”. Is there no such feature on this data acquisition card?

Implementing Local and Remote Control in LabVIEW for a Test Bench

$
0
0

Hi everyone,

 

I’m an engineering student and a beginner with LabVIEW. I’m currently working on a project where we control a test bench for a mobile HVAC system. We are using NI-DAQ modules to acquire data such as temperature and pressure, and we also control various bench parameters.

Currently, we can manually set parameters via the front panel, but we also need to implement remote control using MQTT communication with another machine and also to read the parameters from a CVS file. Those parts of the project haven’t been developed yet.

 

Eventually, we will generate an executable for a runtime machine to handle both measurement and control of the bench. One requirement is that the runtime user must be able to select the control mode—either local (manual input and file data) or remote (via MQTT).

 

Since we are relatively new to LabVIEW, we are looking for guidance on how to structure the software. One challenge we are facing is that our thermocouple module is quite slow. Because of this, I am considering using multithreading with parallel while loops, possibly implementing a producer-consumer architecture with channel wires. Additionally, the code handling remote commands may not be exactly the same as the local control logic with MQTT.

 

Given these requirements, I have a few questions:

1. What is the best approach in LabVIEW to switch between local and remote control modes at the start of the program?
2. How can we efficiently manage the timing issues caused by the slow thermocouple module?


Any advice, suggestions, or relevant resources would be greatly appreciated!

Thanks in advance!

Viewing all 67005 articles
Browse latest View live