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

Funcion Digital Read Pulse Width

$
0
0

Hola, necesito ayuda con la funcion Digital Read Pulse Width. Cuando le doy al boton de "Run" me sale el siguiente error:

 

Digital Read Pulse Width.vi >>
Check Channel.vi<ERR>
The specified Digital Input channel (0) is not available on the Arduino Uno.

 

Estoy trabajando en un programa para detectar el color y que me de una señal de voz sobre el color que se esta observando. Estoy utilizando un sensor de color TCS 3200 que funciona con el sistema RGB. En el programa estoy tabajando con los pins digitales 2,3,4,5,6 y 7 de arduino UNO. Los pins 3 y 4 son para obtener el 100% de la frecuencia de salida, los pins 5 y 6 son para canviar de filtro (rojo, verde y azul), el pin 7 para encender y apagar los LEDs del sensor y el pin 2 para obtener la frecuencia de salida. Estoy reproduciendo el codigo que tengo en arduino y tengo problemas para recrear la funcion pulseIN() de arduino.

Soy nuevo en labview (solo llevo un 1 mes) y cualquier ayuda sera agredecida. En el VI que adjunto solo he puesto parte del programa, no todo porque primero quiero que me funcione lo de detectar el color. Tambien he adjuntado el "datasheet" del sensor para si alguien quiere informacion sobre el. Solo pido saber que significa el error que tengo y como lo soluciono, nada mas.

 

Gracias


Raspberry PI installed uncorrectly on LabVIEW 2014 with LINX 3.0 (yellow warning)

$
0
0

Good Afternoon everybody

 

Well I create this thread because I cant connect with my RPI with LabView2014, i going to put different screen shots, as you can see i already install the LINX 3.0 on my computer.

 

My computer sistem

-Windows 10 64 bit

 

Already Installed products

-LabVIEW 2014 32 bit

(this labVIEW I downloaded from the link of the tutorial PDF) 

-LINX 3.0

-Control Design and Simulation Module

-MathScript RT Module

-NI VISA

-VI Pakage Manager

-Also i have my license for the activation

 

I going to upload others print screens in this same post

 

Thanks

 

Ruben Rhico

 

Visa Serial Write Delays

$
0
0

Hello,

 

I am using the LabVIEW Serial Vi's to send commands to a DUT. I am using the a Sparkfun USB to Serial cable for the interface, directly connecting to the TX and RX pins of my DUT (an MCU). I am able to send and receive data without any problems or data corruption, It is just really slow.

 

There is up to a 5 second delay in between seing the message get written to the Serial Write VI and me actually seeing it post to the MCU. I have a scope attached to the TX/RX signals to see when this occurs. Luckily I am only doing 2  writes of 4 bytes, so there is only an additional 10 seconds of delay, but with it being wrapped in a teststand sequence, the delays will add up over the hundreds of iterations. 

 

Has anyone seen this before? Any Ideas of what I might be able try?

 

Thanks.
Mark

reuse data from the input to a sub vi

$
0
0

Hi,

 

I hope i can explain this well enough,  i have a subvi that has a string input, it reads the string and processes it. this subvi gets called quite a few times.  each time with a different input, now i need to  call it/run it and have it remember the previous input and merge it with a new input.  i can deal with that part easy enough with a boolean input so i can switch between the current input or the previous input + new input.  its getting the previous input data i am struggling with, i cant read control because it will read the new input i am sending it.  i hope your still with me! 

can anyone suggest a way to do this?  i guess i could use a global variable, but i always hear people say to stay away from them.

 

Thanks

HELP!! Converting exported power spectrum graphs into legible data

$
0
0

Hi All, 

 

I am having a really rough time with this...I took some data using labVIEW, and I took the power spectrum of the signal. I set the sampling rate to 1k or one thousand samples per second, and took the data for 30 seconds. I exported the data to excel, and now excel is taking all of the sample data and summing them in the graph, its not giving me the right magnitude, or the the frequencies of the peaks in the power spectrum. I am completely lost. Any help would be greatly appreciated. Thanks. attatched is an example. 

Help for movement tracking project

$
0
0

My project requires the software to do this:

A stationary camera will be overlooking a small room. Any moving objects will be tracked and a box overlay will be placed over the subjects for easier human identification. Note that it could be any random movement like humans walking, balls rolling etc.

 

So far using the Vision Assistant, I could only manage to track specified targets which required user input. However, I need it to track any random movement. Any google searches would bring me to this type of tracking as well.

Can anyone help me with this? Any examples, explainations, links, sources, videos, or even a semi/fully completed VI would be greatly appreciated. Help please, I'm new to LabView.

Thank you everyone. 

Unable to read arduino pin value in labview

$
0
0

sir i have measured voltage using resistor by connecting arduino but iam not able to see the value in labview the numeric indicator showing zero value

About the counting of true or false condition.

$
0
0

Dear All,

I want all of your corodial help for the attached lab view program.

  • I Want to count the number of true or false condition in a program after each time running.
  • If the condition greater than 5 or 10 iwant generate a message.
  • After the condition true i want to also generate a message but after generating message i did not reset untill close the program.

Please help me about the above problem.

Thanking you

Abu Hanif Md.ripon

M.Sc research student of chittagong University of Science and technology (CUET)

 

 


the readings are not changing

$
0
0

hello. im still new to this software and facing a problem which is the readings from my arduino are remain the same every sec. please help me. thank you Smiley Happy

oscilloscope data reading problem

$
0
0

Hi 

I have ''siglent-sds1000x'' oscilloscope which I ran it with LabVIEW, today I faced a problem. when i run my programme in tow sequence data reading, one of them shows data samples 0 and the other one works fine and so on!
 the interesting point is that my programme has worked fine until today i faced a crush in my data reading. 

here is my programme : 

I'll be grateful if you can help me with my problem Smiley Happy

Multiples of a number

$
0
0

If I had an array, and I wanted to build a different array that are multiples of a specific number, how would I go about it?? THANK YOU!!

Webcam with myRIO

$
0
0

Hi,

I am working on a surveillance robot with myRIO and needed help with choosing a very cost effective camera, under 20$/₹1200. Currently, I am not doing any advanced processing, but I need a camera that gives me continuous video, without any lag. Can someone please help me out with the available choices?

Thanks

System Exec.vi "Wait Until Completion" uses a Lot of CPU. HELP

$
0
0

I am writing an application that calls parallel instances of an external program. I have working code to run the EXE with the System Exec.vi. When the Wait Until Completion input is set to true on the System Exec.vi LabVIEW uses all my CPU. The EXE I'm running is a low intensity exe and if I don't wait until completion LabVIEW does not have high CPU usage. This would be fine but I have code that needs the EXE to finish before moving on. Am I doing something wrong? I couldn't find this behavior as a known issue so I would like a sanity to make sure I'm not making any dumb mistakes. I have attached a demo that recreates the issue. The VI calls the EXE with Launches notepad and then updates the notepad text. I have attached the source code for the demo EXE as well.

 

Problems with arduino labview Interface

$
0
0

i tried to interface labview with ardiuno but it didn't work. it can't control the simple led control on ardiuno uno board. 

there is an error warning in lifa base compiling i think its the reason of this problem. how it can be fix????

.

C:\Program Files\National Instruments\LabVIEW 2013\vi.lib\LabVIEW Interface for Arduino\Firmware\LIFA_Base\LabVIEWInterface.ino: In function 'void processCommand(unsigned char*)':

C:\Program Files\National Instruments\LabVIEW 2013\vi.lib\LabVIEW Interface for Arduino\Firmware\LIFA_Base\LabVIEWInterface.ino:150:60: warning: left shift count >= width of type

duration=(command[8]+ (command[7]<<8)+ (command[6]<<16)+(command[5]<<24));

^

C:\Program Files\National Instruments\LabVIEW 2013\vi.lib\LabVIEW Interface for Arduino\Firmware\LIFA_Base\LabVIEWInterface.ino:150:77: warning: left shift count >= width of type

duration=(command[8]+ (command[7]<<8)+ (command[6]<<16)+(command[5]<<24));

^

C:\Program Files\National Instruments\LabVIEW 2013\vi.lib\LabVIEW Interface for Arduino\Firmware\LIFA_Base\LabVIEWInterface.ino: In function 'sevenSegment_Config(unsigned char*)':

C:\Program Files\National Instruments\LabVIEW 2013\vi.lib\LabVIEW Interface for Arduino\Firmware\LIFA_Base\LabVIEWInterface.ino:632:41: warning: iteration 7 invokes undefined behavior [-Waggressive-loop-optimizations]

sevenSegmentPins[(i-1)] = command[i];

^

C:\Program Files\National Instruments\LabVIEW 2013\vi.lib\LabVIEW Interface for Arduino\Firmware\LIFA_Base\LabVIEWInterface.ino:629:3: note: containing loop

for(int i=2; i<10; i++)

^

C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino\main.cpp: In function 'main':

C:\Program Files\National Instruments\LabVIEW 2013\vi.lib\LabVIEW Interface for Arduino\Firmware\LIFA_Base\LabVIEWInterface.ino:632:41: warning: iteration 7 invokes undefined behavior [-Waggressive-loop-optimizations]

sevenSegmentPins[(i-1)] = command[i];

^

C:\Program Files\National Instruments\LabVIEW 2013\vi.lib\LabVIEW Interface for Arduino\Firmware\LIFA_Base\LabVIEWInterface.ino:629:3: note: containing loop

for(int i=2; i<10; i++)

^

Sketch uses 18,070 bytes (56%) of program storage space. Maximum is 32,256 bytes.
Global variables use 1,116 bytes (54%) of dynamic memory, leaving 932 bytes for local variables. Maximum is 2,048 bytes.

 

Input sound from microphone into dB indicator

$
0
0

Hi,

I wanted to know if it was possible to use the sound coming from a microphone or sonometer into a decibels indicator in Labview.

I have tried to analyse the sound that my microphone was getting but all I was able to do was measure the sound from a amplitude waveform graph and frequency indicator. My goal is to acquire sound from a sonometer and show it in Labview so that I can attach leds to the results.

 

Thanks in advance!

-Melissa


Networking multiple deployments of like application architectures that use network shared variables

$
0
0

I am currently involved in the development of a project that has been implemented using LabVIEW 2015 RT/FPGA onboard a 9068 controller and a TPC HMI. We are experiencing pretty successful results in its current state, receiving good feedback from customers and other interested parties. These systems are deployed to a field environment, usually 1 or 2 systems (possibly more) and do their process control/monitoring jobs locally without knowledge of one another. The system does currently use 2 network shared variables, (FGVs for anything else local) one of which is for issuing UI-generated commands to the RT and the other for an overall system status for the UI / any other potential host to update its panel from. I have attached an image of the architecture, borrowed from the cRIO Developer's Guide, since it is more or less a good representation. For a while now, I have been wanting to add the ability to do 3 things, and wishfully 4:

 

1.) Build an application for customers to monitor each controller's data on a (Windows) tablet, read only

2.) Build an application for employees to control remotely on their assigned laptops (currently done, but it is only local and is merely the TPC application with different Appearance/display properties) 

3.)  Merge 2 or 3 data points from each system at the end of a job to form a cumulative value for a final report (currently I have to print the 2 tickets and manually combine)

4, wishfully) Be able to control one system from the screen of another.

 

One of my biggest hesitations is networking these installations together with them currently using shared variables. From what I understand of the PSP, it's not an option because this would cause a race condition between the two systems since they are configured as shared variable nodes and not programmatically identified by IP/machine ID. I often find myself thinking of workarounds that address the majority of the above wants, but they always seem like somewhat of a hack. For example, I am not currently using NIC 2 on the RIO of each installation, so I could just send TCP messages to a static IP address on an isolated network allocated to a (wireless) customer tablet and not involve any shared variables. I however still want to network both RIOs to allow the technician's laptop application to be able to control everything wirelessly, in addition to the synchronization of data on each RT target at the end of a timeframe. It just seems like an overall better idea to unify the network model and build a communication handler to distribute data to differently identified client types. 

 

This is where I'm unsure of the most suitable solution. The cRIO Developer's Guide makes mention of some Labview-proprietary (PSP/streams) and open-standard types (STM) of network communication methods, but this doesn't fully address the architectural issue of this task. Does anyone have any good recommendations for developing these (N:N?) models of communication with differing client types that could all interact on the same network? Any white paper references? 

 

Thank you; if I have been vague about anything please correct me. 

 

 

interpolate 1d array

$
0
0

Is this is interpolation array works as per Newton-Gregory forward interpolation formula.As i am not getting exact value in programming.kindly look into the attached pic for reference...as per formula i am getting 214.6875...but using programming i am getting 231.5...can anyone help me

Labview VI stops working after one launch

$
0
0

Hello,

I am developing a labview program for using with my microcontroller for two stepper motors.
So far I just have a testing app, which would just connect to one of my steppers and move it to left. The problem is that after one run of a program, every other time I push Run(play button) everything stops immediatly after I do that and nothing happens. It only starts to work after I restart my computer. Does anyone maybe have any ideas about the problem?

Vertical line on XY-plot

$
0
0

 

Trying to insert 1 vertical line on xy-graph, but get several. Can anybody give me a hint on what I have done wrong?

 

Capture.PNG

snip.png

Tab Control behaving like it's disabled but not

$
0
0

I have a tab control that has stopped working at run time. It is acting like it is disabled when it is Enabled. At edit time I am able to click on the tabs and they visually change. When I run, clicking on the tabs does not change tabs.   I have reduced the vi to a simple loop with 200 mS delay and the tab, with nothing else. The tab controls is the only thing in the vi.  I have ensured that the tab is Enabled in Properties dialog box. I did notice one odd thing: the Key Navigation tab (in Properties), it is all greyed out.  Again, the tab control in in fact Enabled but it is behaving like it is not. I have tried recompiling. Is there some other setting? Why is key naviation greyed out? I am using LabVIEW 2015.  Thanks!

2016-10-31,  LV 2015 Tab Control not working.png

Viewing all 67316 articles
Browse latest View live


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