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

[Bug?] Code redraw issue when dragging code into structure (LV2017)

$
0
0

I've just started using LV2017 in anger, and immediately noticed a code redraw issue when dragging code into or out of a structure on the block diagram. See the example below:

glitch.gif

After dragging the code into the structure, when the mouse is stationary and the mouse button still held down, the code will redraw in the current position. If I move the mouse by even one pixel, the code will switch to an outline view, before redrawing again a second or so later. This is highly distracting when performing precise code placement (lining up with existing code/wires), or even when briefly pausing moving the mouse. At first I thought my mouse was at fault, and was randomly jumping around the screen.

 

This behaviour isn't present when dragging code entirely outside or entirely inside a structure, and isn't present in LV2016 at all.

 

This seems like a regression from LV2016 - is this redraw behaviour intentional?


different network for dashbord

$
0
0

hi 

i am read values in data dashbord(in mobile)of one vi in same network, can i read that vi values in data dashbord in different network and without wifi? 

How to delete my own post?

add something on simple serial

$
0
0

hello. I recently started studying labVIEW

Professor gave me the assignment, but I'm a beginner so I don't know how to get started.

(the assignment is making PPG program.

the purpose of this is 1. Design bandpassfilter

                                  2. Use FFT to find and set the cutoff frequency of filter

                                 3. Threshold & peak detection

                                 4. Calculate pulse rate and average.

                                 5. Find heart rate per minute and average

 

First, This VI is made a  slight modification to the simple serial.

(This is 2017 ver)

I created while loop and replaced with Time loop.

and added sync VI( additional program given by professor)

 

The biggest problem here is that I think I need to add a filter here first, and I don't even know if I need to add filter inside the loop or just outside.

Can anyone solve this problem? 

I would really appreciate it if you let me know a little bit of clue.

 

I'll attach my VI. 

 

Disconnect without losing the reference

$
0
0

I want to transform a linked property node for instance into an unlinked property node with a connected reference?

I know how to disconnect, create the reference again and connect it. I just want to know if there is a way of doing that quick and easy, preferably with one click or key stroke combination Smiley Happy

If you look at the snippet you'll understand what I mean by that.

Thanks

Capture and view large size data

$
0
0

Hi all,

 

I'm using LabView 2012 version and i need help about large size data storage and viewing by Table. According to my application i'm collecting 11 different data (32 Bit int) in each sample with 20 Hz by RS232 protocol. I mean that i have 20x11 matrix in a second. While i'm just listening the RS232 port i can capture all data without any lossless. But if i want to write these data to Shift register and show all data by Table in each loop i've a lot of data losses.

According to my application i need to collect these data during 45 minutes and it means that i must capture 54000x11 data. Do you recommend me some solution to use instead of Shift register?

Spreadsheet String To Array , NEED HELP PLS!!!

$
0
0

Hi everyone!!! Need a help! I can't understand why when i make array from spreadsheet string (photo in atachment) result is integer??? When i wrote that string format is %f   %5,18f  %d....actually i tried all combinations!!!! How can i got result like in strings help.

Delimetr is enter.

Thanks!!!!

 

Modbus TCP - communication with Phoenix bus controller too slow

$
0
0

Hello to everyone,

 

I am currently trying to run a Phoenix bus controller via Modbus TCP protocol to read out a connected AI module. According to the specs of the devices the sampleinterval should be roughly 40 to 50µs (including ADC conversion and bus cycletime). Unfortunately I am not able to get below 2 - 3 ms (details follow below).

 

Hardware used:

- USB 2.0 Ethernet adapter 10/100 Mbit (Modbus data + analog in data should be 128 Bit alltogether - should be sufficient if I am not mistaken)

- Phoenix AXL F BK ETH (Ethernet bus controller that supports Modbus TCP - they call it Modbus UDP - according to spec the bus cycle time should be in range of one digit µs)

- Phoenix AXL F AI4 I (Analog input module, that is connected via local bus to ethernet bus controller - according to spec the ADC conversion and bus time should not exceed 40 µs per cycle)

 

Software used:

- Labview 2014 SP1

- NI Modbus Library v1.1.5.39

- Port used for Modbus communication: 502 (standard port)

- TCP Server on port 3366

- PC is located in company network with firewalls etc (I was suspecting this to be the root cause but I could not test)

 

Now I created a quick and simple test vi (please see the attachment - sorry for the bad style) to read the Modbus holding registers as fast as possible and I placed multiple timers to get the duration of these polls. Due to the fact that these timers can only return milliseconds, I additionally calculate the duration by total samples divided by total duration. The result is always the same: 2.8 ms.

 

Unfortunately I was not able to find similar problems in forums. They are mostly facing problems of seconds and it seems as if nobody is working in µs intervals.

 

My questions are:

- Does somebody have experience with the NI Modbus library and maybe knows what could slow it down?

- Does somebody have an idea what I am doing wrong? I am new to Modbus so I think the error is most likely sitting in front of the display.

 

Thanks in advance!

Best Regards

Jenso


NI MAX Calibrating Outputs

$
0
0

I've just been looking through NI MAX and am surprised to see that I can calibrate DAQmx inputs inside MAX, but not outputs?

Is there a reason for this that I can't see?

How to make a measurement file

$
0
0

Hi everyone,

I am trying to make a part of the code that is going to write a measurement file in Excel and save it on the desktop or somewhere. I would like to use "Write to measurement file" function, but the time column and names of signals aren´t right (look at the photo).

You can find a problem in "Release data" state.

Does anyone has an idea how to fix it?

Best regards!

Calculate the distance froma starting point using a gps sensor

$
0
0

I would like one fo the loops of this program in scuh a way that I give  the start coordinates and it calculates for me, how
far I am from the starting point itself. So if I move towards thestarting point it should reduce the distance and of I walk away from it,
it should increase the distance. the result should be visible on the odometer.

At the moment this loop, this disctance is only increasing even when you move towards the starting pint.

visa (RS232) 2012 incompatible with windows 10

$
0
0

Hi.

 

Recently, in our testbenches, we had to replace our "old" windows7 computers containing a LV2012 interface and its source code.

 

After the very end of the installation I realized that the RS232 communication with differents devices (hand barcode scanner, PCBs) didn't work anymore. I discovered it by compiling the old LV2012 source code to LV2015 and it worked again.

compiling with LV2012 + Visa 2015 don't work either.

 

problem: we absolutely need to keep the LV2012. Is there a way to make it work?

 

thanks in advance for your suggestions.

.NET Constructor Nodes give Error 1 when used in existing project instance

$
0
0

I have a service request pending with NI but while I'm waiting I'm going to ask the community.

 

In existing projects I'm not able to use .NET constructor nodes, as I receive "Error 1" (see attached screenshot) every time I run the containing VI. I can create a new VI in the Main application instance and the constructor nodes work fine. I can also create a new project (or load a small existing project that probably doesn't have any .NET calls) and I can use the .NET framework through constructor nodes. But I get the error once I try the same code in my larger project instance(s). This occurs with several (any?) of the Assemblies under the Select .NET Constructor window (including System and some NI assemblies). Even if the constructor node is the only node in my block diagram, it gives this error.

 

I'm stuck.

 

LabVIEW 2017 Professional Development System 17.0f2 (32-bit)

Windows 10 x64, up-to-date

 

 

Using Sub Panels in a multi monitor set up ...

$
0
0

Let me explain the hardware setup :

LV15 running on WIN7 PC with two monitors.

One monitor is a touch type (800 x 600 ) and has all controls on it. 

Another monitor is a large non touch (1366 x 768 ) type with all indicators on it. 

 

So for every situation i have a CNT_XXX.VI that runs on the touch type monitor and DISP_XXX.VI that runs on the non touch monitor.

 

When the application opens,  it launches the CNT_MAIN.VI and the DISP_MAIN.VI.

 

Now the user clicks a button marked " TEST_01" on the CNT_MAIN.VI. It should then do two things :

Close the FP of CNT_MAIN.VI and unload from memory the DISP_MAIN.VI.

Load the CNT_TEST_01.VI and also the DISP_TEST_01.VI . 

 

The reason i cannot unload the CNT_MAIN.VI is that it has DAQMX functions in it for hardware interface and hardware data is passed on to the loaded SUB VIs through Queues or Function globals. 

 

Suppose i want to use Sub-Panels for the above set up, how do i go about it ?? Thanks.

EMG in labview

$
0
0

How do I obtain the EMG data in Labview (what is the block diagram code) without the use of DAQ ?

Thanks.


Camera attributes reset to invalid values on power cycle

$
0
0

The issue I am having is that my GigE interfaced camera, using IMAQdx drivers, overwrites saved attributes (viewed in MAX) with invalid values on power cycling. This causes out of range errors if I don't manually open MAX and fix the values after every power cycle. For some reason changing them programmatically in a VI still gives out of range errors.

 

I've had issues with this across multiple versions of labview (2009 and 2017), MAX(5.4 and 17.0), and vision acquisition software (2013-02 and 17.1), on windows 7 and xp, respectively. I'm primarily trying to use the older versions because I also need to interface with a fieldpoint system.

 

The camera is a Blackfly 0.5 MP Mono GigE PoE (https://www.ptgrey.com/blackfly-05-mp-mono-gige-vision-poe-sony-icx693-camera#tabstrip-2) which appears compatible with both versions of the drivers I'm using. I have updated the firmware to the most recent version.

 

The first camera attribute that show up out of range are DeviceControl:Smiley Very HappyeviceIndicatorMode (controls whether the camera LED flashes or not). It resets to a blank value, and valid options are either "active" or "inactive". The second is DeviceControl:Smiley Very HappyeviceLinkThroughputLimit, which defaults to 1002160000. It is dependent on a number of other parameters, like acquisition speed and desired peak bandwidth. I just need to change it to a different value in max, and when I acquire an image it adjusts to the correct value (which based on the default settings is 41480000).

 

I have attached the data files that I'm using on the older system, found in Documets\National Instruments\NI-IMAQdx\Data

 

I have tried deleting the data files and regenerating them by unplugging and power cycling the camera, but run into the same issues.

 

Any advice would be greatly appreciated!

LabView Default Settings for automatic Cursor control

$
0
0

Where do I set in LabView 2017  to control the default Settings for automatic vs. no automatic cursor controls?

Issue with sampling from the 9212 using the FPGA

$
0
0

Hello all,

I seem to be having an issue with sampling from the TC-9212 using the cRIO.  The issue I believe is on the client side.  I am sampling from the 9212 and am trying to take measurements at 1 Hz using the following code in the image:

tc_daq.png

 

Simple enough.  But, for whatever reason, attempting to read the data from these FPGA controls is taking over 1.5 s.  Does anyone have any thought as to why this might happen?

4-bit numbers sanity check

$
0
0

Hi all, I rarely do any bitwise manipulation with LabVIEW, so I wanted to see if there is a better way to do what I want to do. 

My goal is to to take eight 4-bit numbers (8-bit numbers constrained to decimal value 15) and create a U8 array which my device can interpret. Here is a picture, showing that I want to end up with a U8 array of length 4.

Capture.PNG

I have a solution that gets me the correct array size. Is there anything in here that seems like a very roundabout way to do things? I am going to scale this up to work with an input array with 8192 elements, so If there is a way better on memory that would be useful too.

Capture2.PNG

Possible bug with Append Digital Samples and Compressed Digital Data

$
0
0

I noticed that the result of appending a 1-row or empty set of compressed digital data using DTbl Append Digital Samples.vi gives incorrect results when you append it to an existing set of digital data with a matching last row.  This does not occur when both sets of digital data are uncompressed.  See Digital Data Append Flaw.vi in the attachment.

 

This issue seems to manifest as follows:

If the second set is empty and the last two transitions of the first set have the same value, the data's endpoint is lost.

If the second set has one row that matches the last row of the first set, the endpoint of the combined set is lost.

 

My application just needs to individually track Boolean transitions (and I was getting some crashing issues when using 72 individual digital waveforms in parallel with other code), so I started writing my own (scaled down) version.  I found this issue when I was verifying that my code gives the same output as the built-in waveform functions.  I attached some of this code that could easily converted to handle 2-D arrays of U8's instead of 1-D arrays of Booleans (My Version of Digital Data Append.vi in the attachment).  Note that I am not doing subsets in my code, so I don't subtract an offset for the case when the first transition of the second array has an index other than 0.  I also don't have any code to deal with uncompressed data, as I only care about transitions.

Viewing all 66787 articles
Browse latest View live


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