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

unable to retrive data continously from external device

$
0
0

Hi,

I wrote program to read the values of external devices through serial communication but not working properly. when I run the program , First time all sessions are opened and read values as expected but the execution time between the loops is 2 seconds. secondtime, all operation executes as expected but  values are not reading and the execution time between  the loops is 50 ms.  I attached VI and sequence structure. Kindly support me.


Reading Text File

$
0
0

I am getting "ERROR 43 Open File+.vi:File DialogLabVIEW: Operation cancelled by user."  The file appears to be in the correct place on the Rio... code works in test locally.

3D Plot (Waterfall) in dynamically loaded VIs results in reference leak

$
0
0

Hi,

 

I'm using a 3D Watefall in a dynamically loaded VI (a dialog showing the 3D Waterfall). The VI is loaded using the "Start Asynchronous Call.vi". It all work fine. I can open multiple dialogs with the 3D Watefall and close them. (see the screen 3d_ref_leak_01.png). This is the only part of the code that touches the 3D plot.

However, when I close the dialog (the subVI with the 3D Waterfall in it), the LabVIEW Desktop Execution Trace Toolikt returns 85 reference leak messages. (see attached screens). Is it really a reference leak? Am I loosing memory?


Using LabVIEW 2017 32 bit on Windows 10.

Measure Time between two pulses with Encoder

$
0
0

Hello,

 

I have an encoder connected to a DAQ NI 6212 to counter 0. The outputs A and B are connected to PFI8 and PFI10, and GND to D GND and + to +5V. For know I am geeting the position of encoder, so when I rotate the encoder I have the current position(like 90,180,360). My encoder does 15 pulses in a rotation.

 

How can I measure the period between two points, I think I can measure this by taking the time between two points and reset that timer at every pulse. I am new to labview and I am a little bit confused.

 

Thank you

Serial Communication (COM-port) via Sb Rio9636

$
0
0

Hi all,

 

I have been working on a project which needs the actuation of a stepper motor. This was done by using the analog outputs on the Sb Rio9636 in the FPGA module of LabVIEW. Recently, I have been given a new (faster) stepper motor, which unfortunately works with serial commands (ASCII). I have no idea about how I can use any of the COM-ports on the RIO to communicate with my stepper motor as I have no experience with serial communication in LabVIEW whatsoever.. 

Any help or examples about serial communication would be greatly appreciated. 

Thanks in advance,

Oliver

How to synchronize FPGA and RT?

$
0
0

Hi all,

I am using crio 9076 with followinf modules: 9234 and 9263. I need to synchronize FPGA and RT working at same frequency which is about 2000 kHz. I am using FIFO as communcation method between FPGA and RT. Is that possible? And how it is possible? What method should I use?

String Functions Used for Password creation

$
0
0

I want to create a string used to input a password. In that I want to put some conditions like follows:

1. String must not me greater than 8 characters.

2. It must contain atleast one Upper case and one Lower case character.

3. It must contain atleast one symbol.

For this i didn't find any direct function so I have completed the program halfway.

Please, see the attahed VI and give some solution if anyone have.

Basic Programming Problem

$
0
0

I need to develop a structure on the following condition: where when value of n changes, t should display a value as given below.

 

N ranges from 100 to 1000

T ranges from 35-150

if N>900, T=35

if N>800 and <900, T=40

if N>700 and <800, T=50

if N>600 and <700, T=60

if N>500 and <600, T=70

if N>400 and <500, T=80

if N>300 and <400, T=90

if N>200 and <300, T=120

if N>100 and <200, T=150


Split input channels to DAQmx read

$
0
0

I am not sure if this question has been answered before, but I would like to know if you can specify all the channels read from DAQ but read few of them every loop?

Imagine we feed all the channels to the while loop where DAQread acquires signals continuously, but then specify a true/false statement for the DAQread to read channels 0-3 in the first loop (or second) and 4-7 in the second loop (and repeat)?

Ignore changes when closing LabVIEW from command line

$
0
0

Is there a way to ignore changes when closing LabVIEW from the command-line? So that LabVIEW doesn't halt the exit with a save prompt.

 

I'm trying to get an automated build server going and want to be sure that LabVIEW is really closed on the remote server and not stuck in an unknown state.

Line of best fit issues

$
0
0

I have designed a platform where i am extracting data from six different files and plotting them. Using the Linear fit function i should be able to get a line of best fit. But it is not case. Please find attached a figure of the plots with the line of best fit. The y-intercept shows a negative value and the graph crosses at the origin. Also it is not taking into account the plots in the upper part of the graph so that i can get a good line of best fit. Please help me out if possible. Thank you 

Run Mode (ctrl+m) - why not operable in case of errors?

$
0
0

I always wondered the reason behind this behavior.I google-d for a while, but nothing relevant came up so far...

 

I often use the run mode when I want to review the "looking" of my front panel, like the changes caused by custom Window settings, and some other visibility checks of the different objects on the front panel.

 

However, when I work on a VI, it is still often in a non-runable state. Still, I want to see how the FP looks like using the ctrl+m. Since the VI has a broken run arrow, the ctrl+m will just open the error list dialog.

Questions:

  1. What is the real usage of the "run mode"? I exclusively use it for the above explained "style" check.
  2. Is there a workaround? How can I see a non runable VI FP in run mode?

Dropdown menu to select config file.

$
0
0

I have a current VI with multiple config files associated with it. At the moment when loading a config the file is selected in a file explorer window, which is set to open in the folder with the config files and returns the path. What I am wondering is if it is possible to have all of the config files in a dropdown menu rather than opening up a file explorer window. It seems like it should be possible, but not sure if the effort needed would be worthwhile.

Mass Compile issues

$
0
0

I have having issues mass compiling a large project that was built in LV 2016. I am attempting to mass compile in LV2017.

 

The project has close to 4,000 VI's.

 

I have had some success drilling down to sub folders in the directory and mass compiling. But, this is very tedious and I still occasionally get compiler crashes.

I have adjusted the LabVIEW Compiler optimizations down to 0.

 

I still continue to get these type of error messages (attached) when the compiler crashes.

When I search for solutions to these error messages I can not find a solution. 

 

Any Ideas?

 

2018-02-12_10-06-15.jpg2018-02-12_10-06-06.jpg

 

 

Modbus API

$
0
0

Hi,

I'm new Labview developer. After some hours of training, I developed simple vi to communicate Modbus by serial port with external device. This is simple because I created an array and send it by rs485 (I have usb-rs485 adapter). It works!

I read that there is a modbus library (I open labview example..) and I want use it.

How can I import it in my project?

Thanks in advance.


Common Class Data for Child Classes

$
0
0

I have a parent class and several child classes.  Each child class has different class private data; but a subset of that data is the same for all classes.  I would like to make a single pair (read/write) of accessor VIs for the common data.  However the way that seems like it should work doesn't (see example "Try Read-Write Child Common Data.vi" in attachment.)  It seems that each instance of a child class contains 2 copies of the common data: one for the parent class, and one for the child class.  Is it really necessary to create separate accessor VIs for the common data in each child class?

Multiple VI on a Single Program

$
0
0

hello,

i am using LabVIEW 2010 , i wants to call different subVIs in same program ,example 3 subVIs are there if i select subVI1 then it should run then if i stop that subVI1 only stop next if i select subVI 2 that has to run . In this concept i am facing small problem when i used to stop subVI 1  main program gets stoped . so how to use different subVI program in same main vi.

Analog read and write with DAQ Assistant block using NI-USB 6215

$
0
0

Dear friends.

 

I´ve been having problems in my control application using LabView+DAQ NI-USB 6215.

In general, I need to read a analog input, filter this input by a LMS FIR filter and then write this filtered signal in analog output port.

The problem is that my output signal is okay in the window graph (Labview), but wrong in the output port of DAQ. To be more exact, the frequency of my generated signal is wrong, smallest than must be.

I'm setting the input port with the continuous samples mode, at a rate of 2500 Hz, with 1 sample to read for loop iteration. The output port has been configured with an on demand mode.

Somebody knows how to fix it? Maybe the the frequency of my signals were corrupted by the loop iteration time?

Table.ctl, cell background colour

$
0
0

Hallo,

 

I have created a Table ctl typedef with 60 rows for viewing some data. I am calling this typedef in another Vi and have used the CellBGColor property to grey out some cells marked with X. I checked with the highlight execution, and the greying is done only upto 39 rows, before it moves to the next column. Any ideas why this might be happening? Does the table.ctl have some sort of limit? Any help will be appreciated Smiley Happy

 

Cheers,

mulayvus

nitargetcfg.so crash on sbRIO9607

$
0
0

We've been debugging our application LV 2016 with a call to create and tear down our specific classes. We seem to be able to exacerbate an error in nitargetcfg.so despite our main application not calling into it.


We have some webservices that open a (one) session handle to system configuration to allow the user change the ip address without using internet explorer/silver light. I have one call that is requested when we load a webpages that retrieves the current ip settings for the target. It probably gets called 5 times tops in the hour it takes to crash the target. The two most recent crashes point to 
0xB4846000 - /usr/local/natinst/lib/libnitargetcfg.so.1 + 28000
0xB4881BD4 - _ZN2ni9targetcfg7network30GetDeviceSupportedModesByIndexEmPm + 54

0xB4B463AC - /usr/local/natinst/lib/libnitargetcfg.so.1 + 283AC
0xB4B85868 - _ZN2ni9targetcfg7network32GetDeviceTCPIPRequestModeByIndexEmPm + D8

I'm attaching the lvfailure logs below. 

 

Is this a known car? Any workarounds?

I'm trying to disable the call to see if the crashing goes away or if its the system configuration in general is causing the issue.

 

Viewing all 66714 articles
Browse latest View live


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