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

Error 8 when building a program

$
0
0

Hello,

 

I have tried searching this subject, and found a lot of helpful suggestions. Unfortunately, none of them have worked. I'm trying to figure out what could be left.

 

So, the full error is shown in the attachment. Just to explain, we have a laptop in our lab with a login of "eng_lab" - that is our username. We also have very strict controls here on permissions, installations, saving to network drives, etc.

 

What I have tried:

- Building file normally. Failed

- Checking the Temp folder for "read only". The box was filled in (blue square). Clicked to deselect read only entirely. Closed, tried to build again. Failed. Checked again, box was filled in again.

- Using ProcessExplorer to remove any other programs using that folder. Only thing left was LabView (a single DLL file I could not close). Still failed.

- Closing the anti-virus program using ProcessExplorer. Still failed.

- Saving to network drive. Failed. Gave another Error 8 message, but different than in the attachment. Same thing, though, permission error

- Saving directly to the C: drive (instead of to the desktop) to try to eliminate the user name aspect (I was getting desperate at this point). Failed. Still gave the same error as in the attachment

 

What I have not been able to try:

- Logging in from an admin account and seeing if that works (trying to get an IT person to help on that)

- Disabling firewall (can't do that without admin rights)

 

 

Are there any other causes for this error other than not having write permission to the file, the file being open or in use, or a program blocking writing to that file? Anything else I can try on my own? 

 

Thank you

 


Error 5 strain measurement with multiple channels

$
0
0

Hello everyone,

 

I'm currently using a NI-9237 to measure strain. I'm using a modified version of the example strain measurement vi (I added a resampling block to change my sampling frequency) and everything works perfectly fine as long as I pick a single channel. However as soon as I start working with two or more channels the vi will crash after 10 min or so into measuring and displaying Error 5 and I can't really find out why this keeps happening.

 

Any help is greatly appreciated!!

file path

$
0
0
 

 Hello, I wanted to create a file where its name is written during simulation and always with the date and time. I tried to add the "open / create a file" and instead of putting a path in command I put a concatenated string consisting of the date and time and a command string where I will write The name and then I converted this string to path but I still have a 1430 error. But also I wanted to choose the file type (.txt or .csv) during simulation.

Rotating a picture

$
0
0

Hi everybody, I'm trying to use this NI example but I don't know how to change the plane that appear when I run the program. I know that comes from the part "airplane image" but don't know how use other image instead of this.

 

Thank you.

Immediate Stop of 5 While loops

$
0
0

Hi,

 

The objective of this code that I wrote is to operate 5 heaters. I want to turn them on and off in specific order and timings. I turn them on by sending an analog output current to them and I turn them off by sending a 0 A current. When I press stop, I want all of them to receive a 0A current and stop working.
The problem is that with the code that I have at the moment, pressing Stop does not stop the loops immediately and they still go through a flat sequence before stopping. How can I make the stop button to send a zero current signal and shut down the program instantly?

Re: Keithley 2410, current readings

$
0
0

Does anyone know how I can vary measurement speed during output. I am sourcing a fixed current for a constant 5 mins and would like to sample at say 2000 points in the first minute and the last 500 in the final 4 mins.  Does anyone know how to do this?  Would I use two arm counts with different NPLCs?  The problem is I would like to but, would also like the current source to stay on (sourcing current) the whole time.  I don't want to stop the code, turn it off, gather data, and then turn it back on.  However, if necessary I can.  Also for reference I'm using GPIB and LabVIEW to program it.

Custom scripting for pre or post dynamic dispatch vi creation?

$
0
0

Hello all,

 

I need to programmatically make cosmetic changes every time a new Dynamic or Static dispatch VI is created in client projects. I have successfully managed to do so for Override and Accessor VIs using custom script but I cannot find any option to do so for dynamic or static dispatch VIs.  Does anyone have deeper knowledge on this topic who could point me in the right direction?  Does anyone know how I can add my own custom VI scripting to VI creation (preferably after Dynamic/Static dispatch vi are created)?  Creation of New VI through right-click on .lvclass item in project explorer would be very desirable too but more important right now are scripting for dynamic/static dispatch VIT. 

 

 

Thank you!

Desi

Registering DAQmx event to event structure not firing

$
0
0

I have created my DAQmx task for change detection on a digital IO channel (PXIe-1062Q; PXI-6527). In my VI i have registered the event in the same manner as the "DAQmx Create Event.vi". This event is needed only to capture a button press to start a test sequence. My the program compiles and runs but the event never fires.


How to always read from the first signal of a regenerated DAQmx output in a for loop?

$
0
0

Hi all,

I have an imaging system controlled by LabVIEW. The camera needs to take two images at each XY position -- one when the blue light on, and the other when the red light on. After taking two pictures, the XY stage moves to the next postion, then the camera image twice again. These modules are put in a for loop. The camera trigger and blue/red control signals are synchronized and generated continuously by DAQmx write in regeneration mode.

 

The problem is, each time when it loops and the camera receives a trigger, it could be either trigger 1 or trigger 2 (see attached schema), so LabVIEW could not know whether it is blue light or red light and save the data to its corresponding folder. It is not possible to sort the saved images manually since there will be hundreds and thousands of them. Is there a way to tell the camera to read trigger 1 first, then trigger 2?

 

Thanks!!

 

schema.png

 

 

 

Convert IMAQImage to VisionImage

$
0
0

I'm working in LabView. I have a .Net dll that expects a VisionImage as an input parameter. All the LabView VIs use IMAQImage. Is there a way to convert from on to another?

How to auto scale controls on a pane before mouse release

$
0
0

It seems the auto scale of controls doesn't happen until I release my mouse when I re-size my pane. Is there a way to make it happen while the mouse is down and dragging?

 

Thanks in advance!

 

 

Label of a Strict TypeDef control

$
0
0

Hmm, I guess I am just tired now. So I am not sure if this is the normal behavior or not.

Scenario: I use a Strict Typedef control (numeric U32) in several VIs inside a lvlib, inside a lvproject. I thought if I open up the Strict Type Def control, and change its label, it should change the labels of all of its instances. But this dos not happen.

 

LV2017.

Producer/Consumer for Analog Input/Output, consumer loop not running

$
0
0

Hi,

 

I am trying to acquire data at around 50KHz and then output data at the same sampling rate (or lower). I'm using a Producer Consumer design as suggested by others on the forum. Previously, I was getting an issue with DAQmx Write because I did not initialize a buffer for my consumer loop. Now after adding the buffer, the consumer loop doesn't even run/initiate; the consumer loop iteration displays zero. What are some possible explanations for why the consumer loop is not running and how can I fix this?

 

I have attached the VI. I am using LabView 2015 with the NI USB-6212 BNC. 

 

Thanks

Arrays

$
0
0

Hello Fellow Labview-ers...

 

May someone please help me figure arrays out?

My problem:

I have a for loop, and I want to insert the output of it (which is a double) to an array each time the for loop executes. But I want to see in the array all of the previous elements, not just the current one.

Can someone help me with this, or should I be using a matrix? And how?

 

 

Opening FPGA project on another machine

$
0
0

I have a LabVIEW project on one computer that I would like to move to another computer in order to continue development. The original computer is not connected to the internet so as not to automatically update any software, it's a very delicate setup. It is connected to a host machine with a real time OS, which communicates with an FPGA and other hardware. I'm trying to copy the project over to another computer that already has the same version of LabVIEW, plus all of the same toolkits and modules. I used the LabVIEW "Save a Duplicate" feature to save it from the original computer to a flash drive, then opened it on the new computer, but I'm unable to access the VI that I want to modify. On the original computer, it's under the part labelled "Controller", but on the new computer the controller has an error and will not allow me to see the folders contained within to access the VI that I would like to edit.Picture1.PNG

Right clicking on the controller and selecting "Explain Warning" gives me the following error:

Picture2.PNG

The new computer has the same version of LabVIEW, plus all of the toolkits and modules that the original computer has, so I don't understand why I get the error on the controller. How do I resolve the error on the new computer?


How to click the login button that coded as javascript not form submit button in labview

$
0
0

I want to login webpage through labview. I can open the webpage, input the password, but I can find the name id for the 'login' button. Base on code, the 'login' button is coded as javascript not form submit.  Any idea how I can click that 'login' button.  The portion of webpage is like:

<br />
<form name="logform" action="login" method="post" onsubmit="ProcessForm()">
<div class="container">
<br />
<input type="password" placeholder="Enter Password" name="password" value="" required>
<br />
<button>Login</button>
<br />

 

The ProcessForm() is the function

 

Thanks for your help

Removing the frame of a 2D picture object that loads an unflattened pixmap image (png)

$
0
0

Novice question here that I am regrettably posting apparently due to amnesia.

 

I am basically trying to view the image as best as possible without seeing the frame.I can use the positioning cursor to crop it correctly from the bottom right, but the origin at top left will always result in a gap between the top of the frame and the left side of the frame. I feel like I've worked through this before but can't remember the solution. Image attached. 

 

Untitled.png

Solenoid Control on a Cycle

$
0
0

Hi everyone,

 

Don't worry I searched and read all the similar questions but haven't figured out my issue yet. I'm brand new to Labview and have been tasked to create a system that will control a single solenoid connected to a piston that will run on a cycle for (x) cycles. I have no clue what to do and was hoping for some help, I understand C++ so i'm not completely lost here. Here is a list of what I have and I have been told I can buy anything else I need too.

 

-cDAQ 9171

-cDAQ 9174 Cradle

-NI 9234 Card

-24V Single Solenoid (5 port/2 way) spring return

All types of wires to connect

 

I was hoping to create a system where I could enter time on and time off, a cycle count and a cycle end number all on the front panel along with a start and stop button. I also understand the output from the card would only be 5v so I will use a relay to jump the voltage to 24v.

 

In my head this should be a simple program I just have no idea what to do in Labview. If someone could write a code close to what I need I might be able to tweak it and make it work. If not some pointer in the right direction would help.

 

Thanks in advance!

 

Event isn't timing out until external for loop finishes

$
0
0

In my code I have a for loop that is external to an event structure. This for loop is driven by a button press from one of those events. This for loop will take 6 seconds to execute all of its states because I designed it that way. I would like the user to be able to cancel this for loop with a stop button. My thoughts were to create another event, feed the stop button output into a condition terminal on the for loop.

The problem I am running into is the event structure will not timeout until the for loop is completed, even though it is external. I set the timeout to 100 ms. There is data leaving the for loop in a queue but other then that nothing leaving the for loop. Any thoughts?

Read columns from text file

$
0
0

Hello all,

 

I am trying to write a program that allows a user to open a file, skip the first 4 header lines, retrieve 3 columns of data (time, strain, and machine on/off), and analyze this data by calling a separate function.

My main issue is I don't know how to extract specific columns of data while also skipping the first lines of the text file.

 

Thank you so much for any help

 

Viewing all 69348 articles
Browse latest View live


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