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

Architecture Help : Event queue

$
0
0

I am trying to make a rather simple vi (Test VI.vi is attached) where i press a button to make an LED blink and then to stop it. I have an event structure in each of the three different states Init -> ON -> OFF. Init waits for either the Play button or the Exit button to be pressed. If the Play button is pressed it will go to the ON state and after a timeout (as decided by time On) it will go to the OFF state (and then back to the ON state after time OFF). If the Stop button is pressed in either of these states, the program goes to the init state and waits for further commands. While this works for the first run, it becomes erratic from the second run.

 

I figured the issue was that when I call the Stop button, the event structures in both ON and OFF states irrespective of which state the program was in was called. I assume the structure in the called state was processed and the other call went into the queue. I tried to find a way to forcefully flush the queue, but I couldn't find a proper way to do that. Can someone help me with this problem? I am rather new to the labVIEW programming environment. I would be happy to read up on the architectures if you could point me to one. 

 

Thank you


frame detection in serial port

$
0
0

Hi every body .i have a problem in making a VI to detect frames in serial port.

i wonder if anyone can help.

signal filtering

$
0
0

Hi,

Greetings. I have attached a feedback control code here. The code works well. But due to the sensing value fluctuation, I want to add a filter. I added a Savitzky Golay filter, but the code didn't perform as before. Is it due to the sample rate?

Would anyone explain the problem, please? Thanks in advance...

Normal condition.JPGSignal_processing.JPG

Reading a bitstream using digital I/O/counter

$
0
0

Hello everyone,

 

 

I have a device needs 10x period 80% PWM signal, 10x period 50% PWM signal and 10x period PWM Signal to activate sending serial data (baud rate 9600). How can I read the serial bitstream using a digital lines or counters (NI USB 6341). There’s an example program?

 

thanks a lot for your help in advance

How receive DDR data in LabVIEW FPGA?

$
0
0

Hello everyone,

I want to use sbRIO 9651 to receive DDR output data from four channels of ADC(LTC2174). I'v tried to use data output clock(DCO) of ADC as SCTL clock for data receiving. But because of DDR, I can only receive the data on DCO rising edge, the data on falling edge will be lost.

According to another post, I'v also tried to use IDDR on FPGA to receive DDR data. It works fine for one channel, but when I instantiated IDDR in CLIP for more than one channel, there was a error report. It seems like I can't instantiate more IDDR. I am not familiar with VHDL.

Anyone have idea, what is the way to receive DDR data in LabVIEW FPGA?

SMTP send email to multiple recipients

$
0
0

I am trying to send an email to multiple recipients use the .NET Constructor. It works great when sending to one email but how do I format the string to send to multiple recipients?

 

Can someone help on how the format needs to look like?

 

Capture.JPG

actor frame

$
0
0
Moved to Chinese board under Regional Communities. Like where your past messages were.

Sending Commands via Serial Communication

$
0
0

I am trying to send commands via serial communication. I have 4 commands (analog1on,analog1off, analog2on, analog2off), for other commands; nothing will happen... I compare the data that is coming from the serial. But after sending "analog1on" via serial communication,  Nothing happen. I assume that I have to keep this data and with this data; my process will not be affected by anything until I send "analog1off" command... Please help me, I am new in the Labview. There is no problem in my communication, I can take data from other com. But I didn't find this problem.

 

 

 

In order to make you understand my code; I am trying to do it.

1) I control the serial com. with my switch and When I make it high, serial communication starts run

2) After initializing the serial communication; I sent "Rs422-on" in every 5 seconds.

3) I compare the data coming from the serial in order to produce a sin wave and square wave.

4) "Analog1on and off analog2 and off" string expression are used for comparison. Please write commands that you sent via serial in it. 


Daq mx for automatic control

$
0
0

Hello, 

 

I am currently controlling a linear actuator by clicking two buttons on/off its actuation. I attached the code. I am just wondering is there a way to set it as a automatic control the actuator- for example, when I run the program, is it possible to have the actuator run automatically or periodically by setting a period of time so I do not need to keep clicking the button for on/off? I was thinking flat sequence structure but I am not too sure. Any suggestions or ideas please? Thank you in advance!!!!!  

It is just a question

$
0
0

I compare one controllable string expression with two constant strings expression(equal?). Constants are "on" and "off" expressions. For this comparison; When I write "on" expression in the controllable string, it will be in true state. After that; when I sent a different expression( not a "on" and "off" expression) I want it to stay in the older state. I want that this different expression doesn't affect my comparison...

Problem:

If it is on, it will make a process, but after sending different expression; it stops...

FIFO - slow write/ fast read, Problem?

$
0
0

Hello everyone,

I have two questions about FIFO in LabVIEW FPGA. When the clock of FIFO writing side(70Mhz) is slower than the clock of reading side(80Mhz), then the reading side will indicate Timeout signal. But I can still read out data continuously.

My questions:

Is there data loss in reading side?

Or even if there is a timeout signal, the reading side will still wait writing side until data is readable?

Thanks

カメラ

compare waveform values.

$
0
0

Hello this is Bharat,

 

I have two type of wave form 1)Force and 2)Energy .I considered both waveform as Array.

My problem is i want Check energy value when the force waveform is reach the next index of zero value( means force move from zero to maximum and maximum to again zero...)   ..

please anyone help me..

 

 

Regards,

Bharat.

how to subtract graph

$
0
0

20190805_145203.png

One graph is in the form of y=x, the other graph is in the form of y=x*1/2 and the x value is from 1 to 20 in Excel. But I keep getting errors if the price doesn't match. What's wrong?

How to burst multiple pattern(.digipat)

$
0
0

Hi, I have a problem about schedule different patterns(.digipat). Questions are as follows.

  • Digital pattern editor can't do scheduling actions (Fig.1. [1~3]), so I use LabView to implement it. The result is shown in Figure 2, but the results are not as expected.
  • Start label in Figure 2 seems to only specify one of the Pattern files (.digipat) for burst, what should I do to achieve the scheduling function of Fig.1. [1-3]?

Thank you.

 

Regards,

 

ZT

圖片1.png

Fig. 1.

 

 

圖片2.png

Fig. 2.


Loading a DBC file XNET

$
0
0

Hi!

I am a newbie in LV programming.

I am trying to create a LV program that makes a communication with a CAN interface. 

I have to load a DBC file and I do not want to always put it manually everytime I change it in the home directory of the program. 

I made my program search for the .dbc extention and extract its full path: ex: C:\Data\Users\name\Documents\Labview\DBCFile.dbc.

Now, what I want to do is to open this file via XNET Database and have it as a Cluster, an easy thing to do if you select it manually everytime. 

Is it possible?

I am sorry for my bad english.  

Data Container with comboboxes with differentes values inside

$
0
0

Hi!

 

I have been trying to do a part of the project I am working on for two weeks. This part consist on the following. 

 

My program reads an excel and save the measurements it contains into many arrays, until that it works. But, I need to include these arrays into comboboxes, rings or whatever allow me to choose a value of these arrays inside a data container. 

 

I can't use an array because as you know, comboboxes in arrays always have the sames values and I can't use a cluster because depending on the excel you read there are more or less measures and can't add elements to a cluster dinamically.

 

I add an screenshot of the frontend I would like to get. I know I can't do it like that but it is just to represent the ideal work of what I need.

 

THANK YOU!

How to remove plot 6, plot 7 and plot 8 from the autopopulate plot menu "Fill Base Line"

$
0
0

Is there a way to remove "Plot 6, Plot 7 and Plot 8"?

Test.jpg

 

Thanks.

 

J-M

Labview Servo Motor VI 5001 error

$
0
0

Hello,

 

I am getting a 5001 error for this labview Vi I have created and I can't figure out why. The three loops are for a load cell (top), servo motor (middle) and MPU-6050. I am trying to get a three running at the same time but keep getting this error. Another thing I am trying to do in relate the reading of the load to stop the whole program if it reaches 110 or -110 for safety in both the Static and Dynamic VI's.

 

The other part to this is trying to maintain a specific  torque throughout the move in the Dynamic VI and I am unsure how to do this with Linx. Help will be appreciated.

 

Kind Regards,

ARD

LabVIEW NXG 公式输入,解析错误?

$
0
0
Moved to Chinese board under Regional Communities
Viewing all 69225 articles
Browse latest View live


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