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

Keyence Camera Send Data to Labview

$
0
0

Hi to All,

 

Is there anyone here who can help me regarding my problem.

I am familiar with Keyence camera but for the labview, i feel sorry.

Please help or teach me how can i send the camera data (CV-X100A) into labview.

In camera I am reading the barcode but i want the barcode data will send into labview and show it in panel board. Thanks in advance. God bless.


i2c with FTDI device addressing is incorrect

$
0
0

I'm trying to use Benoit's updated FTDI Labview drivers: https://lavag.org/files/file/282-mpssedll-labview-driver/

but it appears that the deviceAddress isn't being sent correctly:

FTDI_Test_VI.PNGTest.vi w/address =0001 0001TEK00001.PNGAddress=-0010 0010

The data values seem to be too early relative to the initial clock transition.  Could this be an issue with the libMPSSE.dll or the Labview driver settings?

Sampling Rate

$
0
0

Hi,

 

I am relatively new to LabVIEW and I recently made a test application that continuously logs data but I do not think the code responsible for sampling data is written efficiently.  I am just using the low level Daqmx VIs.  When the program begins, the data waveforms look normal but as time goes on, I start to see gaps in my data (See Image).

 

Also, after I left the program running for a few days, the program stopped logging data and I got the following error message: "Error -200361: Onboard device memory overflow. Because of system and/or bus-bandwidth limitations, the driver could not read data from the device fast enough to keep up with the device throughput."

 

Any advice for sampling best practices is appreciated!

 

Thank you!

Sorting Array searching for method

$
0
0

Hello guys,

I want to ask about a method to create it: 
I have this problem:


I have this files:

TTRT_1001#1_1_T10.txt

TTRT_1001#1_2_T10.txt

TTRT_1001#1_1_T200.txt

TTRT_1001#1_2_T200.txt

TTRT_1001#1_1_T35.txt

TTRT_1001#1_2_T35.txt

And I will have different numbers after T and I want to sort them by that number?

 

I uploaded my Vi. First sorting is for TTRT ( dont mind about it ) 
Thanks

Modal Sub VI

$
0
0

New Labviewer here and I'm trying to figure things out.  

Switching between VI screens in Labview and I have the basics done but when switch form one front panel to the other, the VI opens briefly with the full menu displayed then switches to modal view.  When I say briefly, I'm talking for maybe a few milli-seconds.  But when I'm switching from one modal view to another, it is rather distracting.  

Anyone have an idea on how I can fix this?  I've posted the project files. 

First VI loaded will be the Splash Screen

 

Thanks

Marc

programming a HC-SR04 sensor with a myDAQ

$
0
0

Hello,

I am trying to build a circuit to measure distance using a HC-SR04 ultrasonic sensor and a myDAQ without and Arduino provided by my university. However, we are struggling to set up the DAQ to produce the signal and receive the signal. wondering is you shred some light on this?

Plotting multiple runs on one graph

$
0
0

Hello all,

 

I am trying to write a program where data is recorded for a length of time determined by the user, and each run is plotted on the same graph. The problem I am having, is I can either reset and lose the previous run, or, it pauses then the same run jumps back to zero. I am unable to plot multiple runs onto the graph. I have tried to use an array and shift registers, but it still had the same errors.

 

Thanks!

 

Edit: added capture of attempted fix that did not work.

RPM from hall effect sensor, peak detection?

$
0
0

Hello,

 

I have a hall effect sensor picking up from a small magnet attached to a small fan, the input into the DAQ is in the below Imgur link and attached.

 

www.imgur.com/a/8TOpjs1

 

I can tell that I am getting roughly two rotations every 0.1seconds, so 20/second, 1200/min, however how can I get labvLab to detect and calculate this automatically over a period of one minute. Ideally I'm after something that would count how many times 2.5V is exceeded, then resetting at 2.45 so it can increment again after 2.5V is exceeded again, so that ultimately if the count in a minute period is lower than a setpoint I can trigger an output when the rpm is less than a certain setpoint if the fan slows down. (I can do this but I think)

 

After looking at previous threads I've seen peak detection recommended, however it looks more complicated than I'd have guessed, is this the only way, or is there a simpler, cruder solution?

Od067AQ_d.jpg

 

Regards

 

Ed


Glyph sizing in Icon Editor

$
0
0

I have often experienced a difficulty in creating icons with the desired glyphs because actually what happens is that their dimensions are higher than I expected and I can't find a way to resize them..

Can someone provide a solution to this?

Thanks

Converting Digital Array to Cluster

$
0
0

Hello Everyone!

 

I am simulating a NI9189 Chassis with a NI9425 module. I am trying to read all the digital inputs and display their states to the user by converting the array of digital data to a cluster and then unbundling it by name.

For some reason it is only showing me the first 8 digital channels and not the remaining 8 channels that I specified in the task. It happens when I convert the digital array to a cluster. If you look in the Block Diagram you will see that "data[8]" continuously repeats itself and does not show the next digital data point in the array. Does anyone have any idea why this is and how to fix it?

 

Attached are images and my code. 

Thank you so much!

 

 

 

Picture 1.PNG

Picture 2.PNG

Creating a GUI with visual studio for a Labview code

$
0
0

hi, well i'm creating a labview program for my final year project using ToF technic and i want to create a visual studio GUI for my code, the problem is i'm not sure if it's possible to do, and if it is i couldn't find the how for example to display a plot and a camera from my labview code to my Visual Studio UserInterface ! can anyone who worked in a similar project help me ! thanks. 

Where can I find these blocks?

$
0
0

hi, everyone.

 

I want to know where I can find these blocks.

 

It is pointed with a blue arrow.

 

thank you.

Modbus Input Registers vs Holding Registers

$
0
0

    I understand the defined difference between Input Registers (read only) and Holding Registers (R/W). However, I've got some code that has been working with a number of Modbus devices which looks a bit odd to me. In this code, there are channels that can be written to and then read back into LabVIEW to verify them, or in case the slave device changes the value by itself. Well, they are written to as Holding Registers, logically enough, but the VI that does the reading (using the exact same register addresses) uses the Read Input Registers call.

     So my question is: does it make sense that this software seems to have been working up until now? E.g. are there instruments that, as Modbus slaves, will respond to a Read Input Register OR a Read Holding Register command for the very same register? The reason I found this is because I now have an Omega CN740 temperature controller which gave an error when reading a Holding Register using the Read Input Register command. So at least some instruments are picky about what you call a register.

     It would make complete sense that you could not write to an Input Register. But how forgiving are most Modbus instruments when reading from a register with the "wrong" command?

Thanks in advance,

      DaveT

Basler Camera not responding on the longer run.

$
0
0

Hello,

 

I have connected my Basler camera "Basler acA2500-14 gc" with resolution 2590x1942 which is ethernet based.

 

I have integrated the same with Labview for image grabbing purpose.

 

But when i run the system for a longer time(more than 8 hours) the camera stops working, it seems like it gets hang.

 

Everytime i need to unplug and plug the power back again.

 

Can anyone provide some solution on it

 

 

When init large array in class code gets slow

$
0
0

Hello,

 

I made some code to generate sound now I want to create a delay.

The code is object oriented, first I run the init where I initialize an array of 441000 doubles.

Even if I don't change values of the array my code is much slower.

 

When I change from 440000 to 1000 then it is faster.

 

So why is the code execution slower when I initialize an array of 441000?

 

 


how to create control for 12bit integer.

$
0
0

i want create control where i can write maxmium 2^12=4096 integer value.

data acq, how to get started

$
0
0

Hi,

 

I am new using labview and I need to create a program that would:

-send AO and DO signals

-Read AI in right channel

-Do this in a certain order.

 

Any help on how to get started? Just so that I would get the idea what I need to do.

 

NI Daqmx doesn't find my physical channels, so thats out of question? I have NI U2300 series drivers which should allow me do what I need to do?

 

Instrument is U2355A

 

Merging Multiple Arrays

$
0
0

I've been given some old code to develop, that in the end gathers lots of information and saves it in a .csv file.

 

As you can see from the attached image, the code is not the prettiest. The problem I am having is that if I increase the number of values that one of the arrays has on the left hand side and increase the index number (39) by the same amount, the .csv file does not display the values and can even stop saving other values.

 

I can't understand why this occurs? 

 

Also if there is a better, cleaner way of merging all and saving these array values to a .csv file that would be great information to have.

 

Thanks

K. Ellis

Error in communicating with DAQmx when building executable in different folder on the same laptop

$
0
0

Hi all, 

 

I've recently wrote a programme in LabView 8.0 32-bit using an NI-DAQmx (USB-6210) and then built the executable application in the same folder where all the subVIs and .lvproj files are and the executable runs smoothly (let's call it Folder 1). I plan to run the executable on different PCs as well, so I built a second executable in a different folder (Folder 2) (with a global network address for eg H:\) as I plan to later move that executable into the C:\ of the target deployment PC. 

 

However, when I try to run the executable in Folder 2  from my current PC, it doesn't work. After troubleshooting,

 

1) it looks like there seems to be a problem with communication with the DAQmx. When I wired an error indication, I get the error below:

 

Error -229771

DAQmx Create Channel (AI-Voltage-Basic).vi:1780001<append>
<B>Task-Name: </B>VoltageRead

 

2) I understand from similar problems on the forum regarding running executables on different PCs that it could be the NI MAX or Labview Run-Time configuration (I'm pretty sure I will run into that problem later on as well lol) But right now that shouldn't be the issue since I'm still using the development PC to attempt to run the build.

 

3) So far, I've tried building yet another executable with the same network address (C: ) ie the desktop and it works fine as well so I've concluded it's something to do with the different network address.

 

For info: the communication to DAQmx is the bog standard Create Channel > Create Task > Read etc. There's only one USB-6210 so I didn't put in all that 'Find Device first' property nodes....

 

Maybe someone has an idea how to overcome this? Thanks a lot in advance!

 

 

tl;dr:   Executable works fine when built in different folder locations within the same network address, but not when built in a different folder with a different network address despite executing from same laptop because there's a problem with the communication to the DAQmx

Serial VISA Overrun Error 1073807252

$
0
0

Hello,

 

I'm attempting to read a stream of serial data at a baud rate of 9600. I've attached the main VI (FAV-1 Flight Testing Data Recorder_serial) in addition to the subVI's for that program. The DAQmx functions all work perfectly - I'm just debugging the serial read and write to file functionality. 

 

I receive the error AFTER I press the stop button and the program has been running for more than a few seconds. I do not get the error when the program has only run for 3 or 4 seconds. So far, the error hasn't terminated the program prematurely but as with any buffer-related issue I suspect that it will after the program has been running for a while. 

 

I've implemented the advice on other forums for correcting this error including:

- using producer/consumer architecture

- ensuring that the serial settings match the serial device

- using the terminating char functionality 

 

I've also read that I can manually increase the buffer size, but the default value is 4096 bytes. The device producing the serial data is sending three streams in a continual rotation: one data stream of 225 bytes, one that is 93 bytes, and one that is 74 bytes so the current buffer value should be plenty large enough.

 

Any advice would be greatly appreciated.

 

Thank you!

 

Viewing all 69161 articles
Browse latest View live


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