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

DMA Read Problem

$
0
0

I am experiencing some extremely annoying behaviour with my FPGA / RT code.

 

I have a bitfile which works.  I can use it in a minimal test case where all DMA writes and Reads seem to work.  But when I incorporate it into a larger application, sometimes (for reasons unbeknownst to me) one of the Read channels stops working.  It's not that it blocks upon reading (with Timeout -1) but it returns immediately but the array output of the DMA Read node is empty.  There is NO ERROR.  This should essentially NEVER HAPPEN.  Telling a DMA Channel to give me 88 elements with a Timeout of -1 should either produce an error or wait until 88 elements are available.

 

It's almost as if the DMA Read node is being constant folded with an empty array (or the RIO driver is messed up)......  but only sometimes.  Of course the code is dependent on a rather large RT project and the bitfile won't even run without our specific hardware so submitting the code for purposes of reproducing the issue is very difficult.

 

We had a problem in the past where DMA Reads on an PXIe-8840 were showing similar behaviour (only ona  single-core kernel).  This was apparently fixed in the RIO driver.  Now I am seeing similar problems on a PXIe-8115.  Although it's weird that my minimal test case (using the SAME VIs) works but in the full software doesn't.  Again, it's only a read DMA which dowsn't work, the Write DMA works (being called int he same Timed loop as the Read).

 

Does this sound familiar to anyone?  It's driving me nuts.  I'm using LV 2015 SP1 15.0.1.f3.  NI RIO driverversion is 15.5.


reset a feedback node of strings within a loop

$
0
0

Hello, 

I would like to reset a feedback node of strings that is within  loop.

Regards,

How to find out the sampling frequenz

$
0
0

Hello,

 

is it possible to find out the sampling frequenz. I've got a incoming signal that I low- and highpassed (0,5-4Hz) with a 88Hz sampling frequenz.

 

Now I want to get the time between 2 points/peaks/valleys. To do this succesfully, I need to know the sample rate. How can I find this out?

Unflatten from XML file into a cluster

$
0
0

Hey guys,

 

I have a problem with the unflatten function of Labview. I have attached 2 VIs for your use. one of them has 11 pages with 4 clusters per page, whereas, the other has 11 pages with 8 clusters per page. The second VI is modified by me to accommodate more values instead of just the 4 clusters' VI. Accordingly, i made changes to the XML file (named '11X4') and changed its dimensions to 11X8 instead of 11X4 and added the extra needed values. However, LV throws an Exception saying that the "Start/End tag pair maybe missing" every time i try to read the modified XML file (one with the 11x8) even though all of the given pairs are appropriately matched and closed. Any help would be greatly appreciated.

 

P.S. the modified VI works just fine without throwing exceptions, when the XML file named '11X4' is opened (the one with 11X4 Dimensions).

Thanking you,

 

Nash

LabVIEW 2016 Bitmap fonts

$
0
0

Hello all,

I understood that LabVIEW 2016 supports ttf fonts and in order to revert to bitmap fonts UseXftFonts=False must be added to labview configuration file, I did that and the project works fine with the bitmap fonts the problem is when I build an application and run it, it does not use bitmap fonts it uses ttf fonts again.

Is there another configuration file that I should modify?

Thanks in advance.

UsexftFonts.PNG

 

Osciloscope with function generators

$
0
0

I' m doing some simply osciloscope for school and I have few question about it.

 

1. Is it true that one program can only have one event structure? Because when
I do another program is blocking.

2. When I change something on the front panel it doesn't register until I change
something inside the event structure. How do I set up to receive new data?

3. How do I make that all data from the knobs are taken when starting the program?

 

Osciloscope with function generators

$
0
0

I' m doing some simply osciloscope for school and I have few question about it.

 

1. Is it true that one program can only have one event structure? Because when
I do another program is blocking.

2. When I change something on the front panel it doesn't register until I change
something inside the event structure. How do I set up to receive new data?

3. How do I make that all data from the knobs are taken when starting the program?

4. How I can make knobs for change a nivo of 0V? 

 

Serial port issue - Not identifying.

$
0
0

Got a small application to send a char string from LV to  a Arduino Nano via Serial Port. 

LV sends a pre -formatted String.

The Arduino Nano receives it and sends a OK acknowledgment back to LV. The code for that is attached.  All was working fine till suddenly i lost connection and when i refresh the Serial Port i get an image as below :

Serial Config issue.png

Does the above mean that the specified Serial ports are not available ? I know for sure that my Nano is connected to Port 12 but when i try to connect i get an error 

Error.PNG

SO what is happening ??

 


no NI Service Locator and Web Server services after installing FPGA Module

$
0
0

I installed LabVIEW 2016 and there was all fine. I saw the NI Web Server and the Service Locator services running. I could open tcp server with service names. Then I installed the FPGA-Module 2016 and now I can't find the nisvcloc.exe and both services are off. I can't start them with windows. Service Locator -> Error "can't find", Web Server -> Error "1067" because it needs the Service Locator service running.

Without this services LabVIEW FPGA can't connect to the local Compile Server and I can't open a tcp server with service names and Example Finder doesn't open the examples, but that's not important.

After uninstalling the FPGA-Module and repairing LabVIEW 2016 still both services are off and there is no nisvcloc.exe under C:\WINDOWS\system32\nisvcloc.exe

All worked fine with LabVIEW 2012 SP1 and the HIL and Real Time Test Suite 2016 (LabVIEW2016, FPGA-Module, VeriStand2016 and many more) till monday... then I installed with the NI Update Service a new update for the Updater with Microsoft Visual C++ 2015 Redistributable and then nothing worked more. Why there are allway this things with NI-Products...

Uninstall and reinstall takes many hours and you don't know if it would work.

OS: Windows 7 64bit

LabVIEW 2016 32bit with FPGA-Module

Some further details about Vis are needed

$
0
0

Hello everyone,

I'm currently writing my Bachelor Thesis. My topic is the realization of an Algorithm, which is able to find dark particles in images.
For this Task I'm using LabVIEW 2016 x64 and Vision 2016.
The algorithm works as inteded, but I'd like to explain a bit of the mathematics behind some the Vis, so I need some further Information.
I need this Information to be validated to cite it, which is why I hope that an NI- Programmer reads this and takes the time to answer the following 3 Questions:

-Does the Vi "IMAQ Find Circles" use an analysis of the hessian matrices to determine if the found circles are, indeed, circles?
-On which base is the elongation factor, used by the Vi "IMAQ Particle Filter 3", determined?
-In the same Vi, how is the "equivalent Ellipse" calculated/defined? I imagine it's the smallest Ellipse which can be placed around the Particle without intersecting it, is that correct?

You would really help me by answering these Questions!

NI VISA issues

$
0
0

Hi Guys,

So a while back my computer stopped recognizing instruments in NI MAX, and when running labview, I can't see the instruments in the VISA Resource controls.  I am sure that everything was working fine previously, and I really don't think that I had made any changes to my software that could cause this issue.  Before I say anything more, here's my software.

 

LabVIEW 2016 64-bit

NI VISA 17.0

All the other software that is automatically installed with these

 

Was working with these instruments:

Thorlabs PM100USB power meter

MDO3052 O-Scope

BK Precision 9131B

 

Now I cant connect to anything(although if I export my VI's to applications, Along with VISA and LabVIEW Runtime, they connect fine to other computers).

Things I have tried:

Re-installing Labview and NI VISA

Repairing NI VISA

Intsalling NI 488.2

Uninstalling 488.2

 

About to try:  Uninstalling NI VISA 17.0, Install NI VISA 16.0

 

Any input is greatly appreciated!!

Thanks,

Mattias

How to add a VI to all children classes for dynamic dispatch

$
0
0

Hello,

I have a LVOOP parent class that has dozens of children classes. I need to add a VI that will be called via dynamic dispatch to all the children classes. I first created the VI in the parent class called `Get Class Name.vi` which just gets the name of the class so I can see what class an object belongs to. After that, I tried going into the parent's properties, then under Item Settings, I clicked on `Get Class Name.vi` and checked the `Require descendant classes to override this dynamic dispatch VI` thinking it would put this VI into each child's VIs, but it did not. Is there a way to automatically populate this into all the children classes?

RTE LV17 64bit on Windows10 Home 64bit don't work:

$
0
0

I built an application and an installer in LV2017 (64bit) on a PC with Windows 7 Pro 64bit.
I installed the application on a Windows10 Home tablet (64bit).
When I try to launch the application I get an error window:


"MyHOMEalarm.exe- Entry Pointing Not Found
The procedure entry point BaseReleaseProcessExePath culd not be
Located in the dynamic link library C: \ ProgramFiles \ BETA \ Alarm \ data \ kernel32.dll. "


After clicking OK, the front panel with the broken arrow appears and a new window with the message:


"Missing external function kernel32.dll: GetSystemPowerStatusC in VI Alarma.vi"

 

What can I do?

how to make that can take multiple inputs and we can choose one output as string?

$
0
0

Hello Folks,

 

I am designing a driver for one of the instrument in which i am giving a command to instrument and then reading the data from it and storing it in a file. 

 

I am stuck at a point because i don't know how to make visa write who can take multiple inputs one by one.

 

This is the case in which i want to give one command and then read all data from instrument and then give another command to stop the data acquisition. I want to start and stop data acquisition from the instrument in single vi and i need to feed it as an option to choose from whenever it's needed at the base of visa write. I have attached a vi with this. 

Append number to worksheet name if current name exist

$
0
0

Hello,

 

I am attempting to index the worksheet name of an excel workbook.  If You run the code a second time, you get an error because the name already exists.  How to go about adding a new sheet each time with a number added to the original sheet name each time. So, for the second run, the name will be TESTNAME_1, the third run will have the name TESTNAME_2 and so on.

 

Thanks,


How to control a linear current at E3631A power supply by Labview

$
0
0

Hi everyone, I would like to control the current but during this time it varies over time linearly. I need to set an initial (different of zero) and a final current. How could I do this using the vi of the E3136A (file attached), please? 

Database Toolkit Unescape Characters

$
0
0

Hi guys,

 

I am working with the Database Toolkit with SQLite and MySQL (i'm migrating right now) and I am having a kind of annoying issue with the Execute Query VI.

 

In SQLite, if i give it a string to its API to write it to the DB, it will just write that string to the DB. In MySQL, using the Database Toolkit Execute Query VI, if i give it a string, it first looks for all escaped (\) characters and removes the \. When you query that column, its missing all the intended \ characters (since it was written without them) which its being handled by my calling code. I would like this to not happen and for it to just write the raw string to the DB. 

 

Has anybody ever encountered this? Is this a toolkit 'feature' or something on the server side? I'm not doing parameterized queries, only a simple format to string and execute query.

Database Connectivity Toolkit 2016 - Doesn't Display Tables

$
0
0

I have a SQL Server running on a local wireless network and am able to connect to the server and open my databse using the command line tool and also using mySQL Workbench. 

 

I can't open any of the tables in my database that I created in the Workbench editor, however if I use the Database Connectivity Toolkit (DCT) to create a table...I'm able to open that table with the DCT. The tables do not show up in the native SQL tools though? 

 

Using Windows 10 64 Bit

LabVIEW 2016 32 Bit

Pabst Blue Ribbon 12-oz Bottles

ODBC - 32 Bit Connection using UDL File

SQL Server 2014

 

UDL connection seems OK, however I'm unable to list contents of any tables. Any ideas?

 

 

 

Winston

 

How to programmatically scroll the vertical bar of a mixed signal graph

$
0
0

I am trying to programmatically scroll the vertical bar of a mixed signal graph. I imagine this should be straight forward (or so I thought) but for some reason when I write to the plot area bounds property to move the "top" and "bottom" the write does not take effect. I am using LV 2015 sp1 64-bit ....don't know if it has to do with what I am using, but would like to if this works OK for anyone else or if there is some other approach ? Thanks

Configuring TEDS Load Cell Application

$
0
0

Hi All,

 

I attached a labview program where I have two control loops that read and control force via a load cell and pneumatic cylinder.  In each control loop, the user can selected the channel that they have connected to the NI 9237 and the software will read the TEDS calibration information from the load cell.

 

The code currently works great as long as you have two load cells with TEDS connected to the selected channels.  But when selecting a channel that does not have a load cell connected to it, the software gives an error that no TEDS file is detected and will stop.  Is there a way to include for functionality where if a channel is selected without a load cell that it is simply ignored and the other channel can be read singularly without an error?  It seems a bit difficult since the daqmx only allows you configure multiple channels with the one task flow.  Any help would be appreciated.

 

Thank you,

 

Russell Simms

Viewing all 66855 articles
Browse latest View live


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