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

Slow loading VI and EXE

$
0
0

HI 

I am hoping someone can give me inspiration here, i have a project that i recently made a modification to which now takes ages (over 60s) to load, where as previously it was 1 or 2. It was a minor change by adding a table of results, so nothing ground breaking going on. I think i can actually rule out the code as i used a splash screen as the entry point and that also took 60s to load. So here is my question (and i can only apologise if it sounds stupid), how can i establish what is being initialised PRIOR to running the VI or EXE? Being new to the Labview scene i am doing a lot of guessing at the moment, so any guidance would be appreciated 


Gestion d'horaires d'ouverture et de fermeture d'un magasin

Reverse interpolation

$
0
0

Hi,

 

If anyone has worked or developed the logic for reverse interpolation, please guide me on that.

 

thanks,

PK

Labview RT: Share TCP connection refnum between parallel loops

$
0
0

Hi,

 

I am programming a RT application that sends data via TCP/IP from the RT to a computer. Now, it might happen that the computer crashes and the TCP connection is lost. In my RT program, I would like to have sort of a "TCP connection monitor" that listens constantly for a TCP connection. Once a new TCP connection is established, a second, parallel loop should  use this "new" refnum for sending data. (There will always be just one client.)

 

Now I wonder about the best practice to implement this. I thought of using the same approach as in the example "TCP named service", i.e. creating a TCP listener and constantly waiting for an incoming connection. However, I cannot store that connection refnum id in a local variable that could be used from within another loop...

 

Why is that? What would be a nice way of distributing the connection refnum from one loop to the next? I would prefer to avoid STM since the amount of data might become large and perfomance might decrease...

 

Thanks

Getting the Execution State of a VI within a .lvproj from another vi

$
0
0

Hi all,

 

I've been working on this project and I've been stuck here wondering what detail I missed. I hope I can coherently articulate my issue and garner some feedback on the matter. 

 

What I have is a Main VI which is in a project (.lvproj). I have another separate utility Vi (not included in the project, but it's its own standalone vi). What I'm trying to do is to determine from the standalone VI if the Main.VI from the project is running. From this I know I check the execution state property. I'm attaching my code snippet. 

 

The problem that I have is that when I run my standalone vi, it works fine. However, when I create an executable for this vi (make a build .exe), then when I run from the application it doesn't work. Anything I'm missing here? Somewhere on the build configuration perhaps?

 

thanks in advanced

SPI Bus Read Problem on NI 8452 using Labview

$
0
0

Hi Guys,

Thanks for your help as usual.

Please see the attached clip of a SPI Write / Read sequence.

Hardware 8452.

VI shown is  sub-VI

The function works perfectly in write mode... writing to a DAC, DAC responds correctly.

However, I'm trying to read back the data I'm writing out, as a confirmation that the system is powered up and working.

I get nothing but 0's back on the read.

If I connect the array directly to the write array, the data will be shown correctly.

Can you help??

 

Thanks

Mike

crash when using dll witch created by labview in Visual Studio 2015

$
0
0

####
#Date: Thu, Mar 07, 2019 3:35:36 PM
#OSName: Windows 7 Professional Service Pack 1
#OSVers: 6.1
#OSBuild: 7601
#AppName: test
#Version: 17.0 32-bit
#AppKind: AppLib
#AppModDate:
#LabVIEW Base Address: 0x6B1F0000


InitExecSystem() call to GetCurrProcessNumProcessors() reports: 8 processors
InitExecSystem() call to GetNumProcessors() reports: 8 processors
InitExecSystem() will use: 8 processors
starting LabVIEW Execution System 2 Thread 0 , capacity: 24 at [3634788938.35741377, (15:35:38.357413769 2019:03:07)]
starting LabVIEW Execution System 2 Thread 1 , capacity: 24 at [3634788938.35741377, (15:35:38.357413769 2019:03:07)]
starting LabVIEW Execution System 2 Thread 2 , capacity: 24 at [3634788938.35741377, (15:35:38.357413769 2019:03:07)]
starting LabVIEW Execution System 2 Thread 3 , capacity: 24 at [3634788938.35741377, (15:35:38.357413769 2019:03:07)]
starting LabVIEW Execution System 2 Thread 4 , capacity: 24 at [3634788938.35741377, (15:35:38.357413769 2019:03:07)]
starting LabVIEW Execution System 2 Thread 5 , capacity: 24 at [3634788938.35741377, (15:35:38.357413769 2019:03:07)]
starting LabVIEW Execution System 2 Thread 6 , capacity: 24 at [3634788938.35741377, (15:35:38.357413769 2019:03:07)]
starting LabVIEW Execution System 2 Thread 7 , capacity: 24 at [3634788938.35741377, (15:35:38.357413769 2019:03:07)]
starting LabVIEW Execution System 306708506 Thread 1 , capacity: 24 at [3634788941.65274334, (15:35:41.652743340 2019:03:07)]
starting LabVIEW Execution System 306708506 Thread 2 , capacity: 24 at [3634788941.65374327, (15:35:41.653743267 2019:03:07)]
starting LabVIEW Execution System 306708506 Thread 3 , capacity: 24 at [3634788941.65474319, (15:35:41.654743195 2019:03:07)]
starting LabVIEW Execution System 306708506 Thread 4 , capacity: 24 at [3634788941.65474319, (15:35:41.654743195 2019:03:07)]
starting LabVIEW Execution System 306708506 Thread 5 , capacity: 24 at [3634788941.65574312, (15:35:41.655743123 2019:03:07)]

<DEBUG_OUTPUT>
2019/03/07 3:35:42.016 PM
Crash 0x00000000: Crash caught by NIER
File Unknown(0) : Crash 0x00000000: Crash caught by NIER
minidump id: 77d07ffe-b40a-463e-b285-37576e807b74
ExceptionCode: 0xC0000005

</DEBUG_OUTPUT>
0x709B146F - nierInterface <unknown> + 0
0x709B5D75 - nierInterface <unknown> + 0
0x709B517A - nierInterface <unknown> + 0
0x7065865A - mscoreei <unknown> + 0
0x7624040F - kernel32 <unknown> + 0
0x775150E7 - ntdll <unknown> + 0
0x774D97D5 - ntdll <unknown> + 0
0x00000000 - <unknown> <unknown> + 0

Updating value of Exposure time in VBAI

$
0
0

Hello all,

             I am using VBAI from last 6 month with Baumer VCXG-24 camera . In this period i was able to control Exposure time from Acquire Image > Attribute> exposure time and i can update that time, also i was changing Attribute value from NI Max and it automatically collected by VBAI. But now i am enable to update my attribute value from any of this way. Please help me to update my exposure time value as early as possible.

             Thank You  


Installing Vision Devleopment Module 2018. VisFP00 is not extractable!

$
0
0

Hi,

I have been using the Vision Development module 2017 on my old computer and it was working fine. Now I've installed LabView 2018 and I'm trying (since 2 days) to install the Vision Module 2018 but the file called VisFP00 is always corrupt and cannot be extracted from the ZIP file. This is why I cannot even start the setup. Can anyone help me?

Thanks in advance!

Sarah

Connecting osciloscope with labview

$
0
0

Hello,

 

i have issue with connecting labview with Rigol DS1054 osciloscope.

I have already installed NI-VISA 18.5, NI-SERIAL 18.5. Labview version is 16. Also rigol DS1000 driver has been instaled.

 

I get error message: Error -1073807346, VISA:  (Hex 0xBFFF000E) The given session or object reference is invalid. In att.

 

It seams that labview and VISA doesn't see COM port's.

 

Has someone idea, how can i solved this issue?

 

Thank you for your support.

Correct start/end offset of the Butterworth filter

$
0
0

Hello,

I am trying to use a phaseless Butterworth filter for a non-periodical signal but it does not fit the signal close to the beginning and end of the data sequence. I need to apply exactly the same functionality as in Diadem does the checkbox "correct start/end offset" but I could not find a way how to do this in Labview.

Could anybody help me with this?

Thank you

Miroslav

State machine architecture

$
0
0

Hi, im still pretty new to labview, I have built a program that is functional just wondering how to make it better and more efficient. Someone told me to use a state machine architecture with my program but not too sure how to implement it/ if it would be beneficial.

Thanks 

JSON conversion

$
0
0

{"channel":{"id":720151,"name":"Power Monitoring System","latitude":"0.0","longitude":"0.0","field1":"Voltage","created_at":"2019-03-05T10:24:13Z","updated_at":"2019-03-05T10:24:13Z","last_entry_id":523},"feeds":[{"created_at":"2019-03-07T11:16:17Z","entry_id":523,"field1":"056"}]}

 

Hello friends,

I'm trying Unflattering from JSON , i dont know how to get the data from it, i need the value of "field1" please kindly suggest a method or send me the VI.

Thanks, 

 

Racing game in LabVIEW

$
0
0

Hello everyone. For my second year project in LabVIEW, I have to make a police car chase that is shown on a LabVIEW VI and can be controlled through LabVIEW. My question is how do I allow a game to be displayed and controlled through LabVIEW; what information from the game do I need from the game (i.e. source code, etc) and what VIs would I need to use?

 

Thanks.

Spherical Lens to 2D coordinates (conversion)

$
0
0

Hi! 

 

I'm trying to build a circle detector to find the centres of circles. I am using a 180 degree camera for a wider field of view, but this means that I need to somehow translate the coordinates my algorithm thinks it's reading to actual x/y coorindates based on the distortion due to the lens. Any idea how I can mathematically describe and implement this relationship?

Thanks! I've attached a pic of my front panel for context

 

sph1.PNG


SMU4139 force Voltage differential

$
0
0

Is it possible to force a differential Votlage with the SMU4139?

If yes how do I have to configure the cable and how do i have to setup the instrument in LABview.

 

Thank you for help!

control robots with labview

$
0
0

hi please help me to control robot directions with labview . i need your help please 

in my project i use robot and ethernet so i want to communiquate the ethernet with labview

Get Target File name from application builder

$
0
0

Hello,

 

How do I programmatically get the target file name from the application builder in LabVIEW

 

Capture.PNG

 

Thanks

 

Report Generation -- Excel works, Word doesn't (Error -41106) after O365 pushed out

$
0
0

I have searched the last day and a half and haven't found a solution.  I apologize in advance if I overlooked the answer somewhere...   Throughout I am using the "Create Report VI" to open Excel and Word files.

 

Before IT pushed out O365, Excel and Word worked fine with Report Generation.  After that, I got Error -41106 for both Excel and Word. 

 

Following a solution found on this Board, I went in and modified the Registry for excel by deleting the last Excel registry entry.  Excel opens now in LV with no error.

 

Ignorance being what it is --  I am not an IT or Windows guru -- I located the Word entry in the registry and duplicated what I did for excel.  I still get Error -41106 for Word.  Word still started normally so I didn't break anything that is noticeable.

 

For what it is worth, there is a difference in the Word vs. Excel registry as Excel references a .exe and Word references a .olb file. 

 

As I said, I am not an IT or Windows person (I'm a hardware person who spends most days sniffing solder) so this may be a simple thing to fix but I have exhausted the LV discussion board and Google searches in finding a solution that works. 

 

Thanks in advance for any advice,

 

Ben

distance between two consecutive elements in array and calculate the average

$
0
0

Hello guys,

I'm new to labview and I have a problem: I need to calculate the difference between two consecutive elements in an array (output array in my program), and do the average of that distance.

Since my program uses a peak detector to calculate a frequency, I need the average value of all the distances between consecutive peaks (and that would be my period average, 1/period average I get frequency average). 

In my program I try doing a for cycle with N=#number of peaks found and it calculates the distance between the first element of the array and the 0-index. I thought it would work like this:

for(i=0;i<N;i++)

peak[i+1]-peak[i]=distance[i]

 

then do the average of the distance.

 

My program calculates that after N time.. when it reaches N, the Numeric 2 turns 0. 

I am trying to learn labview as quickly as I can, so any help is VERY appreciated. 

 

Viewing all 69573 articles
Browse latest View live


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