Quantcast
Channel: All LabVIEW posts
Viewing all 202665 articles
Browse latest View live

Re: Remove Elements of Array

$
0
0

Hi Lorquino,

 

again a suggestion:

check.png

Comments:

- Instead of creating a string containing a timestamp to search a string array for the same string you really should convert your string input array to an array of DBL values containing the number seconds for your desired "step" - as I do in the snippet.

- You should rethink your data handling/storage: instead of two arrays, one for timestamps, one for other data/parameter, I would use one array of cluster, with each cluster containing all needed information for each "step" (like timestamp and all those other parameters)

- in the snippet the "segundos transcurridos" is rounded to integer to be able to find the corresponding value in the input array

- in your input array there are a lot of empty and wrong elements (containing "u"), which will disturb any algorithm you want to apply!

- it also was a bad idea to use a different formatting for the first two entries (you used "00:01" instead of "00:00:01"…)

 

When you really want to remove entries/rows from your arrays: use shift registers to store the changed array(s) for next iterations!


Re: Executable won't run

Re: Write 2D array row-by-row in Level 5 MAT-File Format

Fill ringmodule with Array

$
0
0

Hello I would like to fill a Ring Module individually. In addition I would like to upload an array by means of a text file. In my sure that with a property node goes but does not welhen I must use?


Re: LabVIEW 2018 Crash

$
0
0

While it appears that you've resolved the problem (probably a corrupt VI, since putting it in a new VI fixed it), I do see on your initial post that it says you're using 18.0f2. 

 

Just in general it might be a good idea to update to 18.0.1f3, which is SP1 combined with the f3 patch.  If you look in the patch notes, there's at least 9 crash fixes listed in them.

RE: connecting Labview with X310

$
0
0

Hi all,

I have USRP X310 connected with LabVIEW 2018 using 10G Ethernet cable. I have some queries:

1. The IP address of the USRP is automatically detected by NI-USRP Configuration Utility as 192.168.40.2 with changing the IP address of the host PC as 192.168.40.1. However when I ping, the command prompt window shows host unreachable as seen in Pic 1.

2. The IP address of the USRP is automatically detected by NI-USRP Configuration Utility as 192.168.40.2 without changing the IP address of the host PC. However when I ping, the command prompt window shows Requested time out as seen in Pic 2.

Why did these happen?

Pic 1 and 2 is attached.

Re: Write 2D array row-by-row in Level 5 MAT-File Format

$
0
0

Mathworks do state the plug-in can be used for:

creating data sets within LabVIEW that can then be utilized within MATLAB® software

 

So Mathworks provide the VIs that write the Matlab file format.  I suppose it does make sense, because then Matworks become responsible for providing new VIs if the format changes in the future.

Had anyone used the plug-in, and does it allow you to write a 2D array, line-at-a-time?

Modbus Data Storage

$
0
0

Hi there. So it's my first time working on LabVIEW and I have created a program that reads the output of a PV panel though a Modbus based device. The Read function returns a 1D array of unsigned word (16bit integer), that looks like this: [Voltage, Current, Power (low), Power (high), Energy (low), Energy (high), High voltage alarm, Low voltage alarm]. 

 

I would like to manipulate this data so that every measured time is stored in a new line in a table and then to create a graph with just the energy values. Then probably send this information or even treat it from the beginning in Excel, but i don't know if the second option is possible. 

 

I'm mainly having problems with the format of the output, as most of the options I've tried to, for example, create tables, are using single "string" and I haven't found how to convert it. I also don't know how to select just 1 value from the array to create my graph. 

 

This is what I have right now:

Capture.PNG

 

I appreciate any help.

 


Re: Timed execution queue implementation

$
0
0

I feel that you need to provide more detail.  For instance, commands C and D both list a runtime, and I think it needs explaining.

 

Are these commands something that can run for any amount of time as an input variable?  For instance, turning on a power supply for exactly 500 ms, or something like that?

 

Or are they loops where you can check once per loop to see if they've gone over their time limit?

 

Or are these commands a series of steps that you want to interrupt if they take longer than 500 ms to run?

 

On a basic level, this seems like something that would work well with a queued state machine.  Put all of your steps in a queue, with the data you put in the queue containing the command name as well as any parameters, and then feed it into a case structure with one case per command name, then put that in a While loop.  Either the last command or a special "quit" command would exit the loop.

 

It's when you get to command C that the question I asked starts to become important.  In some cases you could just run a timer for 500 ms in parallel with the loop to make sure it takes at least that long, but in other cases you need other ways of making the case continue.

Re: Modbus Data Storage

$
0
0

Hi vresa,

 

I would like to manipulate this data so that every measured time is stored in a new line in a table and then to create a graph with just the energy values. Then probably send this information or even treat it from the beginning in Excel, but i don't know if the second option is possible.

  • A table is a 2D array of strings (in LabVIEW), so you would need to convert your readings into strings. Or use a MultiColumnListBox (MCLB, also 2D string data), or just a 2D array of DBL values…
  • To save those data I recommend to use WriteDelimitedFile, the resulting text file is easily readable by Excel.
  • If you really want to create Excel files you should either use the WriteMeasurementFile ExpressVI or functions from RGT (ReportGenerationToolkit).

Re: Fill ringmodule with Array

$
0
0

Hi fsteini,

 

ike to fill a Ring Module

What is a "ring module"?

 

would like to upload an array by means of a text file.

"Upload an array" to a server(different computer)?

"By means of a text file"???

 

In my sure that with a property node goes but does not welhen I must use?

Can you repeat that sentence with proper English?

 

(Ich glaube, du sprichst deutsch: Häng doch einfach mal ein Beispiel-VI an. Und GoogleTranslate kann mittlerweile wirklich gut nach Englisch übersetzen!)

Re: Can't open LabVIEW project 2018

$
0
0

LabVIEW can only "open" LabVIEW code and related files (VI, llb, lvproj, ctl, etc.).

 

If you are in LabVIEW and use the file menu entries "open ..." or "open project ...", etc, and you browse to some random non-LabVIEW file, the outcome will not be predictable. Even worse, if the file has one of the recognized extensions, but is something else.

 

So tell us exactly (step-by-step!) what you are doing, what happens, and what you expect to happen instead. Also define what you mean by "sample file".

Re: Zebra printer - Printing from LabVIEW using ZPL commands....

$
0
0

Hi, Mark, 

 

I know this is an old post about the USB driver for Zebra printer, way back in 2014. 

 

Before Windows7, I can still create the USB driver from NI VISA and make it work easily.

 

But now for Windows 10, the driver cannot be installed any more because of lack of 'Digital Signature'. NI posted a solution for this, but it requires using 'Inf2cat.exe', 'signingTool.exe', etc.

Here is the link https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019L9QSAU&l=en-US 

 

So I am thinking, before I jump to that mess, I want to ask you about the current status of the USB driver for a Zebra printer (Gx420T in our case)? Is there one available for download? Thanks much. 

Re: Playing back a waveform

$
0
0

Okay I am back on the project for the time being.

 

Currently I have:

  1. Modified the "save to file" portion to not close the file until all queued elements have been written to the file
    1. This solved the first issue of the files not having as many records as the should have.
  2. Playback is still too fast
    1. 2:30 seconds of recording plays back in just under 2:00 minutes
    2. I tried slowing the playback down by using "Waveform Duration" and waiting that amount of time before moving onto the next record
    3. Looking for suggestions on how to playback a waveform at the same speed it was recorded

playback1.png

Re: Slow performance of "Polar to Complex"

$
0
0

On my system running your code, both sine/cosine and polar/complex came out around low 50msec.  The exp version was around 110 msec.

 

My results don't seem to confirm yours.


Re: Executable won't run

$
0
0

You are right. The “Current Path” is based on the location of the development VI, not the executable program.

 

I changed it to a fixed path and it works. Thanks for the help.

Re: Error 193 while opening LabView exe

$
0
0

GerdW, 

 

Thanks. Problem solved! Saw an online video on youtube to create an installer. 

 

- Neeraj 

 

 

Re: Error 5001 occurred at ANT+

$
0
0

Hi Rubiside,

 

Are you using the supplied examples or did you create your own program?

 

Did you follow the guide in how to install the ANTUSB dongle?

 

Let me know if you have any more issues, I assume it is our toolkit that you are using...

 

Cheers,

Darren.

Re: Passing an array in output using Ulx

$
0
0

I solved this problem in a different way today, by putting the Ulx function "Start" into a while loop. I don't know if there is a more efficient way, but with a 1 kHz external clock the output signal is correct: each step of the ramp has 1ms lenght as expected. I post the code here in case anyone encounters the same problem, but for sure it is possible to do a better VI for this task. Thanks for the help!

Re: Executable won't run

$
0
0

 wrote:

I changed it to a fixed path and it works. Thanks for the help.


I would strongly recommend to use the suggestions in my link above. A "fixed path" is fragile, because the VI will break as soon as the exe is moved elsewhere or even if somebody installs on a different drive letter.

Viewing all 202665 articles
Browse latest View live


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