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

Data Logger VI keeps writing over data

$
0
0

Hello,

 

Can you explain why in the attached VI (Data Logger Tester), that my txt file keeps getting written over with only the last data point taken?  I would like to have the file operate such that I can continuously log data.  

 

The first iteration creates the file (if not already existing), then the headers and then begins to log data every 5 secs.  If the file exist, then the data just keeps logging. 

 

Thanks,

hiNi.


Access violation (0xC0000005) at EIP=0x0 12CF102 version: 13.0 1f2 (32-bits)

$
0
0

Tengo problemas cuando intento ejecutar mi vi, el cual carga otros subvi. En ocasiones cuando acceso a estos subvis y los cierro, obtengo el error: 

Access violation (0xC0000005) at EIP=0x0 12CF102

version: 13.0 1f2 (32-bits)

 

adjunto el dump del error  por si alguien me puede ayudar.

 

 

 

 

Database not connecting LV2014

$
0
0

Hi All,

 

Sorry I am new to databases but I've spent the day trying to get LabVIEW 2014 to connect to a Microsoft Access 2013 Database. I've tried a .mdb and .accdb but neither work. I tried to make a udl but it was 64 bit and wouldnt load, I tried the fix on various forums (https://forums.ni.com/t5/LabVIEW/Creating-and-Editing-udl-files-in-64-bit-Windows/td-p/1526358) but get the error "Provider cannot be found. Ensure that the provider has been installed properly." 

 

I have the 64 bit driver for Microsoft Access Engine installed as I'm running 64-bit office.

 

I tried installing LV2014 64 bit but there isn't database connectivity in it. 

 

Doing this: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1010401

Allowed me to get a 32-bit DSN added but I continue to get error -2146824582 in labview.

 

The example within labview called "Database Connection.vi" works but the "Connect to ACCDB Database.vi" does not.

 

Any help would be appreciated. I've attached the database in question (I've had a few messages saying invalid format when trying fixes but it always opens in access, I dont really want to have to type it out again) and a couple of screenshots.

Translate C# to LabVIEW .net Code

$
0
0

I have an issue where I can’t initialize Gmap.net dll assembly. These is an example on the website  here how to initialize but it is written in C#. Can someone please help me write this code in LabVIEW.

 

Code and dlls attached.

tooltip on block diagram

$
0
0

Hi everyone,

 

Currently, I am working on showing a tooltip at any position on the block diagram at run time. I am trying to use .net framework function (tooltip.show) to show the tooltip;however, a "System.NullReferenceException" error showed up. I am using the window's reference instead of a control's reference because I want to show the tooltip on the block diagram instead of the front panel. And I am not sure if this actually causes the rror.

 

Does anyone work on this function before? Or does anyone has a different appraoch to this tooltip feature?

 

Your help is much appreciated!

 

report generator is the best for read/write from/to Excell files?

$
0
0

Hello

I hear, Report generator is the best wat for read/write from/to Excell files? is it correct?

by the way, i couldnt find 2013 version of Report Generation in the site, could u?

 

Best regards

Array of different (digital and analog) values into multigraph

$
0
0

Hello everyone,

So I have an array with a timestamp on the first column, either "off" or "on" string on the second column, and a number value string on another. The columns are based of variables that reads data based on an update rate. My question is, what is the easiest way to separate these values into a digital and analog graphs. This is because the number values are so high that the "off" and "on" signal is being pushed down as the y-axis auto-scales. I'm hoping that I can use a multigraph, but the multigraph puts the data in one graph (since it's one array). 

 

Any suggestions or help is appreciated.

error 200279

$
0
0

I've seen some other posts about this error code, but I still don't quite understand the problem with my specific code. I'm attempting to read some voltage differences in 4 channels of a daq, then graph one point every 30 seconds and also record all of the data to a spreadsheet file. For some reason, I keep getting error 200279 and sometimes the program won't save a file. I really don't understand why it wouldn't save to a file at all. I have somewhat of an understanding what the 200279 error is, but I don't understand why this specific code is giving me that issue. Thank you for your help in advance. 


mydaq

$
0
0

MyDAQ isn't measuring current not even for the simplest circuit of one resistor and now it gives me an error : error 201381 occured at NI ELVISmx DC Level.vi possible reasons, one or more conections to external power rails are drawing too much power. the operation has been aborted to prevent the device from using too much power. Remove the connections to the external power rails and restart your task. 

match pattern search for multiple words?

$
0
0

Hi, so my question involves the Match Pattern Function. I know how to use it and to open a file and have it search for a specific word. That works fine. But now I want it to search for more than just one word. Can I give it multiple words separated by commas or spaces? Anyway, that's it. Just how to make the Match Pattern Function search for more than 1 word? Thanks.

Hold indicator value after threshold is exceeded

$
0
0

I have a portion of my VI that uses an auto indexed for loop to view an array of 10 boolean values indicating whether a test threshold has been exceeded.  If a false value is recieved on any of these 10 channels, I need to have an indicator display the current temperature for that channel.  The problem I am having is that subsequent false values continue to update the temperature value rather than keeping the temperature reading when the threshold was exceeded.

 

Looking over the discussion forums, it seems like maybe a shift register is how this is done.  Is adding 10 shift registers allowing me to look at the last value for each channel the best way to handle this?

 

Building vi with labview pda module

$
0
0

When I attempt to build an application using LabVIEW PDA module, I am prompted to activate the product.  After I click to go ahead and activate, I get the message, "There are no licenses on your machine that need to be activated."  Everything seems to be installed and activated correctly.  We also got the same result on a second computer.

 

I am attempting to install an old project on a new Windows 7 PC.  The version of LabVIEW is 7.1.  We have followed the recommendations for installing the old software on a new PC.  The LabVIEW server code seems to work fine, but the PDA client cannot be built to deploy on the Windows Mobile devices.  

 

Any suggestions?

3D modeling for my pick and place

$
0
0

Hello

I am using labview with NI myRio to design an interactive pick and place machine. Therefore, by the end of this project the user should drag and drop different part into a 3D platform and hit run then the pcik and place machine would place linking logs according to the design. So, I am using labview to design a 3d model of building enviroment using labview. My goal is get something similar to build lego with chrome (https://www.buildwithchrome.com/) in labview, the main difference is I am using likning logs instead of lego. Therefore,  I am bringing the linking log into the labview and I am chaning the position of the rod with respect to origin. I want to be able to have mouse control instead of manually control of the position of the rod. Also, I was wondering if I can use a ring picture & text to have a drag and drop option from the ring picture into the 3d environment. Also, I have to have a good sense of x,y,z position because I have to send those data stepper motor for my builiding place.

Note: I cannot use extension of solidworks for labview because of constraint of the project. So, I have to design different parts in solidworks as a STL and bring them in to the 3D picture.

This is kind of what I have. https://www.youtube.com/watch?v=YahElWKf9ek

tdms performance

$
0
0

I am trying to compare TDMS write performance between similar systems to determine if I stand a chance of being able to capture data from my cameras at anywhere near the speed needed (240fps at 640x480 is my basic target).

 

The two systems are:

 

Windows 7 laptop with LV2014, 16GB of memory, Core I7 2.5GHZ, 500GB ST500 hard drive (SCSI)

PXIe-8135 RT (PharLap 13.1), 4GB memory, Core I7 2.8GHz, 500GB hard drive (SCSI)

 

I have a VI which simulates storing video frame data to a TDMS file (Raw U8) (Attached).  When this is run on the laptop, with all of the heavy applications like antivirus, on-access scanning, etc.. I get about twice the storage performance that I get when the same VI is run on the PXIe-8135.  Given their similar hardware specifications, that has taken me by surprise and I fear that the entire system may be non-viable.  I would have expected better performance from the PXIe-8135 in fact (Even with the lower total memory given that this test isn't even scratching the surface of the available memory).

 

So, I suspect I am missing something fundamental about how to get higher performance disk I/O out of LabView RT and would like to hear any suggestions that may be available.  Or does labView RT simply have this poor of performance compared to a Windows 7 installation?

 

Thanks,

 

Robert

Mouse Down On Image but Not On Scrollbar Event?

$
0
0

Hi All,

 

I am using a "Mouse Down" event on an image to record the X and Y coordinates of the click and to increment a counter.  My problem is that I am looking at an image with a scroll bar that I want to use to adjust which part of the image is visible.  When I click on the scroll bar, I trigger the Mouse Down event and increment the counter, which I do not want to do.


Is there a way to set up a Mouse Down event so that it will ignore clicks on image scroll bars?  If not, can you think of another way to accomplish what I am trying to do?


Thanks!


dependency warning paths truncated - cannot distinguish old from new

$
0
0

Upon loading my VI, I received a warning of 54 dependency path changes.  Unfortunately, if you look at the attached file, you will see that the critical first portion of the paths are replaced by ellipses.  This is not a a very useful warning.  Does anyone know how to get the full paths displayed.

tcp/ip communication protocol

$
0
0

Hi All,

 

I've never done any Labview programming for TCP/IP as of late.  But now I need to figure how to.  

 

I've been asked to work on a Pick to Light system that is controlled via TCP/IP comm.

 

The Communication data is sent via a CCB (Communication Control Block) format as below.

 

ccb.JPG

 

 

The image below shows how to turn on a certain 7-segment LED to display a certain number.

 

ccb2.JPG

 

 

What I'm trying to figure out is, how do you send the formated data via TCP/IP.  As you know again, I've never worked with TCP/IP before.  

 

I've done a ton of searching etc for how to send the data in a format that is similar to what the controller needs but have yet to find anything similar.  

 

I'm not asking for you to do the coding for me, just need some guidance on how to.

 

I also attached the comm protocol for reference.

 

Thanks a ton in advanced,

guytesting

how to activate control property page in executables

$
0
0

i am trying to create a vi in executables and i have created too. but on right click on any control and selecting properties , properties dialog is not opening .......

How to retrieve citadel data without labview

$
0
0

Hello,

 

I am currently using LabVIEW 2013 with the DSC module to log data to a database.

 

I would like to make this data accessible to others on my network, but I am not sure of the best method to achieve this.

I dont know too much about databases so I am really just looking for a good place to start. Can I have a page on our intranet that allows others to query the database?  Would this require installing software on our servers?

 

What about the OBDC drivers?  Could we use those to import data directly into excel?  Would this work on a system that does not have LabVIEW installed?  I have searched the help files and forums but I am getting confused with all the information out there.

Any help is appreciated.

 

Thanks,

Matt

 

 

 

 

 

 

how to lock block diagram alone from editing leaving front panel for editing?

$
0
0

i want to lock block diagram from editing but front panel can be edited for creating controls, moving controls editing properties...

 

Viewing all 66970 articles
Browse latest View live


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