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

Customized Control and Case Bug

$
0
0

I've run into a problem writing some code, I'm getting a fatal error that says my Case is not compatible with my control.  But I can't seem to see anything wrong.  The ZIP file has the same name as the high level VI that is supposed to execute.  See attached ZIP file. This control worked fine with this case, until I made a small change to some code inside one of the cases.  Something broke, but I can't seem to figure out what broke.


Case selector for case structure not working properly?

$
0
0

Hi! I am trying to make a new case selector, but I am getting the error "The Case structure must have a Boolean, numeric or enumerated input wired to its selector terminal (the '?')." However, I believe the selector is weird properly according to the tutorials I have watched. I am fairly new to LabVIEW, so maybe I am missing a detail.

 

Thank you!

How do I constantly update an array in LabVIEW?

$
0
0

I'm trying to use the Polar Plot VI under Picture Plots so that I can plot spatial data as it is received. The problem is that the Polar Plot VI accepts a data array input, but there is no way for me to update the input array as data is coming in.

 

Basically, I'm trying to create a module that does the following:

 

integer i = 0;

 

1. Take numerical input.

2. Place element in array at index i. Increment array index by 1, i=i+1;

3. Send array to Polar Plot VI.

4. Update picture plot to reflect current contents of array.

5. Repeat.

 

I just installed LabVIEW a few hours ago and have been trying to figure out how to achieve my goal by searching the web, but have not found anything useful.

Need Solution for Sub VI Missing

$
0
0

Hi all,

I am new to this Labview environment, Could you please help me to solve the issue am facing in labview program. Recently i got a sample application code when i open this file i got some errors like

Poly VI 'MB Serial Master Query (Poly).vi': Sub VI is missing 

Sub VI 'ADO Connection Create.vi': Sub VI is missing

Further i am not able to run the program, Please guide me to solve the problem. I don't know this issue may be a small one but am not able to give a correct solution.

Awaiting for your valuable feedback.

 

Regards,

Santhoshkumar.

Front panel updating question

$
0
0

Hello

I have a quick beginners question about updating values within LabVIEW, and I've made a couple of demonstrations of what I'd like to do as an example.

Basically I have two values being added together from controls on the front panel, and the result is shown in an indicator.  I would like to be able to stop that updating process, by turning off a True/False boolean switch.

Neither of the two examples I've created works, but I can't quite see why.  Is it because I am not terminating the While loops properly, and if so, how should I do that?

If anyone can offer any advice that would be great.

Many thanks,

Jonathan

CSV Data into LabVIEW

$
0
0

Hello,

My goal is to read this data from an Excel file into an array. However...

Block and Front Diagram.png

^^^This is how the block and front diagram are supposed to look like when I run the file into the program. My block diagram looks like the one above but the front diagram doesn't end up turning out like the one above. Any suggestions? Thank you.

CONFUSION TO SELECT TERMINAL CONFIGURATION

$
0
0

Hi, I'm novice in LabVIEW & DAQ. If my maximum and minimum value is +1 and -1 of Signal Input Range then what I have to select in Terminal Configuration? Differential/ RSE/ NRSE??

 

Can you please explain in detail? Thanks in advance.

NI USRP 2900 Device Name not showing

$
0
0

Hi to all

i have a problem while using NI USRP 2900.

my professor gave me USRP-2900. i have tried every thing to just keep it working but unable to start it. The device name doesnot appear in any VI. how to run basic USRP Program on it. 

 

Kindly tell me what should install and what not

Previously i have installed Labview 2017, USRP 17, LABVIEW 2015, USRP 16, USRP 15 but have the same problem. 

 

i want to use it on LABVIEW. dont want to use Communication suite. do anyone know how could run on LABVIEW

 

Regards
Ali


Simulate the plant behaviour in real-time

$
0
0

I'm a little concern about a problem that I have at this moment. I'm doing a project in a company who wants a design of a rudder control system for a ship. I finish the design and I did it on LabVIEW with the Control Design VI in a Simulation Loop. That was the easy part of the project but the company told me that they want a project where they can use it in the reality, so I have to simulate in real-time the ship and I can't use the simulation loop, beside I must to simulate two sensor with CompactRIo (compass and Synchro) and send it in any communication protocols to a computer. I know there is a VI where I can use to simulate a lag-leag controller.

 

The problems I have are: How to implement a plan equation with the help of Transfers Function? How to implement a integrator (1/s) in real-life? ( I had seen that you comment the possibility on use deadband). The last question, how to simulate the two sensor that I mentioned previously with CompactRIO?

Send binary files using TCP

$
0
0

Hi.

I`d like to send binary files from a PC to another one using TCP/IP  server program.

The name of the file I want to send is the number from 0 ~ n and send from 0 to n  every 10 msecs.

I attached the server VI and Wireshark analysis  below.

Wireshark analysis showed the program send same 2 packet  after made  connection and then program close tcp connection after send 2 packets  and reconnecting again.

What is the problem with my server program?

Could I have your help?

Thank you.

Error on connection with RT

$
0
0

I have LabVIEW NI-PXI 1031 RT, I have developed an RT project clent server type but everytime iam trying to communicate it is giving error 

"Connection to RT has been lost " also no error found in error logs.

Limit range of a encoder

$
0
0

Hello all,

 

Problem: I use a DAQ Assistant input with a counter and a connected encoder. I'm only counting the actual degree value in relation to the start value (so a relative measurement). I only want the encoder to give values between -360° to 360°.

I can limit these numeric values for sure, but the counter always continues counting, even when the limit is reached.  That means that I'm only seeing my +- 360°, which is correct, but when one limit is reached and I count on (it still shows 360°) the encoder itself will continue to count without showing me this, resulting in counting backwards for a long time before getting back in the value range I set.

 

Is there any way to limit the counter input directly? So that it only counts up to 360° and then instantly (starting at 360°) back, even when I have turned more than 360?

 

I hope you understand my problem, I did many hours of research on this topic but without a solution.

 

Best regards, thank you in advance.

More point for IV curve

$
0
0

I I'm having a IV curve their points are max 20 and I wanted to expand the points in more than 20 points, having same curve.Can someone please help me with that. I wanted a fine curve.

WEC2013,WEC 7

$
0
0

Hi

How to program single board computers running on WEC  2013,WEC 7 using labview

the single board computers are manufactured by Toradex.

NI Serial 15.0 Runtime not available

$
0
0

Hello,

 

I noticed that NI Serial 15.0 Runtime is not available for download anywhere online. Customer wants to know specific reason, if any. He is hesitant to download as he feels it may have been taken offline due to technical issues with that version.

 

 

Kindly help.

 

 

Thanks and Regards,

Akshay KP


Reference Becomes Null/0 When using in Cluster

$
0
0

Hello All,

I am Developing a driver for Configuration File,

I am Passing the Ref of the of the path after Opening the path in a Cluster to different states using **bleep** Register (using Single Run VI)

The Reference becomes null When calling second Time for a Different State

Same works fine if i am passing my Reference in a Shift Register without passing to Cluster

 

Whats the difference it will create when passing a reference in a Shift register using With Cluster and Without Cluster

Tree control snapshot / track changes

$
0
0

Hi all,

The user of my Software should work with a labview tree control on the front Panel. I want to track changes about what the user has done to enable i.e. undo the last 10 changes.

 

My idea is to create a snapshot every time the user modifies anything on the tree, and so Keep the last 10 snapshots in the Memory to be able to undo those changes. Well I don't have any good idea, how to create a snapshot (maybe create XML?).

 

My question is, what is the right way to enable users undoing changes on a tree control?

How to Pull Down the VISA Line Serial 2-7 when it is idle

$
0
0

Hi,

 

My hardware is NI sbRIO9607. I want to use the RS232 serial interface provided by Labview Clip Generator and I have also done all the necessary assignments written. But I could not find any way to pull-down the created port pins, which they are always pulled-up, except Serial Console Port ASRL1::INSTR, which is pulled down as default. All serial port bits are converted to its bitwise inverse, excluding bits of ASRL1::INSTR. I can invert all the signal bits, but could not pull-down the line while it is idle.

 

I put screenshots below. The yellow signal might be considered as the actual working TxD signal, which is obtained by using ASRL1::INSTR. And the green signal is the ASRL2::INSTR port TxD signal. If the line is not pulled-down, DCE could not see the signal. 

 

I have tried to select pull-down option of the DIO pins from the Clip Generator, but it did not help, since I think VISA function internally assigns HIGH value to the pin while it is idle. The only way I can see is to write my own Serial functions since I have to solve this problem by just using software. 

 

How could I pull-down this Clip Generator ports while they are idle in labview, is there any way to do this? 

 

Thank you very much,

Best Regards,

 

Onur YILDIZ

 

Connection error causing LabVIEW to crash/freeze

$
0
0

I've created a VI that connects to multiple instruments and saves the data from the instruments. Recently there have been problems arising with one of the instruments, a Newton's 4th power analyzer PPA510. The specific cause of the problem is unknown but the end result is an error with code -1073807194 (Hex 0xBFFF00A6) The connection for the given session has been lost. This error has happened both near the beginning of collecting data from the instrument and in the middle. When this happens and Newton's 4th is the only instrument that is connected LabVIEW runs properly with the control I added to stop the VI if an error occurs.

 

When this happens and there are multiple instruments that are connected besides the Newton's 4th, LabVIEW stops responding. The indicator light I added shows that there is an error and the data collection stops (shown by the graphs no longer updating) but the VI doesn't stop. Even trying to Abort the VI does not work. LabVIEW then continues to not respond even after letting it run for a while and I eventually force it to close via the task manager. A window then pops up saying that it is trying to reset the VI that was just forced close. Even after waiting 30 minutes this fails and stops responding. The next time LabVIEW is opened, when trying to trying to select the COM Port for the VISA session, LabVIEW freezes and says that it is "Not Responding." This continuously happens no matter how many times LabVIEW is restarted. The only way that has been found to fix it is to completely restart the computer. 

 

I'm trying to figure out a way to stop LabVIEW from crashing when multiple instruments are connected or to fix the connection error within the code. I don't think that there is an error in the code itself causing this because I have been using this code for weeks already to collect data from the Newton's 4th both by itself and with multiple instruments. 

 

Note:

-The Newton's 4th has 2 methods to collect data through a computer, datalog and multilog. The method I am using is multilog. 

-Other instruments which I have used simultaneously with the Newton's 4th include: Extech 4-Channel Temperature meter SDL200, Extech Differential Pressure Manometer HD 750, Mark-10 Force Gauge BG 200, and Clarke-Hess 2335A Wideband power analyzer. 

Problem Saving overlayed image

$
0
0

Hey,

 

I am overlaying part of an Image with Imaq overlay Rectangle. The vi works like expected and i can see the result of the overlay on Image Pannel. But when i save this Image on my MyRIO-device, it appears without overlay. I tried to solve the Problem using U32-Image but i still have the same Problem.

you can also get a look on my attached vi.

 

I will be very pleased if someone can give me an some indications.

thank you.

 

 

Viewing all 66977 articles
Browse latest View live


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