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

Using IMAQ Create in a parallel for loop

$
0
0

Hello all,

 

I'm doing some image processing within a for loop. The loop runs to carry out the same process on all videos in a certain folder. I'm trying to figure out a way to configure the loop for parrallelism to speed up processing (since each video is independent of the rest). The idea is to be processing 8 videos at one time instead of sequentially. The problem I'm encountering however is that the IMAQ Create VIs are in the loop so the memory locations are continiously overridden by another instance of the loop. How would I make sure that each loop had its own memory location for storing the images?

 

I attached my VI (with for loop parallelism disabled).

 

I appreciate any advice.

 

Thanks!


Questions about Lem-Mar nonlinear curve fitting vi

$
0
0

Hello, I'm trying to fit my data for my model and stucked now.

 

Before asking, here's my model to fit :

 

t = k*I + Ja + uw + T*tanh(A*w)

 

I have same numbers of data series of I, a, w, t.

I want to figure out best fit parameter sets of K, J, u, T, A.

I know this is underconstrained and there might be much of solutions but it's okay anyway.

Any of the solution is fine to use in my application.

 

I tried to build a running vi and model vi, and the vi runs and gives me very crude answer set.

Which means, it only goes 10~12 iterations and it ends and gives final solution, even though I set a ending criteria very strictly.

 

I wanna run at least 10000 or more iterations to fit my data, but it doesn't seem to give an advance.

 

May I ask for an advice in this situation?

below are my vi's and data sets.

can you run two separate vi's in parallel

$
0
0

Can you run two seperate Vi's in parallel? Will this make response considerably slower? 

simulation interface toolkit?

$
0
0

Hi all..

I installed LV2014 & Model Interface toolkit..but I can't find the SIT function in Tool Menu,

Where can I install SIT??

 

thanks!!!

Rotate an object around multiple axes

$
0
0

Hi guys, I'm a little bit confused about the machanism of how to rotate an object in 3D picutre. 

My goal is to let a cone pointing at the origin at any given position, but it seems it's hard to rotate the cone with the 'set rotation. vi' around more than 1 axis.

Is there any intuitive way to rotate an object?

 

It is at (2,2,2), initially it points up in z axis

ini-dir.png  

This is what I want, (I set (1, -0.2, -0.3) and 135° in set rotation. vi, it works but I don't know why :smileyfrustrated:)

id-dir.png

 

Thanks a lot !!!

yhs

variant set attribute- how fast it is?

$
0
0

Hello

 

On NI days there was presentation about variant atributes. There was example saying that variant can be used to remove duplicates from 1D array and this supposed to be very fast solution. I did some test and it seems that it isn't :

 

 

On the other hand variant is very fast at searching once all atrubutes are set up.

 

 

Som my question is how fast is process of setting variant atributes and how this variant structure is allocated and stored in memory.

 

VI snippets attached.

 

FPGA compilation ignores selected Clock Source

$
0
0

Hello All,

 

I am trying to compile an FPGA VI using a 60MHz derived clock. I've attached a screenshot of the relevant code in the top-level VI. 

 

The FPGA compilation succeeds (in a manner of speaking), but the compilation log shows that the VI has been compiled at only 40MHz (as opposed to the expected 60MHz). Again, I've attached the relevant screenshots.

 

My setup:

 

LabView 2014 (32 bit)

LabView FPGA 14

Vivado 2013.4

Development machine: Windows 7 Professional with 32GB RAM

 

I attempted the compilation on the local compile worker, as well as on a remote Linux-based compile worker, and the results are the same.

 

I attempted to restart the computer and try again. Same results.

 

Any help would be greatly appreciated!

 

Best regards,

Aditya

 

 

 

 

 

Sending text (ASCII) as binary code. Beginner.

$
0
0

Hello there LV-gurus.

 

My mission is basically being able to send information one bit at a time and since I have no background knowledge it is a tedious process figuring out how to do so. I'm not asking for complete solutions considering I want to actually learn it, but I am hoping I could get some pointers on what I should read up on or how to make this happen.

 

At my disposal I have a DAQmx, from which I hope to send binary information (or a digital wave) regulating a component that will basically just pass this information on to another (actually the same for now) DAQmx where I want to decode it back.

 

What I'm trying to do, but failing to understand how, is more or less this;

 

Convert ASCII to binary/digital wave. Here I've tried using the string to byte array but I'm having trouble to finding a way to use the values I get in the byte array.

 

How to incorporate a "start/stop listening" signal before/after sending the information.

 

I'm certain there is whole bunch of functions/procedures/whatnots I'm completely missing, so any help or friendly nudges in the right direction is much appriciated. My feeble attempts to scan through the plethora of instructions, help texts and posts relating to this matter has left me stumped.

 

 


Table font size changes when I set other font property

$
0
0

I had anomalous behavior in a VI i wrote so I did the following to troubleshoot it.  Can anybody explain what's going on?

 

I created a table indicator and changed the font size to 36 for a 5x5 area cells using mouse-drag-select and the front panel "Xpt Application Font" dropdown.  I changed one of the rows to font=strikeout using the same front panel dropdown.    I then used the FOR loops and properties as below to change the stikeout property to FALSE for all 5 rows.  Running the VI caused the font size of all of the text to change, even though the CellFontSize property was not set anywhere in the VI.  I manually set the font sizes to 36 again and subsequent runs of the the VI did not affect the font sizes. 

 

table_font.png

robotics CAD Model Converter

$
0
0

I just installed labview 2014 w/ robotics module. I am trying to implement my own simulated environment and can't find the CAD Model Converter vi. I looked in the directory and it isn't there. Where can I find it?  I reinstalled the software twice. Or how can I convert to .ive file?

Thanks,

Rw

labview 7

$
0
0

hola, tengo un par de dudas y espero que alguien pueda resolverlas, se lo agradeceria mucho, el asunto es que quiero monitorear espacios alejados con labview, ya tengo el vi de adquisicion de datos, pero necesito enviar mensajes de emergencia a otros equipos (computadores)y no se como hacerlo, nisiquiera estoy seguro de que se pueda hacer con labview 7, me gustaria saber si es posible, y tambien como, les agradezco la ayuda.

about data flow

$
0
0

I used data flow to write and read values. The problem is, when I open Highlight Execution, the returned value from VISA Read is correct, when I close Highligh Execution, the returned value is wrong. 

 

I was wondering if it is when the Highlight Execution is closed, the program runs too fast, and doesn't follow the sequence of the structure (data flow). Because I need to manipulate the value from VISA read, so the returned value is very important. But if I open Highlight Execution, the program is too slow. 

Does anyone know how to fix this problem?

 

bb.png

problems with write to measurement

$
0
0

My project group has some problems with the write to measurement VI.

 

Firstly, for each of the SOC/Voltage...each file only has one value, how to make all value inside one file?

 

Secondly,How to make all the different  parameters, such as SOC1, SOC2, Voltage1, Voltage2, appear in one excel file for easier reference?

 

obtener y guardar La coordinadas del mouse al hcar click sobre un vi

$
0
0

Hola amigos del foro estoy realizando mi primera aplicacion en labview y no he podido resolver lo siguiente al hacer click sobre un boton me salga un mensaje "hacar click" y cuando haga un click en cierto lugar del vi se almacene las coordenadas del mouse en una variable, luego salga en pantalla otro mensaje "hacer click en otro lugar" y al hacerlo me guarde las coodenadas en otra variable, todo esto para poder trabajar con dichos valores. Bueno amigos espero sus respuestas o posibles soluciones, a lo mejor hay una forma mas fácil de hacer esto,por eso acudo a ustedes para que me guíen.

Event structure not clearing the Queue after it exits the SubVI

$
0
0

Ok I'm not sure if this is a dumb question or not...

I was just trying out some stuff and stumbeled on this problem...

 

So i created a sample (not the exact)

In qqq_Main.vi just press PressMe

(it opens up a subVI qqq.vi)

Ther are two stop buttons "Stop1" and "Stop2".

To close the SubVI either press "Stop2" 

or press "Stop1" and then "Stop2"

 

with the latter method of closing the Stop2 value change is registered outside the while loop, and after the SubVI closes shouldnt this be Cleared???(Or should we manually clear it??)

 

Due to this not clearing, the second time I press "PressMe" the Stop2 Value change even gets triggered before pressing anything


Two indicators to the same graph.

$
0
0

How to connect the same indicators to the same graph if you have it in different tabs?

Pipeline Error: -2147475455

$
0
0

NI Update Service is not working. Usualy "no internet" error message. Here is the log:

[2014-11-03 16:13:57.254] ----------------------------------------------------------------------
[2014-11-03 16:13:57.294] National Instruments Update Service
[2014-11-03 16:13:57.294] ----------------------------------------------------------------------
[2014-11-03 16:13:57.294] Command-line: NIUpdateService.exe  -log d:\temp\log20141103.txt
[2014-11-03 16:13:57.294] Version: 14.0.0.59
[2014-11-03 16:13:57.294] User locale: vi-VN 1066
[2014-11-03 16:13:57.294] Update Service language: en-XX
[2014-11-03 16:13:57.294] Elevated: False
[2014-11-03 16:13:57.394] UpdateServiceStarterPresenter.CheckPrimaryInstance: This is the primary instance.
[2014-11-03 16:13:57.404] NiLmCLientApi.NiLmClientDLL: DLL loaded successfully.
[2014-11-03 16:13:57.454] NiLmClientApi.CloseNiLm: NiLmClient DLL unloaded successfully.
[2014-11-03 16:13:57.454] License Manager: Update Service is enabled.
[2014-11-03 16:13:58.744] UpdateServicePresenter.CheckForUpdatesPressed: Begin
[2014-11-03 16:13:58.744] UpdateServicePresenter.CheckForAndEvaluateUpdates: Beginning the process of checking for and evaluating updates.
[2014-11-03 16:14:01.218] Pipeline is up.
[2014-11-03 16:14:01.218] Finished worker thread Ping Pipeline.
[2014-11-03 16:14:01.218] Starting worker thread Collect Information.
[2014-11-03 16:14:01.218] UpdateServicePresenter.CollectInformation: Collecting system information.
[2014-11-03 16:14:01.282] DeviceFinder.DeviceFinder: SystemAPI version is 5.5.0 or later. Assembly can be loaded. (Version=14.0.0)
[2014-11-03 16:14:09.344] WebPipeline.ResetPipeline: Begin
[2014-11-03 16:14:09.344] WebPipeline.ResetPipeline: Begin
[2014-11-03 16:14:09.344] WebPipeline.ResetPipeline: Begin
[2014-11-03 16:14:09.354] Finished worker thread Collect Information.
[2014-11-03 16:14:09.354] Starting worker thread Check For Updates.
[2014-11-03 16:14:09.354] UpdateServicePresenter.CheckForUpdates: Querying ni.com for Critical updates.
[2014-11-03 16:14:09.354] Plugins.Base.Plugin.DownloadCatalog: Calling SubmitAndMonitorQuery
[2014-11-03 16:14:12.674] 
[2014-11-03 16:14:12.674] ***ERROR: Plugins.Base.Plugin:DownloadCatalog: Exception querying for updates  Exception information: NI.UpdateService.Common.UpdateServiceException: Pipeline Error: -2147475455
   at NI.UpdateService.Common.PipelineBase.ThrowResult(Int32 returnValue)
   at NI.UpdateService.Common.PipelineBase.IsQueryFinished(Int32 returnValue)
   at NI.UpdateService.Common.PipelineBase.QueryCheck(UInt32 wait)
   at NI.UpdateService.Plugins.Base.Plugin.SubmitAndMonitorQuery(OptionsUpdateSearchType searchType, Boolean& canceled)
   at NI.UpdateService.Plugins.Base.Plugin.DownloadCatalog(OptionsUpdateSearchType searchType, Boolean& canceled)
[2014-11-03 16:14:12.674] 
[2014-11-03 16:14:12.674] Plugins.Base.Plugin.DownloadCatalog: End 
[2014-11-03 16:14:12.674] Finished worker thread Check For Updates.
[2014-11-03 16:14:12.674] 
[2014-11-03 16:14:12.674] ***ERROR: UpdateServicePresenter.WorkerSequence.WorkerFinished: Exception thrown in worker thread Check For Updates  Exception information: NI.UpdateService.Common.UpdateServiceException: Checking for Critical updates failed
[2014-11-03 16:14:12.674] 
[2014-11-03 16:14:37.754] UpdateServicePresenter.BeforeClose: Determine whether to prompt to confirm.
[2014-11-03 16:14:37.754] UpdateServicePresenter.StopWorkers: Stopping workers
[2014-11-03 16:14:37.754] UpdateServicePresenter.StopWorkers: complete.
[2014-11-03 16:14:37.754]     Not downloading. Continue closing.
[2014-11-03 16:14:40.364] WebPipeline.ResetPipeline: Begin
[2014-11-03 16:14:40.364]    calling WsUdClose 1
[2014-11-03 16:14:40.364]     done - setting pipelineId=0
[2014-11-03 16:14:40.364] WebPipeline.ResetPipeline: Begin
[2014-11-03 16:14:40.364]    calling WsUdClose 2
[2014-11-03 16:14:40.364]     done - setting pipelineId=0
[2014-11-03 16:14:40.364] WebPipeline.ResetPipeline: Begin
[2014-11-03 16:14:40.364]    calling WsUdClose 3
[2014-11-03 16:14:40.364]     done - setting pipelineId=0
[2014-11-03 16:14:40.364] WebPipeline.ResetPipeline: Begin
[2014-11-03 16:14:40.364]    calling WsUdClose 4
[2014-11-03 16:14:40.364]     done - setting pipelineId=0
[2014-11-03 16:14:40.374] GlobalMutex.Release: Mutex '_NIMetaInstallerMutex' is being released.
[2014-11-03 16:14:40.374] GlobalMutex.AcquireMutex: Mutex thread is now releasing mutex '_NIMetaInstallerMutex'.
[2014-11-03 16:14:40.374] ----------------------------------------------------------------------

 

is possible connect micrologix 1100 to Labview without the license of Rslinx?

$
0
0

I dont know if this problem can solve here or in the AB forums but i will try here...

I need  connect the MicroLogix 1100 to labview to read some PLC registers, I have all the licenses for  Labview (DSC, ni opc server..etc) but I haven't  license of AllenBradley,it is supposed that i need  rslinx classic to connect the plc but only  i have rslinx lite, then; the use of OPC is restricted to my
There is another possibility to connect them? Help me please :smileysad:

 

PD. Excuse me my english isn't my native Lenguage... 

Dropdown selection

$
0
0

Hello, I'm very new to Labview and would like some help in writting a vi.

Currently I am successful in using simple switches on the fornt panel to control multiple led/resistors connected to digital out lines, but how would I go about saving their states?  I want to save (or prescribe?) the on/off state for multiple lines and be able to choose that combination with a dropdown menu or multiple buttons on the front panel.

 

 

Thanks for looking.

 

Pause execution of a Vi

$
0
0

Hello,

 

I'm trying to do an aplication with two main Vi's. The first Vi is the responsible of the configuration of different instruments. On the other hand, the second Vi is the responsible of doing different measurements of an electronic circuit. 

 

My problem is that I want to pause the first Vi when the configurations have been done and then go to the second Vi and do the measurements. When the measurements have been done, the execution should return to the first Vi and continues since the point where the program have been paused. 

 

I'm trying to solve this with queues and a while loop to pause the execution, but it doesn't work properly. 

 

In the following image I have attached the while loop. This loop communicates with the second Vi to check if the measurements have been finished or not. But it doesn't work properly and I don't know why. My question is: is this method good to solve this problem or there are other method better than this? Or simply, the pause execution of a Vi can't be done.

 

Sin título.png

 

Any help is appreciated.

 

Thank you.

Viewing all 67081 articles
Browse latest View live


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