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

labVIEW code running control using Timer

$
0
0

I have a LabVIEW code which needs to be timer control in terms of code running. The code should work as follows?

1. Need a timer that resets every 60 seconds.

2. From 0-30 seconds, the code should write the value 0(zero) to Modbus register 9 of slave device address 5

3. from 31 - 60 seconds, the code will write the value 256 to same Modbus register 9 of slave device address 5.

4. The timer will reset to zero  and this loop continues for every 60 seconds.

Does anyone in the forum got an idea or a typical LabVIEW code that can perform the above function?


Reassign shared variable hosts in bulk?

$
0
0

We have two targets. We have large numbers of shared variables shared between them. But they are not shared properly. They are shared only in the sense that they both refer to the same file location on my PC. But on each target, it thinks of itself as the host for its variables. Each one refers to its own shared variables instead of both of them looking to one target to be the host. I would like to get rid of one of the sets of shared variables and point all of them to the same element in the other.

 

Is there a not-absolutely-terrible way to do this?

NI VISA

Easy Print Front Panel VI changes Graph on PDF file

$
0
0

I am having a very strange behavior. I have a VI that contains a graph with 11 pens. One pen is on a second scale. When I print this front panel the line on the graph for the 11th pen is inverted. the scales have not changed. I have tried to create a new vi and it worked once until I saved the vi. I have tried 3 different drivers and they all do the same thing. I used the same code before without any problem on another project. I also tried using the report building method which worked but the graph turned out small and distorted on the file. I am running version 17 on windows 10 pro. I am running out of ideas.

control servo with a boolean

$
0
0

Hello.

 

I am trying to control a servo motor in LabView using a boolean switch. When pressing the switch the servo should go from 0 to 90 and when pressing it again it should go from 90 to 0.

I was able to move the servo using a numeric control, but i just cant figure out hot to control it with a simple on off switch?

I would really appreciate any help/idea! thank you 

Re: Read large wav files

$
0
0

I am having trouble reading .wav files greater than 1 GB. It seems the position offset is not offsetting - I keep getting the same set of points even though the offset out is incrementing. This happens no matter how many samples are read - even a small number like 256. No problem for files less than 1 GB. I am running 64 bit labview with 32 GB ram.

Sending hex file on USART using labview

$
0
0

Hello everyone,

"A BUTTON IN LAB VIEW THAT SHOULD WORK ON BACK END TO BURN MY CODE IN u-CONTROLLER THROUGH IAR-EMBEDDED WORK BENCH"

I am using ARM cortex M3 micro controller and IAR embedded workbench for programming this controller,and i have successfully read and write data using VISA in lab view. At this time i have to  press RUN button in IAR embedded workbench to burn hex file into micro controller. Now I want to make a simple button in LAB VIEW GUI that,  when i press it should burn this code into my micro controller automatically.   

 

Is it possible? if yes, please guide me i will be very grateful to you. 

Recevoir de donner d'un instrument

$
0
0

Bonjour,

j'ai besoin de votre aide s'il vous plait.je veux  prendre certaines informations d'un décodeur(Récepteur de TV) c'est à dire ces identifications.

 

Ficher log: interaction entre PC et STB

 

Lecture SNCIE..

[13:24:20:853] [PC > STB]

FLASH_Read CIE_SN CIE_INDICE CIE_CODE

[13:24:21:163] [PC < STB]

FLASH_Read CIE_SN CIE_INDICE CIE_CODE

                  CIE_SN = 70739058025170

                  CIE_INDICE = G1

                  CIE_CODE = 25377178-6

 

je veux traduire tous ça avec Labview et je veux l,'affichage sur Labview.

 

Ce code labview m'affiche warning:

alooooooooo.PNG

alooooooooooooooooooooooo.PNG

 

Cordialement,

 


Editing the Array from Front Panel

$
0
0

I am reading a string spreadsheet from my pc, I want to edit it then save it.
Is there anyway to edit it manually without using replace element in the block diagram ?

Data acquisition

$
0
0

Hi there,

 

I am using labview to acquire a waveform from a RIGOL DS4024 oscilloscope. Even though I have set the oscilloscope's memory depth to more than 7000 points my appended array in labview acquires only 1400 points. I am willing to get more points but I don t know how. I connect the oscilloscope to my pc via an ethernet cable. Any ideas on how to increase the number of data points acquired? 

 

Thanks in advance!

 

John

NI 9411 Quadrature differential encoder: reading angular position

$
0
0

Hello guys,

I have a question regarding the DAQ Assist block to read the encoder (as in title) and how to properly set it up.

In particular, in the timing tab there are three parameters:

  1. Acquisition Mode
  2. Samples to Read
  3. Rate (Hz)

I want to acquire continuously the signal and save it to a file, so:

  1. Acquisition Mode -> Continous Samples. It tells me I need an external clock. Why? How can I solve it?
  2. Samples to Read -> I didn't get the meaning of the buffer size.
  3. Rate (Hz) -> Here I would like to explain better: my system does rotate for example at 15 revolution/s. Knowing the Line Counts parameter of my encoder (that's 2000), I calculated 15 revolution/s * 2000 impulse/revolution = 30.0000 impulse/s = 30kHz. Now, should I consider the Decoding Type X4 and calculate actually 30*4 kHz as the actual rate? More, should I also consider the sampling theorem (nyquist) and actually sample at 30*4*factor kHz (where factor is >= 2)?

I would like your help to properly configure these three parameters.

 

Thanks,

Luca

 

Stop button

$
0
0

Hi,

I would like my stop button to essentially "jump" out of 2 loops and execute the code at the end. I tried a case structure but this only worked to exit one for loop and not both of them.

 

Additionally, i also read theres a way to run program on startup instead of pressing the run button, how is this done?

 

Thanks 

samples can not be displayed fully on chart

$
0
0

Hi everyone,

why when I increase the sample rate or sample number, the data won't show fully?屏幕快照 2019-03-01 下午5.28.37.png

 

msi.dll error on LVRTE

$
0
0

Hi, I have to open new title for my problem.

 

I installed Windows 10 Pro build 17734. This installation was applied to Raspberry Pi 3 B ARM. On the other hand, I have a .vi project to work on it. So I need to download RTE. However I can not solve an error. When clicking unzip on LVRTE 32 bit setup.exe, this process is succesfully. Then, it showed an error. What should i do ? 

 

error screeeen3.jpeg

Writing continuously to excel

$
0
0

Hi,

Ive asked a similar question before but now I understand the parameters a bit better.

My array writes to a waveform chart and at the end exports the graph to excel. However, i need it to continuously write the data to an excel file for the safety of the data. Is write to delimited spreadsheet the correct thing to use?

Thanks


Detect a 0 from a signal

$
0
0

Hi,

I use a function name "Sine Wave PtByPt" to generate a sine with a offset see below : 

 

Détection_0.jpg

Can you help me to find the zero point (here 2V) every period ? Thank for your helps.  

 

Recevoir de donner d'un instrument

calculate FFT from a DSO-X 2024A waveform

$
0
0

Hello,

I'm new to labview and i need some help calculating FFT from a waveform I acquire from DSO-X 2024A.

this is the vi i found online to acquire the FFT however when i try and do FFT i get wrong calculations.

 

Thank you all for your assistance

 

 

Rea File

$
0
0

Can anyone help me to read the attached file in labview (file.raw). Most probably its a Binary File. The file should give the same results as the attached *.txt file as an example

Scaling of charts in arrays of clusters

$
0
0
Moved to original message thread.
Viewing all 69314 articles
Browse latest View live


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