Quantcast
Viewing all 69295 articles
Browse latest View live

Data types in producer consumer design pattern

Is there a way for me to use any data type in a producer consumer design pattern, without specifying that specific data type?

what I mean is if there is a way to connect a data type with which I can use any other data type besides the one I connected, and if not, how can I specify the data type for a number or any other type of data, to use in a producer consumer design pattern?


Need to edit VI inside a Labview Executable File

Hi,

 

I have the student version of the labView. Is there a way to edit the origial VI file inside a Labview Executable file ? 

 

Please see attached picture for detail. 

 

Many thanks

 

ffl3883

How to resize and stretch an image to completely fit a picture frame

Hi, I am trying to programitaclly insert an image into a frame and then resize and strech the image to completely fill the frame, but not cut off parts of the image.

 

I found these instructions for how to do almost what I need

 

http://digital.ni.com/public.nsf/allkb/55EEBE3A1ECC38F58625765600796F1C

 

This resizes the image to make sure the entire thing is in the frame.

 

The problem is that it has white space on the sides if the picture does not have the same height and width ration as the frame.

 

What I need is to stretch the image so that it will completely fill up the frame without white space, but not cut of any part of the picture.

 

 

 

Also, I know that I can do this by right clicking on the frame, going to advanced-->customize. Then inserting an image at same size.

The problem with this is I cannot do this programitaclly, and I have to create/save a file to save the changes. 

I am making this program to be used by a uncomputer savy person so I am trying to avoid forcing them to create, rename, and save a file correctly.

All they have to do is select the file path for their picture.

 

 

Any help would be appreciated. Even if it is just to say there is no way to do this.

arrays

how to append the output of 2 arrays to be in one array 

here is the VI 

I need the 2 bits of the command to be appended to the 16 bits of the RN 

How ? Any Idea ? Thanks in advance Image may be NSFW.
Clik here to view.
:smileyhappy:

fourier transform of sine wave and square wave not returning the frequency of the wave.

Hi all, 

 

I've made some programs to see the Fourier Transforms of Sine Waves and Square waves. I understand that square waves should have harmonics when FTed but the Harmons of the square wave isn't coming out at the right frequency and neither is the sine wave. Any help would be appreciated. I've attached my programs so you can take a look. 

 

Thanks much, 

M

Filter Express VI - Bumpless transfer?

Hi,

 

We use the Filter Express VI on many of our applications and we like it.

 

However, if we call a loop that uses the Filter Express VI the result will start at zero and eventually settle on the desired filtered result. We notice this on the first call of the filter after starting the main VI. Unsure of behaviour if the loop has been called before and the loop is not scanned.

 

Is there a way to have the Filter Express VI output a value close to the input value on first scan and then trend back to the desired filtered output? Something like a "bumpless transfer".

 

Dave

comment savoir une fin d une trame donnes reçu apres phaesun

bnjr j ai besoin de votre aide j ai un probleme de aquisition des donnes par phaesun le probleme c est comment je trouve la fin d une trame dse donnes reçu apres phaesun ds mon programme labview voilà le lien:http://www.erm-energies.com/p235-automate-de-gestion-avec-acquisition-de-donnees-12-24-48vdc-avec-borniers-12-points-x3-et-9-points-x1.html        d automate aquisition donnes (phaesun)  vous pouvez trouvez ds le site manuel comment fonctione cette pieces et d autre chose merci de votre attention

data acquisistion slowing down

Hi,

 

I am using two different while loops to collect data from a capacitance bridge and a temperature readout. I am using PCIe-GPIB for the capacitance bridge and a PCI card for the temperature readout. Then, i am using local variables to transfer the data to a third while loop. Here , i merge the signals and then write the data to a measurement file. I need one data point every second. When I run the vi, initially i get the speed that i want. But, with time, the data acquisition gets slower for both the devices. The write to measurement file data indicates such. I have attached a snapshot of the vi i am running. Need your help with this ...

 

Thanks

Sakib


cRIO-9067 Real-time unexpected error restart (Hex 0x661)

Hi all,

 

I recently moved to LV2014 SP1 and NI-RIO 14.5 to support development of a cRIO-9067 Linux RT controller. The past two days of development have seen LabVIEW crash numerous times (eight at last count), along with numerous VIs being in an undeployable state due to some unseen error (there's no broken run arrows anywhere, and a LV restart seems to cure what was broken).

 

The above issues are tolerable, if somewhat annoying. What's concerning is the most recent error I received this morning. I had just run the top level VI from source (and verified it was running), went to make myself a coffee and came back to this error.

 

LabVIEW: (Hex 0x661) The LabVIEW Real-Time process encountered an unexpected error and restarted automatically.

 

Image may be NSFW.
Clik here to view.
cRIO-9067_crash.png

 

The VI wouldn't have been running for more than 10 minutes. I've since tried to reproduce the error without luck.

 

This is somewhat concerning as the application for this cRIO will be 24/7 process control. Is this a known issue with the newer Linux RT controllers? Is there anything that can be done to detect the error in LabVIEW?

 

Below is a screenshot of the software installed on the controller:

 

Image may be NSFW.
Clik here to view.
cRIO-9067_software.PNG

 

quad plan tilting rotor

Hey guys, now I am working to implement a mathematical model of a tilt rotor UAV on labview. I try to work with Mathworks node.


my problem that this model breaks down in two sub-model that for each flight mode (flight hover, forward flight). how to switch between these two sub-model in being exution as input

PR4000BF output to file

Dear Users

I have a task to obtain data from MKS pressure measurement unit Baratron, and do so using PR4000BF

I read through the forums, and found a way how to do this via RS232 com port.

 

Next step was to obtain LabView trial software, and software package from MKS Germany. I was ablo to open it in latest LabView, and obtain the reading from the device.

The data aquisition also runs in a continous mode fine, and displays the measurment on a PC screen.

 

Unfortunately, I have never used LabView before.

I spent a lot of time figuring out how to save measurement data to a file, but I do not know how to decrease the frequency of the measurements.

Also, I am still not able to save data to Microsoft Excel file format.

 

I am asking for help, on how to change the attached file, to be able to export measurement data to a file, where each measurement is in a different line  with a time stamp and a frequency of measurment is one per second.

 

 

I hope that I have exported it correctly.

 

My LabView trial is running out of trial time, and I am afraid that I will not be able to learn it that quickly.

 

Thank You in advance for support.

How to average dynamic data from DAQ Assistant at every second?

Hi guys,

 

Currently my DAQ program (inside a while loop) runs at every second. However, there is a problem whereby the fluctuation of values is very big. I used the Mean.vi block to average out the dynamic values. I am not sure the problem is due to my 1s timing or it's due to the mean.vi.

 

Does anybody knows what is the mistake?

 

Very much appreciated! :')

 

Vanessa

Add Delay Between Periods of a Square Waveform

Hey all,

 

I've used Labview to set up a waveform generator using the "Basic FuncGen" VI, (WF Gen.png) and am looking to make a modification to the waveform.  Currently, I have my VI set up to generate a square wave of a specified frequency and number of cycles.  So, a 1000 Hz waveform for 1000 cycles would run for one second.  My question is: how would I go about putting a few zero V points between each cycle?  I attached a pic to show what I mean (Signal.png).

 

Thanks.


TG

.NET Assembly won't load in LabView

I am trying to program some Newport piezo motion controllers.  They come with their own software that controls the stages and also installs some LabView examples and has a .dll that those examples call.  I wrote some very simple programs to do things like home the stages, get position, go to position, etc.  I deployed, and it was all working and I made many nice maps.  Now something has changed.  For a while I got an error when trying to load my uncompiled program that it could not find the sub-vis that I wrote and would open the dialog box, and the odd part is it would select the filetypes to be .dll or .exe, but it said it was looking for a .vi.  Once I select "all files" I could see the .vi right there where it was looking!  When I would double click the .vi, it would say it couldn't be found/loaded.  I got past that by putting the .dll directly in the folder with the .vi I was trying to load, and the program can now execute, but with errors in communication at the Constructor Node and Invoke Nodes that call the .dll.  The constructor has the "conexagpcmds.dll" title, and when I right-click and do "select constructor" it can find conexagpcmds.dll, but says there is an error loading.  This error occurs regardless of whether or not I select the copy of the .dll where Newport's installer placed it (in program files, I run LV as an admin) or in the .vi directory.

 

Two twists:

the .dlls must be installed correctly because Newport's installed applet works fine and calls the .dlls to run

this is on my lab computer, I typically do my development in my office, and when I load these exact .vis they are able to load the .dll correctly, so it works in my office but not my lab

but it used to work in my lab, I made several very nice maps and now something has changed.

 

I have attached the .dll and the example VI from Newport.  Mine are even simpler.  

 

Thanks,

Adam

After repeated Close functions, I still get the VISA Error "The Resource is Valid, but VISA cannot currently access it"

I am currently building an application on a cDAQ unit which involves the use of a scale. The scale uses RS232 communications, but is connected to an RS232-to-USB adaptor and plugged into one of the cDAQ's USB ports (COM 10). I am communicating with the scale using the basic VISA Functions: VISA Open > VISA Read > VISA Clear > VISA Close. I built one application using the scale that worked correctly, but now every time that I attempt to access the scale- be it through MAX, a VI, or a rebuilt version of the same application- I get the error "the resource is valid, but VISA cannot currently access it."

 

The scale has three options for data transmission: "No Data Output" "Continuous Data Output" and "Normal output when the Print Key is pressed." I have it set for "Continuous Data Output," I don't know if this information helps.

The c-DAQ is an NI cDAQ-9138

 

I have tried several things to get rid of this error:

-Restarting the cDAQ

-Repeatedly running "VISA Close" functions on the COM Port

-Completely unplugging and powering off the scale

-Plugging the scale into a different COM Port

-Repeatedly running "unlock port" VISA functions on the COM Port, as a colleague suggested that may be the problem

None of these have worked.

 

Does anybody have any suggestions for reliably getting rid of this error?

 

I have attached a vi showing how I am attempting to read from the device. Any help would be appreciated.


Digital output and analog input at the same time

hi,

first sorry for my english.

i want to make an experiment set-up. drawing of it is attached. i have stepper motor, sensors and usb-6008. stepper motor moves the sensor board into the pipeline.

 

(for exp.) i want to send  100 signal to the motor and every 100 signal i want to measure sensor voltages.but movement must be continously.does not interrupt.

so i must know the sensor's location and the voltage at the same time. (sensor is hall sensor. operates 0-5 V)

 

if you help me i would be happy. thank you

 

 

my program is attached.

 

Export app from Labview to PC(without Labview)?

Hi, is possibleto launchappcreatedinLabviewoutsideLabview?

Execute two loops alternately

Hello,

 

I want to execute a loop in 1 second then a second loop for 1 second and that's repeated before pressing the button stops. if you can give me some examples it will be better.

LabVIEW crashes when programmatically getting the dependencies from a large project

Hi all,

 

I am working on a LV application in which a project has to be created programmatically & its dependencies have to be analyzed. But when I add a source folder containing large number of files (>1000) LV crashes when getting the Dependencies reference (in the highlighted method in the image below). Is there a workaround for this issue? Also finally I will have to compile this entire code to Packed Project Library. Does it require any extra coding?

 

Image may be NSFW.
Clik here to view.
Project Dependencies Error.PNG

Thanks,
Priyadarsini S

Running 1 copy of Labview Basic on 2 PCs

Hello,

 

Can you buy one copy of LabVIEW Basic and install on 2 PCs, The first PC would develope code for the second PC , that would be its only purpose. The second PC would act as a data gathering PC in a test setup.  If this is not possible I would need to take the data gathering PC down to make any changes.

 

Thanks.

 

Alan

Viewing all 69295 articles
Browse latest View live