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

LabView Crash

$
0
0

Hello,

I was successuflly running labview VIs on labview 2016. Now I unistalled labview 2016 and installed labview 2018 32bit. But when I run some VIs, labview crashes and displays the message attached below. Any help would be appreciated. 

Thank you


3D tables Data Sorting

$
0
0

Hi all

 

I have 3D table, I need to convert it to 2D to make some data sorting and then convert it back to 3D table. I created a code that works if I deal with each page of the 3d table alone.

I then added this part of code inside a loop to be able to deals with all pages of the 3d table at once. but I does not work although it is the same code.

 

Please see the attached VI and help me with this problem.

Log In issue Internet Explorer 11

$
0
0

Since yesterday I'm having issues to log in to the forum using IE11: Page Error, the requested page is not accessible. I tried using office and home computer, same issue. No problem with Chrome.

 

Any idea how to fix this?

 

Ben

 

edit: posted to wrong forum, reposted it to the Feedback on NI Community forum.Smiley Frustrated

Calling Silicon Labs CP2112 DLL fron LabVIEW

$
0
0

Hi,

 

Does anyone have experience of using the DLLs that ship with the CP2112 to communicate with it from LabVIEW?

I have the GUI that ships with the CP2112 working (in so far as I can connect to the chip, and toggle the GPIO pins), so I know all electrical connections are sound.

Also, when I make a call from LabVIEW to some of the DLL functions that do not involve the hardware (e.g. GetLibraryVersion), I get a sensible values returned, so I know the interface between LabVIEW and the DLL is working.

However, I can't get any functions to work that actually do anything with the hardware.

I am using LV2016 32-bit, but running in Win7 64-bit.  Could this be causing the issue?

Any other ideas?

Dan

DEFINITE INTEGRAL LABVIEW

$
0
0

Hi, 

I have a problem with definite integration in labview. I have an array of data(simple numeric, to 0 at 50, then 50 to - 30,than - 30 to 20, 20 to 0...)generating a triangular signal. I have calculated the start and end point of each triangle and now I want to built an array of every area of this triangles. So I have used the X(t) Integral(i can't simply do ((b x h) /2))where as input I put the data from the array, the dt is 0,01(fc=100Hz), for the initial condition all the start point of triangles and as final condition all end point of triangles.

The X(t) Integral function doesn't give me an array containing each area as I want. I would obtain a single value for each definite integral. How does this function really work? There are other way to built an array of areas knowing every start/final point for using definite integral?

Help please

 

Synchronization data collection

$
0
0

Hello everyone, I have a question about sampling and clock sync. I'm using NI 9239 and a multiplexer to acquire voltage signal. The MUX make the sensor on/off 20 times per second. The NI 9239 is acquiring the signal at 2kHz. In 1 second, I have 20 data pulses for the sensor, for each pulse, 8 samples per 4 milliseconds which are useful data, 92 samples per 46 milliseconds which are useless data. I have a TTL module 9401, how can I make a clock which syncs with these pulses to only acquire the useful data, which is 20 pulses total of 160 data per second. The VI I attached is acquiring all 2000 data per second. Thank you very much. 

Conveyor indicator

$
0
0

I need to show a conveyor on the front panel, with a moving part.  I watched a youtube video called 'SCADA in LabVIEW - Conveyor' which is what I need to do, but the conveyor control they used is located in the DSC module, which I don't have.  Are there any add modules from VIPM that would give me that control, or can I build one and replace the slider with my parts, as was done on the youtube video?

If I can build one, I am not aware of how to do this? Is there a tutorial or information on this?

Thank you.

connect the sensor IMU (MPU 6050) with the acquisition card BNC-2120

$
0
0

Bonjour,

J'ai un projet de fin d'étude et je suis bloqué comment connecter le capteur IMU (MPU 6050) avec la carte d'acquisition BNC2120.

Je besoin de repos s'il vous plaît et je suis un débutant dans Labview.

Je vous remercie


Verifying Missing Vision Runtime

$
0
0

I'm attempting to verify if the issue I am having with a VI is purely due to lack of a Vision License, or if there is some other issue. I have a VI that, when opened is unable to find "IMAQdx.ctl". When the (previously) compiled version is opened, it is unable to find "niimaqdx.dll". 


I have the 2018 Vision Runtime installed in Evaluation mode but there has been no change to these errors. Is that not the point of the eval version? I just want to ensure that these VIs are correctly functional with the runtime before purchasing it to run on the deployment machine. 

 

 

How to reinitialize the shift register after stop?

$
0
0

Whenever I stop the program I would like to reinitiate the value that the case structure gives me. It is giving me the maximum value.

After I stop, I want it to go back to zero. 

 

Any suggestion?

 

Thanks

 

DAQ input / output device compatibility.

$
0
0

I am working on a college Mechatronics control project. As my Labview knowledge is basic I aim to make it as basic as possible. Plan is to control the irrigation of a house plant connecting a moisture sensor through DAQ to my VI and based on the moisture level output to a water pump to irrigate the plant in a controlled manner. I have watched different methods of doing this on the NI site and elsewhere. I'm still not sure how to do this but my alternatives are:

 

A. Purchase a DAQ and connect a moisture sensor in and pump out.

 

B. Use and Arduino, configure it in place of DAQ and configure it to a Labview VI.

 

Or is there another way which will work without costing a fortune? As cost is a concern I would prefer to but compatible refurbed or second hand hardware where possible.

 

My real questions are:

 

Can I see a list of hardware manufacturers for third part sensors, pumps etc that are compatible with a DAQ, either National Instruments or third party. 

 

Can you please recommend a website where I can purchase refurbed or second hand DAQs, either National Instruments or third party.

 

I don't want to buy hardware to find out later that it's not compatible.

 

Thanks in advance,

 

Tony 

 

Compiler error: "nmux bad ofst"

$
0
0

Have anyone seen something like this?

compilererror.png

"Compiler Error. Report this problem to National Instruments Tech Support.

nmux bad ofst"

 

(this is probably just another obscure error that almost nobody ever seen, but it's worth asking anyway...)

 

Download Files From SD Card

$
0
0

Hello everyone,

 

I would greatly appreciate if someone can help me with the codes or ideas how to use the LabVIEW to download the files from SD card and send files to computer via network, in other word, I use Arduino IDE to take snapshot from a camera and save files in the SD card, and then use LabVIEW to download files, so I can images where ever I go. Thanks in advance.

Memory usage of an array

$
0
0

Use a 2D I8 array with 4 rows and 4 columns. The 16 „playing cards“ are labeled by the numbers 1, 2,…,8. The array shall be initialized by 0 („no value assigned yet)

 

Implement the following SubVIs:

SubVI  init: Initialization of the „playing cards“. Every n  {1, 2,…, 8} shall be placed at exactly two different random locations of the array

 

input: 2D array initialized by 0

output: 2D array with randomly distributed Playing cards

init shall call SubVI placeNumber for every n  {1, 2,…, 8} twice.

 

SubVI placeNumber:

Input: 2D array, number n  {1, 2,…, 8}

Output: 2D array, number n placed at a random, free location

 

Use SubVI set:

Input:  2D array, two distinct positions (i1,j1), (i2,j2) of cards. 

Output :  numbers for both positions. A negative value indicates that the card was already removed. In this case, the move has to be repeated

 

move shall use SubVI get:

Input: 2D array, position (i,j)

Output : number for positionen (i,j) („uncovered playing card“). A negative value indicates a card that is no longer available

 

Note : please find the attached Working file and kindly help me to solve the Sub VI's 

 

Regards,

Muthukumar

 

 

HC-SR04 Ultrasonic Sensor with MyRio

$
0
0

Hello,

 

I want to use the HC-SR04 Ultrasonic Sensor on MyRio to get an analogue input (doesn't matter if it gives me time or distance). I found many threads that have to do with using Labview FPGA. However, I don't know how to use FPGA and due to the time constraint, I can't learn it now. Is there any way that I can achieve my goal with only using the regular Labview functions?

 

Any help will be greatly appreciated.


having problem creating installer

$
0
0

EXE.png

i have created the executable from my project and now creating installer but my VIs that are in project and also in execuatiable are not showing in installer as shown in figure ..please help me

Drawing a Heighway Dragon curve using the L-system method.

$
0
0

I am a beginner level user of LabVIEW NXG and i want to draw a Dragon curve (fractal) using the L-system method.

The dragon curve drawn using an L-system.

variables : X Y
constants : F + −
start : FX
rules : (X → X+YF+), (Y → −FX−Y)
angle : 90°

Here, F means "draw forward", − means "turn left 90°", and + means "turn right 90°". X and Y do not correspond to any drawing action and are only used to control the evolution of the curve.

The user must be able to specify the number of iterations of this curve.

 

If anyone would be able to give an idea on how to begin this i would appreciate it.

 

 

Running parallel ActiveX methods

$
0
0

I am trying to upload a .hex file in parallel in different chips using different programmers.

I am using an ActiveX method of the programmer's maker. Even though, I configured the .vi to be a preallocated reentrant .vi, when I run the code in parallel, LabVIEW crashes a few seconds after the execution of the methods starts. I don't have this problem with methods that require less time to execute.

 

So, I created an executable and made copies of it. Now I can upload the .hex files in parallel in different chips using different programmers.

 

I dislike very much this solution. Do you have any idea why this is happening? And do you know a way to perform this same operation with a .vi called multiple times?

 

I do not know if its a memory issue or some kind of entity is juggling its time between the calls when I run the vi.

Concating many strings at more efficient way

$
0
0

Hello,

 

I am using a code that concating many different strings and data, but it looks very messy.

Is there a better efficient way to do it?

This is an example for a part where I have to connect all the data:

strings.jpg

Thanks

 

Shift registers in Enqueueing loops

$
0
0

Hi all,

Recently, I was creating some producer/consumer subVIs using queues and stumbled upon a strange phenomenon: in the loops that enqueue an element, it is required to pass a queue reference through a shift register to enqueue an element, otherwise, it won't work. But, in loops that dequeue elements, it is enough to pass a reference to a queue through a tunnel. If someone could explain the reason behind using shift registers in enqueueing loops, I would very much appreciate it.

I've attached a file I'm working on, and the thing that concerns me is the need for the shift register in the consumer loop.

Viewing all 69161 articles
Browse latest View live


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