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

Logical Shift 8 bits of 1 byte in LabView FPGA

$
0
0

Hello,

I am trying to implement my own SPI communication on LabView FPGA (NI sbRIO 9607). In order to send a constant 1 byte data, I prepared a vi that is attached to this post (screenshot is provided below). I am trying to send the bits of the byte one by one. I checked the hardware line, it is working correctly, I can send a clock signal on this line with any clock, with a very similar (shift registers and an boolean inverter is used) vi.

Could anybody help me with this issue, thank you.

ONUR YILDIZ

byte to BIT one by one.png

 


trapezoidal rule in labview from matlab function.

$
0
0

Hello guys,

I am facing some issues converting this Matlab code into Labview G-code.

code:

defect(n_defect).area=trapz(t_stamps{n_defect},profiles{n_defect});

 

the inputs are time and an array of samples.

but in labview there is function called IntegralX(t) which does the same but the input terminals gets me confused.

 

 

thanks for your help,

Akash.

 

FIFO buffering problem?

$
0
0

Help please!!

 

I am using Crio-9076 with input card NI9234 and output card NI9263.

The program is attached. When I open tdms file in excel I get 5 columns with 308 sample per columns. Why? I supposed to get 10 000 samples per columns, because I am running the program with 10 000 kHz rate for second? What is wrong?

 

Mikko

Seperate start stop button for analog output

$
0
0

Hi here i need to create analog output with start, stop and reset button i have attached vi here take a look at this i want to start sending the analog output and i need to stop at certaian value and i again i need to start and also i reset button but in the vi i made it was not working properly is there any other method to do this, need some ideas here quickly,

Regards,

Dinesh

 

Channel wire does not pass values

$
0
0

Hi guys,

 

I am measuring two edge separation of two signals and main goal is to achieve those delays and analyze them in postprocess. However, next requirement is to make "real-time" update during measurement, so user can see, how measurement is going for example every 1 second. So I used parallel loop and I am sending data through channel wire. Nothing goes through this channel. I do not know why and cannot find the problem here.

 

two edge separation.jpgCounter.png

 

Thank you in advance for any input.

 

Martin

TDK Lambda Communications Error - NI MAX & LabVIEW 2015

$
0
0

Hi All,

 

I have 3 TDK Lambda GEN20-76 voltage/current supplies that I am using in a test system. I have the 3 units connected together through serial and out of a single unit is an RS232 cable going through a BrainBox Serial - USB connector (RS232) into a USB port on my PC. These units allow you to combine them all together and only use the one communications cable to talk to all 3..

 

My problem is that I cannot communicate with the units. I have installed the Brainbox software which shows that as a COM port in NI MAX and also in LabVIEW ( and Device Manager) but when I select this COM port and use the default GENser LabVIEW instrument drivers, I get VISA errors not being able to communicate with the resource. I have NI VISA and VISA Runtime installed and I know for certain that the Brainbox converter works because I took it from another system with the same TDK supplies and it can control them just fine.

 

Any ideas on what I could try to debug? The VISA Test Panel doesn't work even to send an ID command on the units. Thanks.

Kvaser LIN Application

$
0
0

Finally!!!  I've finally found a way to read from my slave device using the Kvaser Leaf for LIN  I have a slave device that works with VSPY software, but for the life of me I coudn't get it working with LabVIEW even with the provided Kvaser examples.  Their examples just didn't seem to apply to my application.  I finally cracked the code.

 

I hope this helps just one person as this took me forever to figure out.

 

The original code had me transmitting my message with my header and then transmitting my second header and then reading.  It turns out you need to put a receive msg vi after the first transmit and a second receive message after the request message vi with 20ms delays between each.

 

Wrong Approach:

Write Message -> Request Message -> 20ms Delay ->Read Message

 

Correct Approach:

Write Message -> 20ms Delay -> Read Message -> Request Message -> 20ms Delay ->Read Message

 

If anyone has any questions I'll be sure to assist in any way I can.

 

VI is attached.

 

Regards,

 

-Nick

 

 

 

 

Communication between Virtual PLC and LabVIEW via Modbus TCP/IP

$
0
0

Hi,

I did some programs on LabVIEW which can communicate via MODBUS TCP/IP between 2 PCs. But now I would like to use a Virtual PLC which deploy a virtual IP adress. Therefore I could use my LabVIEW program to communite with this virtual PLC.

could you please advise me which Virtual PLC that I can use ?

someone here have already try it please ?


LabView and myRIO project VI communication

$
0
0

Hello all!!! Am having a doubt communicating two VIs one from myRIO and another from Labview VI. Which variable should I use to communicate the two VIs? I need to get the data from myRIO continuously to the LabVIEW VI. Kindly help with this....

 

Thank You in advance!!!

Labview, arduino compiler, TCP

$
0
0

Hi

I want to program my arduino with arduino compiler for Labview. I also have WiFi module. The TCP communication is working good. I attach VI's where on PC I send 3 doubles and arduino receive it, send back, PC read it and display it. What I want to do is sending commands for arduino, interpreting data send to arduino (calculations, etc.). How to do that? In arduino block responsible for reading data from serial puts out 1D array of U8. I don't know how to deal with it.

 

 

changing plot color of graph based on conditions

$
0
0

Hi!

I've been struggling with a labview project where you need to change the plot color of a graph based on the seconds that need to be ignored,(see attached image) The seconds in the beginning and end and some in between need to be ignored/shown in red.

My idea is to use the select tool to determine the plot color of the xy graph, not shown in image. If I do this I can't determine plot color of the graph for the slices to ignore because it is a 1D array. How do I fix this?

Thanks!

 

Performing self CJC on 9212

$
0
0

I have a need to perform my own CJC with a cRIO and 9212, and I was wondering how I can do that using the Scan Engine.  I came across this, http://zone.ni.com/reference/en-XX/help/373197G-01/criodevicehelp/crio-9212_rt/ and it mentions "The Scan Interface applies cold-junction compensation to NI 9212 data returned in temperature units."  What it doesn't mention is if I select "Raw Volts" under the modules properties is uncompensated or not.  I am assuming that it isn't compensated and free for me to do my own compensation if I select the Raw Volts option.  

Front panel scales up when running, picture does not.

$
0
0

Hello,

 

I'm developing a kiosk like program to run on a 1920x1080 touch monitor and display real time data to customers during a tour. The problem is that I'm also developing it on a 1920x1080 monitor. When the program is run , all of the borders and menus present in the IDE disappear and cause the controls to scale. They are close, so it isn't much of a problem, but it really screws up the one picture I display:

 

Good.PNGBad.PNG

 

I've see a bunch of posts about resizing, and thats ok, but best would be some way for me to design the front panel so it doesn't scale up at all. Is this possible with a monitor the same size as the target display? Failing that, can I force the frame to fit the picture and still let the rest of the controls scale? Could I programmatically figure out how much the display has scaled and apply that to the picture? Some other way? I'm very new at displaying pictures so forgive me if I've missed something obvious.

 

Thanks,
Simon

NI-VISA read instrument Model/Vendor

$
0
0

I've been looking all over but have been unable to find any information about reading the Model or Vendor information about an instrument. If I open up NI MAX and expand Devices and Interface, I can click on the VISA interface for my instruments and see the Vendor and Model information for all my GPIB and TCP/IP connected devices. Is it possible to read that same information using the NI-VISA driver? I'm using NI-VISA 17.0 in C#.

 

Thanks

Plot data from .csv

$
0
0

I have a vi that make plots from .csv file.   

However, I need to modify the vi to be more friendly for end users.

The current vi does

1. have options to display 1,2,3 or 4 plots on the front panel

2. x-axis is fixed with time

3. y-axis can take up to four sets of data (y-axis only has one unit scale)

The vi after modification need to be able to

1. select data for x-axis

2. y-axis need to have primary and secondary unit scales for different data

My problem

I think the current vi code has some code smells.  

I would like to learn the best practice and approach before I start messing the code or even rewrite the code. 


Waveform graph

$
0
0

Hi I´m trying to create a temperature/humidity display control with LabVIEW. I´m using visa to obtain the info from the different sensors and want to display them with the waveform graph but I´m having some problems. I don´t know why it keeps giving me a wrong graph display, it displays the right values but the graphs tend to cero then and stays like that. I attached the vi so someone can help me.

 

Kind regards.

How to check if file has right extension(file type), if true, pass it along

$
0
0

Hi,

 

I am extremely new at LabVIEW programming and wish to implement a basic read file from text file.

 

So far I have this set up:

basic.PNG

I got the compound arithmetic function to output true for both conditions, but I am confused as to how with that boolean condition to make the program pass along the file.

 

In addition, is there a function to read incoming text files with numerous columns and fix the spacing between columns to be read into an array and utilized? 

How can I read all values for Y with Multi-Plot cursor

$
0
0

Hello,

 

I am trying to make a software which will be able to process the data form two charts. I wan to use cursors to read the data from the charts.

Here is my issue. When I try to read out the value with CrsrList property it returns only the value for the first chart. I can see the two values on the Cursor Legend, but I can use only the first one.

Example.JPG

How can I use one cursor to read and use values from many charts?

 

I have read few answers in different topics in the forum but I find them difficult to understand. I hope to get an example here.

Attached is the VI from the picture.

 

Detecting value change without event case

$
0
0

Hello Community!

 

I have an application that uses a boolean controler to make a string controller visible. In this string controller the user must insert the password to change from normal user level to admin level. An event structure triiggers an event on change value of the boolean controller. Can I in the code for the same event, detect when the password has been inserted by the user? Attached to this post you will find screenshots of the code. Thanks in advance for the answers

Reading power values via serial Modbus RTU power meter (slave) at LabView

$
0
0

Hi all Smiley Happy

I'm kinda new to computer communications and also Modbus. It took me already a month already and still couldn't make it work. After whole other problems that were solved, now I'm dealing with a (probably simple) problem of reading holding registers correctly, and it drives me nuts. I have a power meter (SIMEAS P50 by Siemens) connected to an 3-phase electrical heater. The device has its own parametrization programme and I can read the values from there. So I assume there is no issue about the connection and the configuration of SIMEAS P50. However, I need to read the active power usage in LabView. I'm trying to use ModBus library for this, since I don't have the DSC module. I'm using the small exemplary vi that I made to read out holding registers. I think I only get the initial part of the response from the device. The value shown is always "Register Address X 256". The rest is not visible. I couldn't even come to this post's level: https://forums.ni.com/t5/LabVIEW/modbus-example-for-receive/td-p/1015357.  What am I missing here?

 

-I've tried all different supported communication protocols Modbus ASCII and IEC 60870-5-103, but I have the same issue.

 - I have tried all Modbus examples on internet and they all give the same issue.

 

I use LabView 2011.

 

I'd very much appreciate your help.

Kind regards,

Kaya

Viewing all 67081 articles
Browse latest View live


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