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

Parse XML string NXG4

$
0
0

Dear Community members

 

I am in the process to use NXG more and more (NXG 4) 

Now I had to convert some code where I used the parse XML features from LabVIEW 20xx.

 

I there any equivalent to parse XML in NXG 4. The code conversion tool was not able to do anything with this sub vi's.

 

Thank you for any input


veristand

Can someone please convert this file from LV 2019 to LV2018

$
0
0
There is a Version Conversion board for these requests. Moved there.

.NET NXG4 Generic

$
0
0

Dear community

 

As I have read NXG4  is capable of working with .NET I started to migrate my xDocument implementation for fast XML handling in NXG4.

Now it stopped at the following step.

I want to call the .NET method Elements(XName name) which should return the Elements as "system.collection.generic.ienumerable"

The method Elements(XName name) is not existing in the available methods.

 

Is this due to the missing implementation of generics ?? or is there a workaround to solve this problem ?

 

Thank you for your clarification

 

Wie kann ich mehrere physikalische Kanäle in ein Array schreiben, aus einer For-Schleife herausbekommen und danach noch verarbeiten können?

$
0
0

Hallo liebe Community,

ich habe folgendes Problem und große Hoffungen, dass ihr mir hier weiterhelfen könnt. Im Rahmen meiner Semesterarbeit darf ich mit Labview arbeiten, kann mich aufgrund eines engen Zeitplans nicht wirklich umfassend einarbeiten.

 

Der Screenshot zeigt das Labview-Backpanel, das mir von meinem Vorgänger übergeben wurde. Es werden die 25 Spannungen der Module in ein Array geschrieben, anschließend aus der For-Schleife übergeben und anschließend ein Tast erstellt. Mein Vorgänger hatte alle DAQ-Bausteine in der For-Schleife, hier funktionierte die Messung der Temperaturen noch. Allerdings wurde die Rechendauer des Programms durch die vielen erzeugten Tasks sehr hoch, sodass die Abtastrate von einem Messwert pro Sekunden nicht mehr erreicht werden konnte.

 

Anschließend habe ich die DAQ-Bausteine rausgenommen, um nur einen Task zu erstellen (stimmt das so?). Das habe ich so ähnlich in einem anderen Beitrag gelesen. Dadurch wurde die Rechendauer verkürzt und die Abtastrate stimmt nun.  Allerdings wird jetzt die ausgebene Temperatur um ca. - 25°C verschoben angezeigt. Ich weiß nicht an was das liegt.

 

Mit eurer Hilfe würdet ihr mir die Vorweihnachtszeit deutlich versüßen!

Vielen Dank im Voraus,

LG Michi Hilfe_Labview.PNG

Labview continuously writing data to excel file and emailing periodically

$
0
0

Hi

   I am trying to write the measured value continuously to excel file using Write to measurement file (save to one file) and emailing it periodically.For first time execution (1st period) ,the excel file is mailed successfully.For second time its shows error as 

LabVIEW: (Hex 0x5) File already open.

C:\Users\viki\Documents\LabVIEW Data\test.xlsx

The written file is open in mail attachment.How to over come this. I am attaching vi.

                                                      Thanks in advance

With regards 

Vignesh M

"initiierte Array" schreibt nur die letzte Zeile

$
0
0

Guten Tag,

 

ich habe 25 Signale, die in ein Array geschrieben werden sollen. Allerdings wird nur der letzte Werte in das Array geschrieben. Der Screenshot soll das Problem verbildlichen.

 

Hilfe_Labview_2.PNG

 

Durch die Sonden konnte ich das Problem identifizieren, weiß nun aber nicht mehr weiter, denn die For-Schleife sollte doch genau diese 25 Signale in den Array schreiben lassen?

 

Bitte helft mir, vielen Dank im Voraus 🙂

LG Michi

Find a character in a string

$
0
0

Hello,

In the program I have done, in the "Sincronismo" case I want to see if the "Modelo de bloque" has the character "B" and show this with a boolean. In my case the "Modelo de bloque" is an indicator, maybe because of that I can´t use in the "Match Pattern Function". So how can I do it for my program? 


LabVIEW NXG NI-Skyline consumes CPU to 100%

$
0
0

I recently installed LabVIEW NXG 4.0.  From the time I started NXG PC gone very slow. Found that Skyline service running in multiple instances and the Skyline is part of NI LabVIEW for some database access.  Anybody knows the root cause of this?

 

Ajayvignesh_MV_0-1575297687411.png

Loading .net assemblies from network drive

$
0
0

Hi,

according to this KB article : Error Loading .NET Assemblies in LabVIEW,

this MS Doc: <loadFromRemoteSources> Element | Microsoft Docs

I'm assuming that labview (LV 2016) should fail when loading an assembly from a network drive. To test the behaviour I use this code. The Load Assembly.vi is from  "<LabVIEW Dir>\vi.lib\Platform\dotnet.llb". 

Load Assembly.png

But the VI executes properly. Inserting a Constructor Node to the block diagram and pointing it to an assembly stored on a network drive gives no error neither. 

 

The LabVIEW.exe.config, neither the <Windows>\Microsoft.NET\Framework\v4.0.30319\Config\machine.config set  the <loadFromRemoteSources> to true. So the default behaviour of .net should apply which is to block the load attempt. Why is it not happening?

 

What brought me to this is actually that the loading *is* blocked when (with the same configuration) I run a TestStand sequence which contains a VI that load the assembly. To make the issue more obscure the error occurs only on some machines, while i can't see how they are different. I run the sequence by a LV built operator interface. TestStand then reports the following error when running the sequence:

ravyh_0-1575297337778.png

This can be solved by setting the <loadFromRemoteSources> to enabled="true" in the machine.config. But I'd prefer to set this in the app.config so that it could be distributed together with the application. I'm placing the "operator_interface".exe.config file in the same directory as the .exe itself, containing the following:

 

<?xml version ="1.0"?>
<configuration>
  <runtime>
    <loadFromRemoteSources enabled="true" />
  </runtime>
</configuration>

 

.. but it doesn't help, the error stays. So my questions are:

  1. Why the app.config has no effect while the machine.config does?
  2. What is exactly the mechanism behind allowing/blocking loading of assemblies? 
    (how does the AppDomain come into play in labview, by the way?)

 

Thanks for any advice / information.

 

___

Similar topic: Loading .NET 4.0 assembly 

 

Licensing

$
0
0

If I purchase a license for 64-bit LabView, can I use 32-bit? Also, if I purchase a LabView 2019 license, can I use LabView2016? (I am currently supporting a LabView 2016 program on a 32-bit operating system, but if I by a license, I'd like to get the latest and greatest.)

Labview NXG Web : Vireo doesn't seems to load in Light Browser Anymore

$
0
0

Hello all,

 

So I'm using Labview NXG to develop a Web-Based Application. 

Since it devellopement is very fast, I keep testing newer version but I don't migrate much (since it would take al lot of my time).

Latests version introduced a lot of new things, so I finally decided to move from NXG 2.x beta to NXG4 stable.

Until now vireo (the web Runtime of Labview NXG) worked great on all device and browser, but since the last NXG version, it won't load in "light browser" on android, browser designed to be always open, on full screen, for kiosk, domotic hub, presentation panel and such. It works fine on Chrome/Chromium/FireFox, but won't load in FullScreenBrowser/FullyKioskBrowser and suchs. Thoses browser integrate (theorically) all the javascript and html behavior of full browser, so I'm a little lost here. Is there any reason this does not work anymore ? Is it a bug or a known issue ? I think it may have something to do with Android System Webview but I'm not a web expert...

It is not really new, I observe the same behavior when compiling with NXG 3.1.0

 

Thanks in advance if you have any idea !

Serial communication with thermometer

$
0
0

Hi, I am trying to communicate via serial with a thermometer. After building my VI (attached) I always have this error which I do not know where it comes from:

Captura1.JPG

It shows up here:

Captura.JPG

It is strange that it only happens with the Read, while Write is ok. I will be very grateful if anyone can help. After spending a lot of time on it I am blocked.

Thanks.

Cld-r paper q6 events

Bug with Labview 2016 32 bit and Windows 10

$
0
0

Labview 2016 and Windows 10 seems to have a problem.  Anyone else experience this?  Any fix for it?

We're running LabVIEW 2016 32 bit with Windows 10, development package, not stand-alone executables.  After a time, about 1 day, the vi front panel window (and the vi is not in "run" mode) will become non-responsive.  I cannot edit anything on the screen, nor can I move the window around the desktop.  VERY annoying.  The only way to get control of the vi again is to close Labview and reopen it.

Is there a fix?  

Thanks!

 


Calculate sinusoidal Position from acceleration data

$
0
0

Hello,

 

Hopefully this is an easy answer.  I have a sinusoidal waveform and I want to take the double integral of it.  i.e. I have acceleration and I want position.  When I do it in LabVIEW I get weird results.  Why isn't my position sinusoidal?  What am I doing wrong?

 

Thanks

 

Test Integrate.png

 

BUG: Unable to debug LabVIEW 2017 SP1 built .EXE using LabVIEW 2017 SP1 IDE

$
0
0

Just a heads up for those of us still developing in 2017 SP1:

 

I hit a gross little bug earlier today where an EXE built with LabVIEW 2017 SP1 f4 couldn't be debugged using LabVIEW 2017 SP1 f4. I went through all the normal steps (including disabling the firewall), but it just wouldn't appear as an option to connect to. I called support and they said it was a known issue tracked by CAR 730031. The CAR is fixed for 2018+, but they indicated it wouldn't be fixed in 2017 SP1, and the only workaround was to upgrade or downgrade.

 

After a bit more digging, I discovered what I believe is the root problem; the default option on the build spec is to allow it to run in a later run-time, and since I have 2019 SP1 installed, it was, in fact, running in the 2019 SP1 RTE. Unchecking the box that box at the bottom of the "advanced" section of the build spec allows me to debug it from 2017 SP1 as one would expect.

 

ChrisStrykesAgain_0-1575318992544.png

 

FWIW, I discovered this by checking http://localhost:3580/dumpinfo? and confirmed it by attempting to connect from LabVIEW 2019 (where it was enumerated and allowed me to connect). Connecting from 2019, however, doesn't end well; the IDE crashes pretty quickly (though the EXE appears to live on?).

VISA TCP versus "Raw" TCP?

$
0
0

I have to write an application that controls non-NI motion controllers & remote I/O units.  Does anybody have opinions about VISA TCP tools versus the Data Communications/Protocols TCP tools?  It's a high reliability application where I'll need robust operation, reconnects, maybe keep-alive, etc.  Thanks, paul

How to reset imported data so I can keep on running the labview without having to manually delete data

$
0
0

I'm working on a labview that will able to take a text file and read and sort it into the certain boxes on the front panel. I wanted to know if there was a way to maybe wire a button to clear all the imported data so i can run it again without having to take the time to delete the content in each box. Or maybe there is another way to do this. I attached the VI file below and the text file that has to be placed in the text box in the front panel before it is run. I also wired it so you press the run button and nothing is imported until the NOVA RUN button is pressed.  

Fancy Front Panel objects

$
0
0

I wonder if anybody can help me understand what's going on in this front panel.  I inherited this code and there are things on the panel I don't understand  Some controls are grouped in some sort of "containers".  One of these (the big one on the left) will 'hide' controls placed 'under it' (so is there some sort of order, front to back?).  None of the "Containers", "panes" or whatever they are have any properties that I can see.  I've read about splitter bars and panes, but I don't know if that's what these objects are.  If I could get some pointers about what they are, I might just learn something! Thanks for any ideas, paul

Viewing all 69197 articles
Browse latest View live


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