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

DeviceNet loading driver issues

$
0
0

I got a DeviceNet driver from Mks instruments. I am currently using DeviceNet module from Molex (USB to DNet). I am using the drivers provided my MKS, edited them in Labview to work for Molex USB to Dnet Module. When I put the Labview program into a different computer, it gave me an error saying that the driver is not loaded!. Later I figured out that you have to type in the directory of the .dll file manually, which I did. Now it loads driver sucessfully but now it comes up with an other error, " The driver is already loaded!." Thie error line goes all the way down not allowing me to communicate with the DNet module. Hopw can I get pass this error. 

 

I have attached some screenshots to help you guys out with what I problems I am facing. I had to type in "ssdn32.dll" manually into a string and feed into the Load VI to load the driver. Now I did some runs to see whats going on. This is what I got till now

 

1. When you type in "ssdn32.dll" manually into a VI and apply changes and run the main.vi. This error comes up, " the driver is not loaded."

2. When I type in ssdn32.dll manually, apply changes, run the load Vi independently first and then run the main VI, this error comes up, " The driver is already loaded!". 

 

 


LabView freezes during COM to COM session

$
0
0

Hi there!
I'm using LabView 2012's basic VI "Send Command trhrough COM port" and "Read Command trhrough COM port" betweem two computers. One computer sends a number and the other one reads it and transforms to the next VI. Everything is worknig fine, but sometimes LabView just stop working: it freezes, I cannot even relaunch it, the whole computer is needed to be restarted. Usually it happens after about 3-4 hours of normal communication. What is weird is that happens not always, so it hard to reproduce the error to analyse it. I'm using the following machine: Dell, Vostro 3560, Intel R Core TM, i3-3120M, 2.5 GHz, 4 GB RAM, 64-bit Win7. Cannot figure out what is the problem. Do you think it can be related to the insufficient memory volume of the computer? or something else?

 

thanks in advance!

resize xy graph axis text

$
0
0

Hello, I have a question regarding XY graphs:

I want to have two XY-graphs with identical sizes aligned perfectly to have a nice comparison of separate data sets without plotting them on the same graph. However, I can't find out how to set the width of the y axis text. Because now when the width of the texts are not the same, even if the whole graph has the same area and starting point (the solid line on my pcture), the plot areas are a bit off (indicated by the arrows)

Can I somehow set the width of these texts, so the plot areas match up? Right now I am using "Position" and "Plot area size" properties of the XY graphs to make them equally sized.

Thanks

 

xygraph_resize.png

3rd party charts and graphs

$
0
0

I would like to find out if there are any 3rd party (Free or for purchase) libraries which contain enhanced graphics objects.  For example, I would like to find a robust strip chart capable of displaying multiple simultaneous (Time locked or common X axis) strips in separate plots with the ability to re-arrange the plots vertically (Drag and drop), save the configuration, etc.  I'm sure this can be done via a lot of detailed programming, but I'd rather just use already available solutions if they exist.

 

Are there 3rd party controls that replace and enhance the built in LabView graphs and charts?

 

Thanks,

 

Robert

Passing Reference to Struct to DLL (Call Library Function)

$
0
0

I have two functions written in C that takes reference to a struct.

 

Declarations:

IpAddress_Parse(IpAddress* address, const kChar* text)

 

ConnectIpAddress(connection, const kIpAddress* address)

 

typedef struct IpAddress
{
int version; 
unsigned char address[16];
} IpAddress;

 

 

Snippet:

void main(int argc, char **argv)

{

IpAddress ipAddress;

 

IpAddress_Parse(&ipAddress, "12.0.1.10");

ConnectIpAddress(connection, &ipAddress);

}

 

I am trying to convert the above to LabVIEW, but have trouble. I have tried to create a Cluster in LV and parse out data from IpAddress_Parse() and pass it back to ConnectIpAddress() as "Adapt to Type" to no avail. Even if I artificially construct a Cluster to pass to ConnectIpAddress() I would have error 1097 from LabView. My cluster included an int and a byte array which follows the typedef struct of IpAddress.

 

Please provide some pointers as what I am doing wrong. Thanks in advance.

caractéristique courant-tension

$
0
0

bonjour,

j'ai une coube de la caractéristique courant en fonction de la tension, et je voudrais tracer la dérivé dV/dI.

j'ai essayer avec la dérivé x(t), mais je trouve pas relier les entré de cette fonction.

quelqu'un peut m'aider.

merci.

labview

$
0
0

Hi homies

i am new to labview ,and i am working on an assignement which i have done part 1 and 2 of it but i am completely stuck on the 3rd and final part of it .

i would appreciate if i can get some insite on how to aproche it. here is the assignement.  

Specification 1 (60%)

To design a VI that will identify the number of thin values and display as a percentage of the total number of samples.

The front panel must have the following:

An array of controls holding the sampled values.

An indicator holding the percentage of thin values.

Specification 2 (80%)

Thin values tend to appear as sections or patches along the length of the cable i.e. values of less than 1 mm stored in successive array elements. To design a VI that will meet specification 1 and will also calculate the number of these thin patches. The front panel will now have an extra indicator to display the number of patches.

Specification 3 (100%)

To design a VI that will meet Specification 2 and will also be capable of detecting and displaying the start index and the length (number of successive elements less than 1 mm) of each thin patch.

as i said i have manage to do spec 1 and 2 

 

broken sub vi link path

$
0
0

Hi,

 

I got a VI with broken link to some of the sub-vi.  I want ask is there a way I can know where it is original linked from?

 

Peggy

 


conexion usb HID pic con labview

$
0
0

estoy intentando hacer una conexion HID entre un pic 18F4550 y labview 2013 en Windows 8.1

 

el problema que tengo es que para que labview reconosca el pic tengo que crear un archivo inf del pic con  el Driver Development Wizard del NI-VISA pero despues de crear este archivo al intentar instalar me sale este error: " el INF de otro fabricante no contiene informacion de firma digital "e intentado tambien instalar otros inf de este pic que encontre en internet pero me sale el mismo error.

 

como puedo hacer para  que el labview me reconosca la conexion con el pic.

How to plot wavegraph from measurement?

$
0
0

I used For Loop to measure wavelength and power. I want to plot a waveform graph, wavelength is X-axis, and power is Y-axis. But I don't know how to plot them.

d.png

Why is output signal pulled high when stopping program in RT

$
0
0

I'm using 9401 to output a PWM signal. When I run the FPGA program and stop it, nothing unnormal happens. BUT when I run the program through RT using the compiled bitfile and stop, there will be a high level about 110ms.

Here are my FPGA and RT block diagrams of a simple signal output.

I wonder why this could happen? Should I notice any specific when programming the RT?

Thanks in advance

fpga.PNGrt.PNG

 

beep delay

$
0
0

Hi all!

I have this simple subVI that gets a desired set of (X,Y) coordinates, the actual X,Y coordinates of an object, and a tolerance. The subVI is supposed to beep (using beep.vi) if the object is within the tolerance zone.
I use this subVI in a loop which constantly gets the actual coordinates of the object, so I expect to hear a beep every time the object passes close enough to the desired location, or continuous beeping sounds if the object stands in place inside the tolerance zone.
The thing is that I would only ocassionaly get a delayed beep when the object makes a pass at the spot, and if it gets into the tolerance zone but stays there, the subVI won't beep at all (until the loop is stoped).
I added an LED to go along with the beep (to make sure everything else in the code is alright), and it works just perfect.

 

Any ideas what I'm doing wrong?

For "Nonlinear Curve Fit.vi", what does -20068 mean and how can I avoid it?

$
0
0

Hey guys,

I am trying to fit an oval in a set of 2D data points, which represents a partial oval.
So I am trying to see if "Nonlinear curve fit.vi" would work in the situation.

However, sometimes that math VI would give me an error -20068 and would return incorrect fitting parameter.
I can't figure out what condition would return that error so can you tell me
what the cause is and how I can avoid that error?

You can run the attached LabVIEW 2013 VI and see the error.

sampling using sbRIO

$
0
0

Hi,

 

I am using sbRIO 9641. I would like to sample a AI voltage signal at the rate of 1000 samples/sec. (i.e 1000Hz). As of now I am reading all the 1000 samples, but how do you set the number of samples to read? If I'm reading 1000 samples, my loop time would be 1 sec right? That is, I would get 1000 samples every second.

If I want 1 sample per second (that is, I would like to average the 1000 samples to 1). How do I do the averaging (filtering)?

 

Should I use invoke method and read from DMA?

accesorios personales

$
0
0

Pues se que no es el medio para dar a conocer esta opinión pero aquí esta.

 

Me parece una buena idea que NI pusiera a disposición del público o de sus clientes, accesorios como mochilas, playeras personalizadas o cosas así, he trabajado durante mucho tiempo, y me gustaría tener algo que pueda presumir con mis amigos al emplear productos de NI.

 

Es mi opinión y algo que desde mi punto de vista estaria muy bien.

 


Simulating Start/Stop button Latch behavior

$
0
0

In Labview I am simulating the action of two momentary pushbuttons beings used as a latching Start/Stop circuit.  Attached is my solution.  My question is there a more efficient way to do this?  My solution seems clumsy.

 

Thanks,

Jeff Beltramo

Executable cannot find custom error code file

$
0
0

I am building an application in LabVIEW 2013 on a Windows 7 computer and deploying it on a Windows XP computer. My application has a custom error code file, stored in <user.lib>\<Application Name>-errors.txt, but my executable on the Windows XP machine can not find the custom error file and only returns the call chain for any errors that occur. 

 

When not using an installer, I have tried copying the error code file to all of the locations listed here: http://digital.ni.com/public.nsf/allkb/6077DBEDA4F9FEE3862571F600449501 but the application still does not load the custom errors. I do have the box checked for "Include custom error codes" in the build specifications. 

 

When building an executable and bringing it from Windows 7 to XP, where should I be putting the custom error code file? Is it looking for it in Program Files (x86), but not finding it because it's XP? 

optics, using Agiltron 8-Bit Switch

$
0
0

I'm working with an Agiltron optical Delay Line and they provide an example file called 8bitReadWrite which controls the instrument using VISA calls.  There is a manual, however it is incomplete.  I know this because I captured the outgoing USB traffic and noticed that before starting the manufacturer's canned Software Utility called SwBoard (which is Agiltron's Switch Evaluation Kit Program) the software sends some configuration commands that are not in the manual.

 

I needed to do this because the when using the LabVIEW example that they provided I was able to successfully set approximately half of the delay values (0-255).  Note: this piece of equipment also has LEDs 0-128 that light up when the delay is set.  Using the LabVIEW example I can set all of these LEDs...and I assumed that the resulting delay would also be correct.  However, in some cases, the LEDs were set but the output turned off.  Meaning instead of a delay...I got no light through the unit.  

 

Sending the same command with the SwBoard allows me to set the LEDs and the correct delay.  As a matter of fact if I start the SwBoard, configure it to the port on which my USB cable is connect and then simply shut it down, then my LabVIEW code works.

 

Has anyone had a similar experience?  Has anyone had to deal with Agiltron's customer support?

 

Thanks,

Ben

Single Word Speech Recognition

$
0
0

Hello Everyone,

 

I was wondering if someone can suggest a simple way to recognize a single spoken word. I'm not looking for full speech recognition. I just want to be able to detect when a single word, such as 'GO' is being said (with the possiblity of some noise in the background). What's the best/easiest way to accomplish this?

 

Thank you!

How do yuo bundle discrete tasks into a single task

$
0
0

I have several discrete tasks defined using NI Max.  How do I bundle them together in LabVIEW as a single task?  I don't want to use NI Max to create the compound task.  I want to do it programatically so I can pick the discrete tasks I want.

Viewing all 67022 articles
Browse latest View live


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