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

array of strings + array of numbers ?= cluster of numbers with names

$
0
0

I have an array of strings.  They need to be cluster element labels.

I have another array of numbers.  They need to be the values of the cluster elements.

 

How do I make this happen?  I don't know any way to write a string variable value to the name of a cluster element.

 

Updating with things I find as I keep looking:


Excel Active X properties and methods issue.

$
0
0

Hello all,

 

I have a project that creates an excel workbook, writes data to it, then creates charts from this data. The charts have custom textboxes that I add using properties and methods (Attached below). I am running into an issue where not all of the textboxes have been appearing (examples also attached). I just recently replaced the computer at my test station with a windows 10 machine. All excel settings are the same. Am wondering if anyone has run into this before or have any indications as to the issue. I have had trouble finding resources to the specificity of the issue. Thank you!

Has anyone use an anywhere USB over ethernet from DIGI qith USB DAQ

$
0
0

I need to connect 9 USB-6353, 3 CanBus, 3 GPIB to one PC. I am looking into the anywhere USB 14 from DIGI International and I would like to know if any one has try using this items and how succesfull it was.

Plot line graph from array data

$
0
0

Hello,
I have a problem with ploting a characteristic. In my case values on Y axis are from 0 to 100 and values on X axis change with interval of 1 from 1 to 10. For example: if X = 2 I can have multiple Y values.

 

Firstly I've tried to use XY Graph but when X data was set, then the plot looks as in first attachment (xygraph.jpg).

Next, I've tried to use Waveform Graph and here characteristic looks good, but unfortunately the X axis default is Time and I don't know how to change it to my X values (1, 2... 10) for specific Y values.  

 

Greetings

FGVs may help avoid race conditions, but do they force execution order between loops?

$
0
0

I am looking at some popular documentation on FGVs where they are showcased as useful for avoiding race conditions in a parallel multi-loop secnario, but my question is what about forcing execution order?  Yes the FGV being a non re-entrant vi ensures  both loops cannot run at the same time (only one instance at a time), but then what about sequencing / execution order?

Can it then be said that if a diferent order of execution from one loop to another will affect the end results , FGVs may not suitable?

Verbindungsverlust bei cRIO-9075 im Hybrid-Modus

$
0
0

Hallo zusammens,

Ich arbeite mich gerade in LabView FPGA ein und habe ein Problem mit einem cRIO 9075 im Hybrid-Modus.
Ich benutze SoftMotion-FunctionBlocks um einen Motor über einen NI9514 anzutreiben. Bei erreichen einer bestimmten Position zeichne ich die Werte an Analog-Eingängen von einem NI9239 auf, zusätlich ein Positionssignal von einem Glasmaßstab, der über die Digitaleingänge eines NI9411 und den Softmotion Incremental Encoder Decoder abgefragt wird. Die Daten werden wie im 9239-Beispiel in einen DMA-Fifo geschaufelt.

Auf dem cRIO fahre ich nun über einen Straight-Line-Move-FunctionBlock auf Position A, dann auf Position B und zurürck auf Position A.
Auf der Strecke A-B möchte ich die Werte aus dem DMA in eine TDMS-Datei schreiben. Das löse ich zur Zeit über eine Stacked Sequence:
Erster Frame hat einen Move-Baustein, zweiter Frame hat den zweiten Move-Baustein und die Funktion zum auslesen des FIFO (über zwei verschachtelte Read-Bausteine, die verbleibenden Elemente des ersten an die Number of Elements des zweiten, das Array wird dezimiert und über Schieberegister ein neues für jeden Kanal aufgebaut. Wenn die Position erreicht ist beednet die Schleife, ein Array wird gebaut und in eine TDMS-Datei geschrieben. Danach folgt ein Frame mit der Fahrt zurück zur Ursprungsposition.
Zu Beginn wird die ScanEngine reinitialisiert (wie im entsprechenden Beispiel), die FPGA-Referenz geöffnet und der FPGA-Run-Befehl gesendet.
Der Reglerfreigabe wird auch gesetzt usw. und die FPGA-Referenz am Ende wieder geschlossen.

Das funktioniert auch wie gewünscht, aber nur ein Mal; beim zweiten Mal verliere ich die Verbindung zum Target, irgendwann währen oder direkt nach der Init-Sequenz. Dann muss ich den cRIO über MAX neu starten, die FPGA-Vi von Hand starten, die Achse neu deployen und es funktioniert wieder. Ein Mal.
Die CPU- und Speicherauslatung beobachte ich über den Distributed System Manager, beides bleibt im Bereich um 50%, daran scheint es also nicht zu liegen.
Muss ich sonst noch irgendwas beachten?
Ich bin leider gerade unterwegs und habe den USB-Stick mit dem Projekt nicht dabei, verzweifle aber gerae ein wenig an dem Problem. Daher hoffe ich, dass euch die Beschreibung schon mal weiterhilft. Vielleicht kann mich ja jemand in die richtige Richtung schubsen Smiley Happy

Vielen Dank schon mal im Vorraus,
Antje

How to make that multiple boolean switches can impact on the run of a loop, via Arduino UNO?

$
0
0

Hello! I'm a newbie in the LabView environment and I'm not familiarized to the functions the program offers. I'm making a simple Simon Says game using Arduino Uno through LINX. I've got stucked in the phase where it's the user's turn to repeat the shown sequence. Basically, the push buttons interact via "true" or "false" and I need the 4 "for" loops in order the 4 buttons to be detected in a certain lapse of time (I'm using a 100 ms duration of the loops so that the corresponding leds are lighted on briefly when pressed the push buttons), but I'm not sure if I'm handling properly the boolean results out of those "for" loops. Plus, I don't know how to stop the loop and exit it through multiple boolean conditions, if I connect them directly it would say that the "wired tunnel is undirected". 

I've also tried to handle the boolean responses with an "event" loop, but it seems that the event are only triggered if they're made through the "Front Panel" and they're not detected if using the Arduino Uno.

I'm attaching my VI, thanks in advance!

Shared Variable Deployment Failure

$
0
0

I am trying to run a shared variable over two PC's.  

I have two VIs (read.vi & write .vi)

On one PC, everything seems to work fine.  However on the second when I run the read vi the following error appears:

Initializing...
Calculating dependencies...
Checking items for conflicts. This operation could take a while...
Preparing items for download. This operation could take a while...
Deploying My Computer
Deploying XXX Shared Variable.lvlib\\192.168.120.1\XXX Shared Variable deployment failed (error: -1967362042, OS and Network Services: (Hex 0x8ABC7006) Unable to start service.).
Deployment completed with errors

 

I have disabled the firewall.  Repaired the LabVIEW installation and I have a professional license.  Does anyone know why the network service is not starting and is there a way to start it manually?


Loading VI's

$
0
0

I have recently installed the following Labview products on my home PC:

2016 64 bit [2016LV-64WinEng]

2016CDSim-32Win

NI4882_1600f0

 

When I try to open a labview file that I have created on the system installed on the university computers [and can open without issue], when loading the VI's, I am prompted that the system cannot locate a particular vi file.  In most cases I have found the files by searching manually.  I am then promted for the next vi file and so on and so on.

 

Help

Create the 3d printer

$
0
0

Dear Labview community

I'm a Student . Right now , I got the machine with 3 axis and control by NI motion card (PCI 7350) and Prof told me to control it to draw something like 3d printer (using nozzle to extrude the material by Z axis)  . And  I already got the program and I wrote the question into the Labview . I hope Someone can share and help me to handle that 

I really appreciate that . Once against , Thank you so much

How does the 3D Graph Object put an Indicator on the front panel?

$
0
0

When using the a 3D graph the output object is also the graph indicator in the front panel. How does this work? I would like to implements similar functionality with custom picture controls used to "Graph" data in much the same way.

Application Builder error code -12

$
0
0

Hello,

I'm trying to build an installer. I received the following message:

 

Click the link below to visit the Application Builder support page. Use the following information as a reference:


CDK_Item_OnDoProperties.vi.ProxyCaller >> CDK_Item_OnDoProperties.vi >> AB_UI_FRAMEWORK.vi >> AB_UI_Frmwk_Installer.lvclass:Build.vi >> Installer.lvclass:Build_from_Wizard.vi >> IB_MSI.lvclass:Build.vi >> IB_MSI.lvclass:Engine_Build.vi >> NI_MDF.lvlib:MDFBuildDist_Build.vi


The following errors and warnings were recorded during the build:

Error:
An internal Windows function returned an error.
Code:
-12

 

 

Any idea?

 

thanks

Waveform Graph Time Issues

$
0
0

Fairly inexprienced with LabVIEW I have just used it for various labs and simple tasks. I am attempting to make a waveform graph to plot temperature vs time from a thermistor, but everytime I begin to run the program the temperatures will read and be written to the graph, but the time remains constant. For example if the temperature goes from 25C to 30C the entire graph moves up as a straight line rather than marking a fluxuation at a specific time. I have attached the program, any help would be greatly appreicated.

USB device interfacing with LabVIEW

$
0
0

Hello, I am doing interfacing of FTDI's FIFO to USB converter's(FT600) interfacing with LabVIEW. I have made block diagram attached for this purpose and I am able to get it's name in LabVIEW but I am unable to read data from it. Can anybody help me in ?

Problem with the configuration of the sampling rate via RT

$
0
0

Hi!

It`s my first post, so I'm sorryifI wrote inthe wrong section.

I`ve problem with proper configuration of sampling: I`ve done project with FPGA and RT vi, where dataare transportedbyfifo and I can`t obtain a frequency greater than 2 Hz.

What I do wrong?


Instrument drivers VS library provided by third party manufacturer

$
0
0

Hello Everyone,

I want to use Ametek 7265 lock-in amp to perform some measurements. On the Ametek's webpage I found the "drivers" for LabVIEW:

 

http://www.ameteksi.com/products/software/labview-download-software/national-instruments-labview-drivers-software

 

However, these are not *.lvlib or *.lvproj files, but a single *.llb file. Obviously, when I copy it into instr.lib folder and run LabVIEW, no driver for this instrument is recognized (the device is not present in Installed Instrument Drivers.

I'm wondering how can I use this instrument? Should I create a driver by myself, using the VIs from the library? Or is there some other solution?

LabView quits unexpectedly with DAbort 0x9B027400: Couldn't create 24 pen Error ==0

$
0
0

Hi Everybody,

I am experiencing random Labview crashes at irregular intervals between days and months. Labview just exits without any error dialog, the error is only written to LV log file (attached). There are 3 LV applications running simultainously and there is very little or no editing taking place in the meantime.The applications are a UDP server for remote controlof some devices over UDP and serial, a GUI for operating these manually (not beeing actively used when the error occurs) and a monitoring agent, checking status of a few devices over UDP and Modbus at an interval of several seconds.

 

This error was already reported a few years ago (here is an example) but in my case none of the solutions seem to work. Also, there were apparently no newer threads or posts regarding this issue so I wonder if anybödy still experience similiar problems with the newer LV versions.

In my case this is LV 13.0.1f2 64-bit.

Thanks in advance for any help!

 

WMI implementation, with big memory leakage. Help?!

$
0
0

Hello everyone,

I am trying to detect all the COMmunication ports (COM1,2,3...) by using WMI Classes directly from labview.

This VI is called repeadly from the main application, and checking task manager I detected a big memory leakage, let's say about 1Mb as avarage at every call.

The memory is freed when I close the application, but this is a problem, because the subvi have to be called frequently (let's say 2 times at second) to detect new USB/RS232 interface attached on the fly.

I'm not expert in .NET, and I used an idea of Lycangeek 

http://forums.ni.com/t5/LabVIEW/How-to-access-WMI-Classes-via-NET-in-LabVIEW/td-p/253845?lang=en

but even tying to close references and dispose object, there is still an error.

Does someone can help me, please?

Marco.

Solving a specific system of equations in Labview

$
0
0

Hello!

 

I'm looking for some help in solving a system of equations in Labview. The task is to find the middle matrix in the equation attached if the 8 points in the picture are known. As far as I know, Labview can't connect 8 separate equations to solve, it only does that in matrix form, which I can't figure out how to construct. Can anyone help me with either constructing the matrix which would solve this for p(1-8) or show me in Labview how to solve this without making a new one? (The 2 equations on the left show how to find any exact point when knowing everything, so the VI itself could be used for any single point not just the predetermined ones)

 

Thank you in advance

Hololens and Augmented Reality

Viewing all 69369 articles
Browse latest View live


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