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

Deploying Shared Variable library error -2147220735

$
0
0

I had to reinstall my whole LabVIEW installation, as my SSD was getting to full. I uninstalled everything and installed freshly everything on a larger hard drive. Unfortunately, I'm now getting an error and wonder what I have to reinstall. 

 

When I want to deploy a Shared Variable Library in LabVIEW 2014 32-bit, it returns with an error:

 

Initializing...
Calculating dependencies...
Checking items for conflicts. This operation could take a while...
Preparing items for download. This operation could take a while...
Deploying My Computer
Deploying test.lvlib\\10.0.10.45\test deployment failed (error: -2147220735, MAX: (Hex 0x80040301) Internal error: The specified class could not be found in the configuration database. Your installation may need to be repaired.).
Deployment completed with errors

 

error shared variables.png

 

Any suggestions?


Searching from 2D array for an individual or a group.

$
0
0

I am trying to search from 2D arrays.I have a 2D array which has NAME ,pHONE NUMBER ,eMAILID and group as respective columns,I want to search the name and group as asked by the user and use their contact number.The user can also select an individual person and can also select a group .Say Group A to which multiple people can belong to  ant extract their number on a array.Can anyone help me develop a code for this.

Read TDMS files with Matlab

$
0
0

I am trying to read a TDMS file in Matlab.  I used the zip file from here: http://www.ni.com/white-paper/7446/en/

But if I try to run the example I get an error:

 

Error using loadlibrary (line 253)
A 'Selected' compiler was not found.  You may need to run mex -setup.

Error in ReadFile (line 30)
loadlibrary(NI_TDM_DLL_Path,NI_TDM_H_Path);
 

If I try the procedure here:

 

examplePath = 'C:\test';
hfile = [examplePath '\nilibddc_m.h'];
loadlibrary([examplePath '\nilibddc'], hfile);

I get the same error. Is it correct that I should get the file from the dev directory?

 

 

VISA + Stepper Motor

$
0
0

Hi .

 

I'm trying to control a stepper motor with VISA . I have made one diagram to control it " works.png" and it works perfectly but this diagram sends ONE command for ONE execution .

 

Commands I need to send are ( with Carriage Return each time ) :

 

1) -\r : sets the sense of rotation .

 

2) S2000\r ( for exemple) : sets the position needed .

 

3) R\r : Moves to the relative previous position "S" .

 

I want to do these 3 commands in this order automatically .

I have already tried to put only one " VISA configuration " and one " VISA close" for the 3 commands but it doesn't work .

 

So I have made the diagram " Doesn't work.png" but I don't understand why it doesn't work like the first one. Do you have some ideas ?

 

Thank you .

 

 

 

 

does anyone know how to calculate the impedance using waveforms

$
0
0

does anyone know how to calculate the impedance using waveforms?

NI IMAQ - Windows 7 64bit

$
0
0

Hi,

 

I wonder if anyone can shed light on a error we are experiencing. We are running pretty old NI IMAQ-1411 Image acquisiton devices on windows 7 64bit.


We have install the very latest driver package from NI, i think dated Feb 2015. And also flashed the bios of the dell optiplex 7010 to the latest version. a20.


Every 2-3 days the PC will BSOD whilst acquiring images.

 

BSOD indicates its the niimaqk.sys driver being the culprit. I have attached the mini dump, any ideas?

 

update version

$
0
0

Hopefully this is the right place. I'm trying to use some older (v12? its telling me) VI's with Diadem using the Labview runtime server.  However, the runtime server doesn't like how old they are. I was wondering, if I posted them, could someone open and save them in v13?

 

I don't have Labview, and we don't need it. These VI's were actually taken from http://www.boulder.nist.gov/div838/theory/refprop/Frequently_asked_questions.htm#LabViewApplications

 

I'll post it here just in case someone is bored and can help out with this.

 

(For anyone doing a generic web search, these are the NIST RefProp VI's for Labview.)

block diagram limit area to clean it up.

$
0
0

Hello,

I would like to clean up my block diagram but I want it to be the most condenced possible in space. Is it possible to insert it inside a rectangle that fit the window of the screen and clean it up without enlarging the rectangle.

Cheers,

Zied


DMA FIFO Host RT to FPGA

$
0
0

Hello everyone,

 

I need a DMA FIFO host to target FPGA between a PXI-8106 and a PXI-7852R, I am working under Labview 14.0.1 

 

I need to know the available spaces before writing in the FIFO to avoid overflow, but I can't find a VI which can do this, the only way I know to get the available spaces in the FIFO is creating a invoke method <write>, but that means I have to write date before knowing the available spaces. 

 

 

Then I tried a another VI, <FIFO.Acquire Write Region (Invoke Method)>, but I got a error:

L'erreur -63193 s'est produite à : Invoke Method: FIFO.Acquire Write Region in cerclefifo v10 invoke referencev2.vi

Raisons possibles :

NI-RIO: (Hex 0xFFFF0927) The requested feature is not supported.

 

I think that means my embedded controler is not supported by FIFO.Acquire Write Region (Invoke Method).

 

Do you hace some ideas how to solve this problem?  Thanks a lot.

 

 

 

Daqmx Signal Generation Drops Out

$
0
0

First off, this is my first post to the forums, and I only have less than a year of LV experience under my belt. 

 

For the last 8 months, I have been working on a project for my graduate education.  When I was given the code to modify it, it was essentially a AO voltage generator.  You could specify the device,  as well the frequency and amplitude of a sinusoid, that was sent to a shaker.  My assignment was to modify this to operate in a closed-loop system.  We read in two channels of data, compute features from the data, and, upon these features crossing certain thresholds, trigger sine wave generation to an AO port.  We also would like it to generate two digital outputs: one indicating detection (both threshold criterion are met), and one inidicating the state of a switch (which tells the VI to output the sine wave upon detection). 

 

The code as it is runs, but after several loop iterations ceases to output the signal from the AO. However, the sine wave itself is still being generated, leading me to believe its an issue with the DAQmx write/start task functions.  

 

I am relatively unfamiliar with the DAQmx functions, so any help, insights, or suggestions for improvement would be greatly appreciated.  You will find copies of the VI and subVI attached (sorry for it's lack of organization).  We are running the VI with a NI USB-6211.

 

 

 

event structure vs case structure

$
0
0

I am developing LabVIEW: instrument control and vision. Front Panel will have many buttons, each button will execute a single or a group of VIs. 

I have found that:

 

1. Event structure is good for numerical change. i.e. User change a corordinate and motors are moved. 

2. Case structure is suitbale in case such that use clicks "run MTF", a case structure is excuted to compute MTF. 

 

I have tried to use event-strcuture to pick up button click but it's NOT workign reliably, such as user clicks too fast and LabVIEW doesn't register the event or LabVIEW registers the same event twice :smileysad:

 

However, I will have many case structures for many functional clicks. My block diagram will be umanageable. 

 

Any insight/tip/trick will be greatly appreciate! 

 

-best

How do I get to the Virtual Instrument layer of a LabVIEW exe using ActiveX

$
0
0

I have been trying to figure this out for a couple of days, and can't seem to find the correct way to do this. I have a LabVIEW .exe file that was built with ActiveX enabled in the build configuration.  I can connect to the application layer just fine (see the snippet below), but I want to get to the front panel controls so I can read/modify their values from another program.  To determine how to implement this I made the following test VI:

 

Open Virtual Instrument Snippet.png

 

The problem is that I can't get a VI reference from the .exe file. It appears the GetVIReference method only works on VI's, so if that is the case, how do you get a reference to the top level VI that is running when the .exe starts? I assume it is possible or there would not be a good reason to enable the ActiveX server in the build configuration of the exe file.  I eventualy want to get to this from C++ or something similar, but I want to make sure it is even possible before I start trying to determine how to do it in other platforms. Can someone point me to an example of the proper way to do this?

 

Kind regards,

 

Jim Smith

Give commands to two keithley2400 at the same time

$
0
0

Hi All,

 

I would like to give commands to 2 keithley2400 at the same time and wish them to do current sweeping simultaneously at real time. That means I have run two loops simultaneously. It seems to be difficulat yet not so difficult since there is no dependency between these two loops... Is it possible? using what structure? The solution i use right now is a simple true/false button with two case structure. And of course it won't work. Sometimes two units will run simultaneously but most of the time they will run in order.

 

Screenshot 2015-04-24 11.57.38.png

NI Frame Grabber low frame rate

$
0
0

Dear forum members,

I am using a frame grabber NI PCIe-1433 together with Basler acA2040-180km. Theoretical frame rate for the camera is 180 FPS, where the theoretical data flow of the frame grabber is 850 MB/s.

I am aiming at (1024x1024) pixel/frame * 8 bits/pixel * 100 frame/second =~ 104.86 MB/second

When I try the given C example with the IMAQ driver of LLGrab.c, it calculates a frame rate of ~22 frames per second. I reach similar value while running the camera through MatLab's Image Acquisition toolbox.
Under the C driver the IMG_ATTR_MAX_FRAME_RATE or IMG_ATTR_FRAME_RATE are not available properties for that frame grabber.
Under NI MAX I get at the lower right corner:
Frames per second: 22,22(displayer, acquired)

So it looks like it is not transition problem from the card to the computer, but somehow the configuration is wrong for the image acquisition from the frame grabber.
I use the default file for the frame grabber, where I only substitute the dimension attributes.
Any idea of how can I increase the frame rate or how to control that value will be very helpful.

Thank you in advance!

Cheers,
go9kata

feeding dynamic data into formula is causing slow execution and weird results

$
0
0

I am gathering 11 channels of analog input voltage, then performing a series of (different, editable) calculations on each channel of voltage to convert each to sensor temperature.

 

My first stage of calculations (using multiply, subtract, and divide blocks) works fine.

 

My second stage of calculations (which includes a natural log "ln") is being performed with the formula block. However, the formula block has three red arrows where the input constants are, and the results of the formula block are intermittent and incorrect (if plotted, the plot just flashes what looks like a value of 1 intermittently... if saved to a csv file, the results show a bunch of zeros and then a row of values, then more zeroes).

 

I'm not sure if I need to be converting my dynamic data to an array before feeding into the formula, or if there's some other way applying a complex formula to dynamic data, or...? I'd like to stick with dynamic data because it makes plotting things easier, but I'm open to other suggestions.

 

Capture1.PNG

Capture2.PNG


FPGA Build Automation - Build IP Integration node programmatically

$
0
0

Hello,

 

I did something to build an FPGA project.

Now, i have an issue with the IP integration node. I didn't find a way to regenerate IP integrations node support files programatically.

In LabVIEW, when I go in Tools>FPGA Module>Regenerate IP Integration Node Support Files, I can see that this tool is developed in LabVIEW. So, I may call it in my application but I couldn't find its path.

 

Did someone try to do the samething ? did you found a way in LabVIEW or other language to do it ?

 

Thanks in advance

Turn a light off after a certain amount of time

$
0
0
I'm creating an elevator and I want it to flash a light once for each floor number it's on. I have it so it will stay on for the right number of iterations but the light won't then off between each iteration. Is there a way to turn it off between iterations through the use of a timer or something ?

How to Use a Boolean Vector To Index an Array

$
0
0

Say I have an array A = [1 2 3 4 5 6 7 8 9 10].

 

I also have a boolean array B = [1 1 0 0 0 0 0 0 0 1].

 

I want to use the boolean array B to pick out elements in A, creating a new array C = [1 2 10]. In MATLAB, I would just type C = A(B).

 

I'm scratching my head trying to figure out how to do this. One solution would be to run through a for loop, querying B(i), and deleting A(i) if B(i) = 1. But this would change the size of A, so that the second time I did this, my index would be wrong.

 

Anyone know a clean way of doing this?

 

BONUS: If I have a 2D AA, with multiple columns, it would be nice to use B to pick out multiple columns of AA (in MATLAB, this would be CC = AA(:,B).

Lectura del puerto serial e impresion de datos

$
0
0

Buenas tardes, estoy leyendo por el puerto serial usando VISA los datos de 5 sensores, pero todos se mezclan al usar visa, no se como discriminar los datos en LabView sin tener esos confilctos con los datos.

 

Ejemplo:

Al serial llega:

10

15

89.3

-15

-98.23

 

Y al querer imprimirlos se mezclan todos y aparecen esos valores en orden randomico, alguien podria ayudarme? muchas gracias.

Labview + BlendMicro: Bluetooth

$
0
0

Dear all,

i'm trying to make Labview 2012 able to comunicate with a Blend Micro (4.0 BT device) trough a bluetooth dongle (4.0 BT) that i bought. Actually i'm stuck with the Bluetooth discovery.vi. What happens is that BlendMicro is not discovered by the VI.

Please notice that:

1) BT dongle on the notebook is working fine. I can see/pair/connect/send/receive files from my Android smartphone.

2) Blend Micro is working fine. Using its own app on Android i can see/connect/send/receive commands

3) Windows 8.1 BT manager discovers Blend Micro and can pair with it (no code required)! So far only Bluetooth discovery.vi is not able to discover Blend Micro.

 

I'm using Windows 8.1 and Labview 2012. I know that BT is not natively supported by Labview and it uses the Windows BT stack, but if Windows 8.1 BT manager discovers the device, why Labview doesn't?

 

Does Labview 2014 support BT natively?

 

Thank you for any suggestion you can provide me!

 

Frax

Viewing all 66786 articles
Browse latest View live


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