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

Issues when Using Ethernet/IP and Network Streams together

$
0
0

Hello to all you brilliant people on the forums.

 

I am working on a project that involves a cRIO which will eventually be installed into a test cell with a PLC and a PC.  The cRIO uses a TCPModbus Slave to allow single points of data to be communicated between itself and the PLC and/or PC.  I also included a Network Stream to pass waveforms to a diagnostics application that will run on the PC.  All of this works very well, so if it's not broke it needs more features, right?

I decided to also include Ethernet/IP communication to the cRIO.  This would simply be another option for the PLC to pass data to/from the cRIO using explicit messaging.  I created the modules and ran them on a test VI and all was well.  After adding the Ethernet/IP modules to the main RT application the PLC returned a connection error.  The Modbus communication was still working.  After some head scratching I found that if I removed (not just diagram disable) the VI that included the Network Stream, the Ethernet/IP communication would work.

 

My question is, should Ethernet/IP and Network Streams coexist on the same target without issue, or was the issue I'm seeing expected?  I would love to get your thoughts and thank you for your time.

 

LabVIEW 2018 (Software Platform Bundle)

NI-Industrial Communications for EtherNet/IP 18.0

NI-9068 cRIO

TCPModbus API is part of the DSC Module

 

Kind regards,

Josh


Get Diagram Disable Symbols

$
0
0

Hi,

Is there anyway to get the Project: Diagram Disable Symbols programatically i.e,using some nodes.
Thanks in advance.

Error in continuously saving waveform data

$
0
0

In the attached VI, I am trying to display the numbers coming out of a random generator with respect to time, write this data to a binary file and then reading the waveform by calling that particular file. I want to display the write and read data waveform simultaneously. The VI is running fine except that it is showing a dialog box again and again to 'Replace the existing file'. Can somebody tell me how can I get rid of that popup message?

Application is not working even Labview 2018 RTE installed.

$
0
0

Hello,

I am new in Labview programming. I create an application with labview 2018 32-bit using ActiveX. It is not working in another PC even i installed the same version of RTE. Please anyone help me to run that application. 

GObject properties broken when accessed within a Traverse callback while recording undo transaction

$
0
0

Hello everyone !

 

I'm trying to create my own scripting utilities with the help of the "Traverse" method on a VI reference.

To start simply, I inspired myself from "Traverse for GObjects.vi" provided in the scripting API and tried to create a similar VI that just grab all information it can from the controls present in the FP. Until then, no problem.

 

The problem happened when I tried to combine this with "Transaction:Begin/End Undo", allowing to undo potential scripting operation done in the Traverse callback function.

It seems that, while recording an undo transaction, the properties of the GObject (a Control in my case) in the callback suddenly gives nonsense values, whereas it does not happen whithout the undo transaction.

 

It is quite annoying as it cancels out all of the interest of the traverse function.

Does that sound like a bug, or am I doing something wrong with my references ?

 

To reproduce this behaviour, please try the attached code by running "MAIN.vi"

 

Thanks in advance.

VISA error with TCP-IP BK precision 2190E

$
0
0

Dear all,

I have a weird error.

I can do query *IDN? in NI MAX with TCP-IP connection.

I gave an alias for this unit in NI-Max.

No I try with LabVIEW.

There is no need of \n at the end of the command. Tested in NI max and in USB mode.

querry: *IDN? answer: Vendor,2190E,512E18239,6.01.01.19\n

 

Now there is the problem:

In LabVIEW, I try to connect to the Oscilloscope send the *IDN? string and I got the error:

-1073807343

with description:

VISA:  (Hex 0xBFFF0011) Insufficient location information or the device or resource is not present in the system.

 

If I click run again on the VI I receive the expected answer.

 

The other problem I have is if I add close visa session at the end of the VI (see picture), no matter how many time I try it, I always receive the same error.

 

Is there a way to fix that?

 

here is the picture of the code:

image.pngAny helpful comment will be appreciate, but those who experienced this situation and was able to fix it are the most wanted.

PS: I tried every suggestion on other post similar to this one.

LabVIEW version 2018 NI VISA 18

Benoit

Waveform graph resetting during operation want to peak hold

$
0
0

Hello everyone,

I am currently working on data acquisition using a vibrometer in which I will conduct a frequency sweep using a signal generator to my DUT. I have an oscilloscope which I access through labview to get the input voltage and the laser output voltage which I demodulate and apply the appropriate filters. The problem here in the attached files (sorry I couldn't upload the files due to the size of the VI becoming so large so I attached pictures of the code), is that the right data comes through, however, my final waveform graph "Displacement (nm)" has two unknown outcomes. There is a case statement to keep the input voltage within a range (this is fine), I removed the pump to my vibration table to be fixed so sometimes I have an erratic one of signal that I use the second case structure if the magnitude is less than 0.2 nm than the signal is fine and to add to the waveform graph. However, if this condition occurs, then the write to graphs both stop as in "Front Panel.PNG" where it wont write to the graph the next time it operates. This is the first problem I am having anyone know the reason for this?

 

The other problem I am having is that when I increase the sampling time of my oscilloscope to obtain more frequency bins for the peak hold FFT to make the frequency response, is that the df value for example shifts like this 999.99, 999.98 and 1000 and this causes the graph to rest every time but as I said I want to keep the whole graph as this will build my frequency response of my DUT. You can also see this on the "Frontpanel.PNG" df = 9999.99 for that test, however, it can change to 10000 and the whole chart resets which is not what I want. I changed this manually in the cluster but this resetting still occurs. 

 

The problem is getting the data to build on the graph, I want to increase the sampling time of my experiment to get more bins to build a better FRF but these problems have now occurred

 

The hardware is a vibrometer attached to a teledyne lecroy 725zi-A and PC connected through LXI to labview and the LC oscilloscope drivers. The function generator is a R & S SML01 that I manually configure the sweep. I just access everything through the oscilloscope into labview

 

 

Any help you may have is most appreciated

Thanks,

Tanju

Panel Resize event pile-up

$
0
0

I have an application with a few panes and a subpanel in one of the panes that is set to fit to pane. When resizing the window the fitting of the subpanel is not quite smooth. I created a test VI and got the same results. The event fires pretty much on every pixel resize, but when I resize quickly, it actually seems to choke. After I slow down or stop resizing I get a whole slew of resize events at once! Now I know that, I have found a way to deal with that using the "flush event queue" function, but that doesn't solve the rather clunky panel refitting.

 

A control statically set to fit to pane will only do that after releasing the mouse. To get smooth refitting I use the "FitControlToPane" method. Still, it is cluncky.

 


SISO TDD OFDM example on NI USRP-RIO

$
0
0

Hi all,

I am working on SISO TDD Example with labview NXG and USRP 2944. I am looking for a control in transceiver_top.gvi  indicating  the status of USRP TX, e. g., a boolean which is true when the TX is active and is false when it is in RX mode.  Any help if there exists such an FPGA control in this example?

 

Thank you

Labview 7.0 install, Windows XP mode, LVCore10.cab error 1335

$
0
0

Hello, I am trying to install Labview 7.0 in Windows XP mode. The laptop is running Windows 7 professional 64bit.

 

I receive the following error during installation:

"Error 1335. The cabinet file 'LVCore10.cab' required for this installation is corrupt and cannot be used. This could indicate a network error, an error reading from the CD-ROM, or a problem with this package."

 

Labview installs fine directly in Windows 7, so I assume there are no errors on the CD.

I have also tried copying the CD to the virtual XP's C drive and install from there, however I get the same error.

 

The reason I am trying to install Labview, in virtual XP mode, is because I will also need to use DAQmx 8.1, and this will not install on Windows 7 64bit.

UDP Receive from an external device with a set port

$
0
0

Hello,

 

I'm trying to receive data(only receive) from an external sensor that is communicating on Port 10111 via UDP. I'm having trouble very similar to https://forums.ni.com/t5/LabVIEW/UDP-receiver-does-not-receive-messages/td-p/3324917. Wireshark shows the UDP Packets rolling in, but I can't get LabVIEW to receive them. I'm unable to completely disable the firewall for testing due to IT restrictions, but I was able to put in rules to allow UDP communication through port 10111.  I'm using LabVIEW 8.0. The value I put in to the "Listen to Port" control is "10111". When the VI is running, and I use the netstat -an command, I do see the port 0.0.0.0:10111. Anyone have any ideas? This seemed like it was going to be so simple, but I'm stumped. 

 

Thanks,

Jonathan

compare 2 1D arrays of doubles

$
0
0

I have 2 1D arrays of double values

 

image.png

I would like to convert each of them to integer values (val1=373150 val2=373146) so that I can compare which is larger.  For this case val1 will be larger than val2.  

How can I store real time data separately for each channel, and display on front panel for particular channel?

$
0
0

Hello,

 

I have single device with four different channels. I am receiving raw for all the channel through TCP/IP. I decode raw data, and I got channel number and cluster  (cluster contain three decimal values).

I have one class(Instrument) for single device, and four class(Channel) for each channel of device. One Channel class is dedicated to particular channel of device. 

 

which element do I need to use as container? 3D array, waveform chart, or anything else...


I want the functionality on front panel like below.

I have listbox. Listbox contain 4 different channel.  If user select channel 1, then waveform chart should display all the data of channel 1.  If user select the channel 2, then waveform chart should display all the data of channel 2 (remove the data of channel 1).

 

 

Setting DIO in Agilent MSO-X 2014 based on the Trigger

$
0
0

Hi 

 

Is it possible to set the digital IO in Agilent MSO-X 2014 based on the Trigger In on the back of the oscilloscope (or any other digital IO form the front panel)? 

 

So basically is it possible use the digital bus as DIO for that scope?

thanks

Pawel

 

Speed problem on PXIe-6591 DRAM Acess

$
0
0

I have several megabytes in DRAM that are batch loaded.  Once done I need to walk sequentially through the addresses, retrieving the data.  I am working in a 156.25mHz SCTL.  It works fine and I get all the data, but very slowly (relative).  I do a very tight loop of two states.  One does the request and the other does the Retrieve and coverts the data and puts it into a FIFO.  The Retrieve takes hundreds of clocks for each valid data.  There are no other actors associated with the DRAM, I am the only one accessing it.

 

I found it by putting a counter on the number of clocks with valid/non-valid data.  I am in a very time (aka throughput) application.

 

 

 

 


NXT Programming with Case Structrue

$
0
0

I tried to use Case Structure to Program NXT. I used Touch sensor. But it does not work. Can any one put a VI with touch sensor and drive the motor. Hope to hear from you. 

 

Thank you. 

Keyboard button count

$
0
0

Hi there,

I want to use Labview to achieve a count that can be obtained in the non-focus window when a button on the keyboard is pressed.

When I put Acquire Input Data.vi under timeout, I can achieve the function I want, but the count is not accurate. Pressing the button once will sometimes miss the number of times, sometimes it will increase several times.
When I put Acquire Input Data.vi under Key Down, the count is stable but I can't count in the non-focus window.

Have any way to solve this question?

Ball and Beam Conrtol Help

$
0
0

I am making a ball on beam project. I just wanted to know how to make a unstable transfer function function. the ball on beam model is 0.21/s^2 and i want to make it stable so that i can control it using pid. please help me out in this problem . Im writing the code in labview Rt.

LabVIEW simple pendulum simulation

$
0
0

Hi,

 

as part of my course I've been tasked with building a simple pendulum with only 3 hours of training on LabVIEW. I looked at the example and it doesn't look very simple! I'm not being defeatist, but I haven't even got a grasp of the fundementals of the program and have never done coding. Any suggestions on a crash course in pendulum design?

 

Many thanks

How to use Butterworth filter in myRIO 1900

$
0
0

I am reading force sensing resistor (FSR) and single axis load cell data using myRIO inside a timed loop running at 10,000 Hz. I wanted to filter these data to remove noise using Butterworth filter. I don't know how to use it. Please help me on the same.

Viewing all 69594 articles
Browse latest View live


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