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

Acquire data from sensor via cRIO 9040 port RS 485 MODBUS

$
0
0

Hello everyone,

I am trying to acquire flow rate data from a sensor via the serial port of my cRIO in Labview.

 

I am using:

  • Labview 2018 (including Real Time  and DSC 2018 modules)
  • RT cRIO 9040 - which includes a serial port RS 485 (http://www.ni.com/documentation/en/compactrio-controller/latest/specs-crio-9040/specs/)
  • Ultrasound flow meter which supports the MODBUS protocol. The interface operates in half duplex mode, 8 data bits, 1 start bit, parity even, 38400k Baud and device address default 001. I only want to read the first holding register 400001.

I read several posts online and I am trying to use a I/O server to do so (http://zone.ni.com/reference/en-XX/help/370622M-01/lvmve/create_mb_ioserv/)

 

I can see the RS 485 port as 2-wire connection on NIMAX, I added the modbus serial I/O server (master) from the RT target in my project and I  created the bound variable of interest (flow_data) in my "IO variables" library.

 

However, when i open the properties of my I/O server I can only pick the serial port in the range COM1 to COM32, which doesn't correspond with the name of my cRIO port I see on NIMAX.

 

How do I know which one is the correct port?

 

In my vi I only have the shared variable connected to an indicator.

When I try to run it using one COM port (which I am not sure is the correct one) I get the following error:

 

-1967353900

Shared Variable in Platform_master.vi<APPEND>
This error or warning occurred while reading the following Shared Variable:
\\.\IO_Variables\Flow_Data
\\.\IO_Variables\Flow_Data

 

I would really appreciate any suggestion to do so and solve my errors.

Thank you very much.

Gaia


repere d'un objet par rapport à une camera

LabVIEW 2014 (64-bit) Download Issue

$
0
0

Hello Guys!

I want to download LabVIEW 2014 (64-bit) from the NI official website. the first link popping up in Google when you search for "LabVIEW 2014 64-bit download" is exactly this website, with the following link:

http://www.ni.com/download/labview-development-system-2014/4733/en/

The procedure I follow is:

1. Since I have a serial number, I choose "Register your serial number" from the above link.
2. Then on the new page (http://www.ni.com/myni/products/en/), I enter the serial number in the field "Register a Product".
3. After a while, on the same page, a section appears by the title "NI Academic Site License - LabVIEW Teaching and Research (Large)" and in the "Select Action" I select "Download Software".
4. The NI Products Download page appears and I search for LabVIEW 2014 (64-bit), and choose the product.

But here I will be redirected to the first link I had started with! And I'm stuck in this infinite loop!

Can anyone help me get access to the download link and download this software?

P.S.1: Due to memory limitations, I want to switch from LabVIEW 2014 32-bits to LabVIEW 2014 64-bits, so I want for sure to work with the 64-bit version.
P.S.2: I am working with windows 10

Best, 

Nader


Automatically on and off Boolean switch

$
0
0

Hi,

 

My program needs to ramp up to a particular value and then ramp down, and this has to go on forever. I can use a switch to manually do this. If this switch works automatically, then my program will work continuously. Can someone tell me how to make automatically on and off switch?

 

 

 

Regards,

Changing values of array with every iteration

$
0
0

HI,

I want to add to every element of the array with every iteration of the for-loop. I have attached the program that I have created. Whenever I run the program I get the output as an array with every element in it having value '0'. How do I solve this problem?

Communication between Panasonic A6 servo driver and Labview

$
0
0

I am trying to control the Panasonic Minas A6 MCDLT35SF servo driver using Labview. I am using the motor from FUYU. Does any have done this type of communication before? Thank you. 

combine Arduino and sound card in Labview

$
0
0

Hi,

I have a project that needs me to acquire signals by Arduino Uno and PC sound card. I have tested them and both of them work well separately. But when I want to put the two programs into one program, an error happens. It shows 

1.png

 

I don't know what's wrong and can't solve it. Can anybody help me?

Here is my file.

Transmitsignal with USRP N210

$
0
0

Hi,

I'm trying to send a simple sine wave signal to the N210. Labview will not issue an error message, but if I look at the signal on the spectrum analyzer I only see a signal that matches with my carrier frequency, but not my actual sine wave signal.It makes no difference if I change the parameters amplitude or frequency (sin), the image on the spectrum analyzer is always the same
Can someone tell me where my mistake lies?
Thanks in advance


Which product(s) should I purchase?

$
0
0

I am looking to purchase data acquisition software, but I am very overwhelmed as I am a student with no experience in data acquisition, on a limited budget, and need to find the software that will suit my needs. Any help would be greatly appreciated.

 

I am looking to purchase a PCB piezoelectric load cell and the associated signal conditioner, but I have to buy a compatible data acquisition software. Firstly, what kind of products should I be looking at? Do I need to buy any hardware or only software? I already have LabView on the computer I will be using, so would NI FlexLogger be the correct thing to buy? If so, are there cheaper options? If not, what sorts of things would you recommend looking into?

 

I apologize for asking so many questions, I just need to get this load cell up and running and I cannot afford to purchase the incorrect data acquisition product(s). Thank you to anyone who responds, truly a godsend.

Getting flow sensor frequency using FPGA and using DMA FIFO from target to host. Not getting correct number of samples in output TDMS file and unable to get correct number of pulses from flow sensor.

$
0
0

Hey guys, I have been trying to get a flow sensor reading by counting the number of pulses given out by the flow meter. 

I use NI 9205 analog input module in differential mode with 9.5 to 10 Volts and 11 mA excitation from a voltage generator, with a Compact Rio 9036. The frequency output from the flow sensor is 40Hz to 1200 Hz. The sampling frequency is 2 KHz(1/(20,000 ticks*25ns)) where 25ns is the FPGA clock rate.

Using DMA FIFO, the data is acquired by the rt loop- 

 

Problems;

1. instead of getting 120,000 samples (2khz*60sec), I get only 24,000. why? 

2. I counted the pulses in matlab but I get only around 900 pulses in a minute. I guess this is obvious from point 1?

I have attached the VI's, the TDMS files with readings for 1min with constant flow of around 1.05 litres per minute, second VI where flow is reduced from 1.05 litres per minute to a lesser one and then to 1.05 lpm again

and the flow meter specs

 

Can someone please advise me what to do here? As I've been breaking my head over this for 10 days. I'm new to labview and data acquisition.

Query about compatibility with LabVIEW Runtime Engine(32bit and 64bit) installed on a PC running 32bit/64bit Operating System

$
0
0

Hey Guys,

 

Good day. Just wanted to check with you guys about installation and compatibility, with different versions(32 and 64bit) of Runtime Engine for LabVIEW in a PC.

 

Haven't tried these combinations yet(but will definitely give this a try to check, will update this thread once I have results as wel).

So if anyone has already stumbled upon these scenario, please let me know.

 

So these are my questions:

1) Usually most of the VI's I am creating will be under 32 bit Version of LabVIEW 2018 Professional Edition, as most of the drivers integrated,

such as Virtual Bench, IORELAY's and etc is using 32 bit.

 

So the question is when other PC's with 64 bit Operating System without Full LabVIEW installed and 64 bit Runtime Engine is installed, when opening 32 bit versions of VI's(.exe file),  will this create LabVIEW compatibility issues?

 

2) The other way around, when other PC's with 32 bit Operating System without Full LabVIEW installed and 32 bit Runtime Engine is installed, when opening 64 bit versions of VI's(.exe file),  will this create LabVIEW compatibility issues?

 

3) Is it ok, to install 32 bit Runtime Engine on a 64 bit Operating System? will this create LabVIEW compatibility issues?

 

4) Is it ok, to install 64 bit Runtime Engine on a 32 bit Operating System? will this create LabVIEW compatibility issues?

 

5) Would it be advisable to install both the 32 and 64 bit Runtime Engine in either of the operating system? To be able to properly

run 32/64 bit VI's?

 

Your inputs regarding those items above are very much appreciated.

 

Many thanks in advance. :-)

 

Cheers!

StayHappy

How to set time value when exporting from LabView to Excel

$
0
0

Hi, My goal is very simple. I have to measure temeprature from 4 thermocouples for an hour and export the data to an excel sheet for further analyzing. I have set up everything however on the excel sheet it only shows the time value as the actual time when the data was ran (ie. 3/14/2019 7:34:02). Instead i need to it to be in Seconds or minutes (ie, 0s - 3600s). I have attached my setup below.

Yokogawa UP55A controller Help needed

$
0
0
Please find the attachment, I am using UP55A for temperature monitoring & Controlling on cooldown I want temperature should be fall by 20C/minute. Presently it's falling by the rate of 10C/minute.

OPC UA discovery

$
0
0

I downloaded OPC UA Local discovery server (LDS) from the website of opc foundation. But I am unable to make OPC UA server and LDS trust each other. How to do this?

Data acquisition labview USB485-CPT

$
0
0

Hey

I am a student and for my thesis I have to make a data aquization system for recording multiple current curves. For this, the cms700 and the USB485-CPT are used for a modbus connection. To start with, I'd just like to display a current curve, but I have no idea I should do this. Is there anyone who would like to help me with this?


Read data from Excel via .Net interface

$
0
0

I'm currently developing an application with a .Net interface for Excel. I really don’t like to use the NI LV toolkit because of the legacy ActiveX interface. Writing to Excel works just fine, but reading from a spreadsheet fails at the point where I am trying to convert the values from the .Net reference to LV variant. Does anybody have a working solution for the problem?

I’ve attached my current status.

LabView IDE uses only 25 percent of CPU

$
0
0

Hello,

 

while compilation in LabView 2016, the LabView IDE uses max. 25% of the CPU (I use a machine with 4 cores but only 25% of the whole CPU are used).

 

Question:

Can I use e.g. 80% .. 90% of the whole CPU (e.g. use 3 cores) ?

 

This would make the compilation process faster (currently it need ~15 minutes)

 

Thanks

EW

My System:

 

MySystem.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CPU usage:

 

Task_mgr_processes.jpg

 

 

Task_mgr_CPUs.jpg

 

LV_Compilation_Max_25_percent.jpg

 

To verify the errors

$
0
0

please tell the errors where we want to rectify...

Auto Thresholding an image for text extraction

$
0
0

Hello Community,

Greetings Smiley Happy

I'm working on a Text Extraction algorithm in which I need some assistance with thresholding an image. I'm using the "AutoBThreshold2.vi" from Vision Development Module 2015. I decided to go with Otsu's Algorithm for thresholding which is available as "Inter Class Variance" algorithm. Now, The problem is that I need to specify the "Look for" option to extract the text! Unfortunately, my input images will not be always be same.

Kindly refer the attached images. My question is that Is there any way to find whether the image has Dark objects/Bright Objects on Dark Background/Bright Background? Meanwhile I'm also playing with Histogram to find out the BG & FG type!

I'd really appreciate your help... 

How can I do to avoid unnecessary copy of the array?

Viewing all 69758 articles
Browse latest View live


Latest Images

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