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

Access Violation (0xC0000005) at EIP=0x3032E7D5

$
0
0

Hi,

 

I have a crash report that is given at the start of an exe labview program.  Report gives:

 

Exception: Access violation (0xC0000005) at EIP=0x3032E7D5

Version: 0.0.1.0

 

Any thoughts on this? 

 

The program is running on the same computer as it was previously, has not been run in at minimum 1 year.

 

Labview 2011 was what I used to generate the code and exe.

Computer is running Windows 7 Enterprise, Service Pack 1

I did download the latest drivers for the daq (NI cDAQ-9174, using 2 modules: NI 9203)

 

Using the M&A Explorer the data is being read, just seems to be an error loading the exe.

 

Any help would be great.


Configuring Individual Channels on an SCC System

$
0
0

All,

 

I am working with an older SCC system with the following modules:

 

2@AI03

3@TC02

2@SG24

1@AI05

 

The orginal VI for this system used DAQ Assistant to configure each module individually, with different signal input range, scaled units, terminal configuration and custom scaling.  See attached photos.

 

I am writing new code, but I don't generally use DAQ Assistant.  Is there a way to configure each module individually without use DAQ Assistant?  I have tried to configure the different modules directly, but I get "Resource not available" errors when I try to run the code.

 

Or should I just bit the bullet and use DAQ Assistant?

 

Thanks for any help.

Measured Voltage drops to zero for a few seconds periodically

$
0
0

Hello, I have an NI 9205 measuring the voltage drop across a resistor in a super-simple test circuit with a 12 VDC power supply. For some reason every 10-12 seconds, the measured voltage across the resistor drops to zero for a period of 3-4 seconds, and then comes back again. Screenshot attached (time in 1/10 sec).

 

I am monitoring the same voltage with a multimeter, and it shows a steady voltage. I have tried using different pairs of pins, same result. I am using the differential terminal configuration. I have an NI 9213 in same chassis measuring temperature with a thermocouple, and it gives steady continuous readings.

 

Many thanks for any suggestions, going a bit mad.

Error - 201401 occurred at DAQmx Start Task.vi 7220002

$
0
0

Hi,

 

I got this error message for DAQ9191 wirelessly connected to the PC running windows 8.

 

It says "Retrieving properties from the network device failed. Make sure the device is connected."

 

The system runs well for a few days and then suddenly stops because of this error, and when I hit "Continue", it runs successfully again. It is very strange.

 

Please let me know what is going on. 

 

Thank you so much!

Need help in configuring the boolean control

$
0
0

Hello,

 

i  have made a vi of my own. i want that in this vi i can operate the the two boolean controls simultaneously. i have change the mechanical action of the boolean controls, Boolean is switch when pressed and Boolean 2 is Switch untill released.

 

My issue is that when Boolean control is on ,Boolean  2 takes a long timw to operate. But when Boolean control if off then Boolean 2 works just fine as  i want it to .

 

I shall appreciate if someone can help me analyze what is wrong and suggest any remedy if possible.

 

Regards

 

Jalashwa

mySql and bigint ID

$
0
0

When fetching data from a MySQL table using a simple SQL query "select * from" all of the data is returned properly except for the ID column. The ID column is a primary key set to auto incremental, bigint type. 

Labview returns no values. Is there some limitation. Thanks. 

 

LV2012, MySQL 5.2

Read MatrixCode using .NET or dll

$
0
0

 

Hello.

I'm trying to decode a Picture (get it from WebCam) matrix code using the .net module in labview ???

 

 

I'm using LabView, but the licence for vision package is too expensive and I'm going to put this Sequence in 4 testers.

 

At this time, I already have the VI to get the Picture from any USB-WebCam using AForge .net library

I can provide the Picture as a file or an array of numbers (24-bit pixmap from "Unflatten Pixmap" VI in Labview .

 

I annexed a picture taken from one of the USB-Cameras

 

Thank you!

 

 

 

 

 

Simulating Arduino's Serial Monitor with Labview?

$
0
0

Objective:  Simulate Arduino's Serial Monitor using Labview's Basic Serial Write and Read.Vi. 

Problem: When a continuous stream of ASCII data is sent to the Basic Serial Write and Read.VI  it stops reading after approximately 3 seconds.  Whereas it should continually read data even when there is more data than can fit in the Read String Indicator. Ideally it should push old data off the top of the display and show new data at the bottom of the display. 

 

What modification should I make to the Basis Serial Write and Read.VI to simulate Arduino's Serial Monitor? 

 

Howard


how to acquire data from loop faster

$
0
0

hi sir good day :) i just want to know how to acquire the data outisde the loop faster.. as you can see on the vi i have attached, i am using DAQmx write and read to send the image data in the digital i/o lines of fpga board.. daqmx write generate a single sample of boolean. my problem is i cant get output data when i press the stop button... the loop is only aborted when it written all the data of the pixels i have write.. im just asking if theres a way to speed up the writing of data so that i will not wait a long time just to acqure the data i have writen. thank you :)

serial to parallel converter in labview

$
0
0

Hi. Does anybody know how to convert serial data to parallel data using labview? I already used shift registers but it's not working.

ERROR

$
0
0

Hi,

   This is sony

I have to interface USB to SPI bridge through Labview, i have imported all .dll files of the product, i can see all the functions related to this product under my library files, am getting the following error

 

Possible reason(s):

LabVIEW: An exception occurred within the external code called by a Call Library Function Node. The exception might have corrupted the LabVIEW memory. Save any work to a new location and restart LabVIEW.

          Can you please explain me about the error as well as the solution for the above error.

Hope your reply as soon as possible.

ERROR

$
0
0

Hi,

   This is sony

I have to interface USB to SPI bridge through Labview, i have imported all .dll files of the product, i can see all the functions related to this product under my library files, am getting the following error

 

Possible reason(s):

LabVIEW: An exception occurred within the external code called by a Call Library Function Node. The exception might have corrupted the LabVIEW memory. Save any work to a new location and restart LabVIEW.

          Can you please explain me about the error as well as the solution for the above error.

Hope your reply as soon as possible.

spi

$
0
0

can somebody help on how to create an SPI protocol block diagram in which it communicate from labview to FPGA??

phase shifting

$
0
0

How could I get two signal with different phase angle from same signal simulator ?

   

Flow Meter VI - Pulse Count - Help Needed

$
0
0

Hi,

 

I am working on developing a Flow Meter VI, I am using a flow meter with a pelton wheen that outputs a stream of pulses in proportion to flow.

The flow meter output is attached to the counter line of my 6501, and the pulse count is multiplied by 1.41 (per datasheet) to give ml.

I have the attached VI but not sure exactly what it is doing, would someone mind explaining how it works and how it could be optimised, thanks.

 

Regards,

 

Ger


Problem with queue timing out?

$
0
0

Hi all,

 

I am using a queue to send a cluster between parallel while loops (producer-consumer); however sometimes, but not on all occasions, the enqueue in the producer seems to "freeze" or maybe timesout for no reason (no timeout value is wired to the enqueue or any other element related to that queue process; so I assume it never timesout)...

 

I have checked this and there is data in the cluster that is being enqueued, but the dequeue in the consumer loop is empty... This does not happen on every execution, just occassionally... If I stop and save the vi, it works fine again but the next occurence of this problem.... If I wire 0ms to the enqueue timeout it also works properly again...

 

Any suggestions?

 

Thanks,

Jack

Which LVOOP design pattern is best suited for industrial applications?

$
0
0

Hi,

 

I am preparing some up front design patterns for a new project we are about to get, with requirements that will exceed our previous software projects. And I have some questions, the main one being "Is LVOOP a good direction to go in?", taking into account (by order of importance) performance, modularity, maintenance, reliability.

 

I use the latest LabVIEW 2013 and I would consider myself fairly experienced at LabVIEW (CLD, 4 years of professional development) and Vision Development Module. I have some background in micro-controller programming (C) and I developed several LabVIEW applications for Machine Vision systems, which were all using a single PC + GigE ethernet camera. Almost all apps follow the same top level flow: 1) acquire image -> 2) process image -> 2) update UI -> 3) signal result via I/O -> 4) save image to disk. I use the JKI State Machine for all my projects and it works fine. The biggest challenge is the time constraint (performance optimizations) and memory management (no locals, use of in-place structures, etc.), because of high demands regarding inspections per second. Images are at least 1600x1200px large, sometimes up to 4000px, so RAM usage is usually critical.

 

For the upcoming project, we will have to use 4 computers (each with a GigE camera and touchscreen panel), a compactRIO for machine control. All results and images will have to be continuously uploaded to company server. See image for a simple layout:

hardware scheme.png

 

Each PC will have to perform high-rate image acquisition and processing, and also communicate with other PCs and cRIO (signal errors, stop signal, etc) and send images via ethernet to server.

 

I am worried that all these tasks are too much for the JKI State Machine, so I started looking to LVOOP - but I have no previous experience with OOP. Since I come from C programming where OOP is almost non existent, I am having some problems converting my thinking mindset from a task based approach to an OO approach. I've read some LVOOP literature, especially Applying Common Object-Oriented (OO) Design Patterns to LabVIEW where design patterns are listed, but I do not know which is good for which task.

 

I would like to use as much reusable code as possible and the same main framework for all applications, allowing each function (or plug-in) to be developed and maintained separately, but running on the same core exe. My idea so far:

 

1) a plugin based framework for the main core application, which would be the same for all 4 PCs. The appropriate Vision (image acq+processing) module or plugin would be loaded at startup (selected by user or auto by config file).

 

1A) what would be the best way to implement a settings menu in a plugin based framework. I would like to have the image acq+processing plugin to be running, while the operator is changing parameters - by my current understanding, if the settings menu is a plugin, the vision plugins stops working. Also, how do you recommend to handle and store settings? XML, LabVIEW Config files, something other?

 

2) Vision (image acq+processing) module or plugin would use either a Command pattern or a Factory pattern or maybe a basic JKI state machine. Which do you suggest performance wise? Also, how much overhead does subpanels and subvis (plugins) add to the overall application?

 

3) Which type of communication between applications and cRIO do you recommend? Shared network variables? TCP? Are JKI Public Private Events suitable for this?

 

4) By my current understanding of LVOOP it would be even possible to make the image acquisition process a class, and have different public methods for different cameras (and also a simulated camera, which would load images from a folder). Does this impact performance of acquisition?

 

5) Just curious: does this qualify as a large app?

 

 

 

Questions and comments on direction(s) both for planning or coding would be highly appreciated. The more I read about LVOOP the more I like the general idea behind it, but I am having trouble trying to adapt it to my needs.

File IO/streaming from cRIO directly to NAS

$
0
0

Hi all,

 

The following code works on my windows system.  The VI will stream directly to the NAS.

 

However, I want to run this on my VxWorks cRIO but I get error 1430.  Is this because my windows 7 is automatically doing all of the FTP but VxWorks does not support that?  

 

So my question is... Can I stream to a NAS on a cRIO like I can on windows?

 

PS.  I know I can use the FTP VIs to transfer a file once it has been closed but I but I want to continuously stream to a NAS.

 

Thanks.

 

Test Code.png

hi...i m fresh engineer graduate..how lab view help me designing my electronic circuit..its simulation n pcb design...is any tutorial link?

$
0
0
any other product of NI will help...just guide me.

crear un menu interactivo en labview

$
0
0

Buen día;


Estoy desarrollando un laboratorio virtual en LabView, en el cual es necesario crear un menu de opciones en un panel frontal;
He logrado que al elegir una opcion abra un nuevo subVI previamente creado, el problema es volver al VI original desde este subVI  y abrir las demas opciones del menu.

Viewing all 69758 articles
Browse latest View live


Latest Images

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