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

Re: Connect Muse 2 Headband on LabView

$
0
0

Hi, 

I read on the NI site that if I installed the dongle driver it did not work because I had to use the bluetooth stack of windows. But I will try your method again.


Re: How to synchronize analog waveform with digital signal

$
0
0

Depending on your specific case, you probably want either

  • a shared sample clock, or
  • a shared start trigger (or one triggered by the other's start)

Do you just want them to start at the same time, or is there some other requirement.

 

These can both be carried out with the use of the DAQmx nodes if you're using DAQmx.

Take a look at the Timing (sample clock input) and Triggering VIs.

Re: How to synchronize analog waveform with digital signal

Re: linear fit

$
0
0

 wrote:

Yes, yes I need before all the values of the slope and then only the max and the minimum values of the slope


 

"array min&max" will do that for you. Have you tried?

 

(Of course a good programmer will not need to keep all values first just to only keep the min&max at the end. One would do a running min/max. The memory requirements will be N times lower.)

 

 

Re: How to synchronize analog waveform with digital signal

$
0
0

Ok, so you should set the digital task as the (start) trigger for the analog task.

 

You might need to use the matching "PFI<n>" name rather than the physical channel, which is something like /port0/line1 etc.

You can see which is the PFI value on the module, or I think via MAX.

 

Don't use a shared sample clock if the outputs are of different durations 🙂

Mysterious newline being inserted into my file output buffer.

$
0
0
Duplicate post. Don't ask the same question in a new thread.

Mysterious newline being inserted into my file output buffer.

$
0
0

Sorry I have to remake this one because I thought I had it solved but I really did not. Some how there is a newline character being introduced into my Write Deliminated Spreadsheet file stream. Not really sure how. I have an indicator that shows me exactly what will be written before it gets written and no \n's or \r's that I can see. Was hoping if someone could look over the main loop and the file writing part to see if anyone can quickly figure it out.

91c6ae7235fc938a81db5070e47b993e.png

Re: How to synchronize analog waveform with digital signal


Re: how to split a array into two random arrays of equal elements

$
0
0

 wrote:

 

Also, is it the counter method that you are referring to similar to the code I made at first? Because yes, it works, but it doesn't look like a simple way to do it. (i will reattach the first code I made).

 


I had a hard time figuring out what your original code was doing because it was too busy.  I doubt you did what I was talking about in that code because if you had, you could have done it in a fraction of the code as you attached.

 

It would have been 1 loop and a few shift registers.

Re: Mysterious newline being inserted into my file output buffer.

$
0
0

I can't test it out and your code layout is hard to follow (wires going everywhere), but perhaps your Search and Replace is not doing what you wanted?  It will only replace the first "End of Line" constant because you have not wired a True to the "Replace All?" input.  It is also possible that you are not searching for the correct "end of line" type since on Windows it will search for a "\r\n" combination only.  I can only guess because you have not supplied any indication of the data going through.

Re: Sound acquiring using myRIO's Audio in port

$
0
0

Does it work better if you replace the brown Waveform tunnels with Shift Registers?

Re: Export and preserve Unicode characters into Excel and eventually pdf

$
0
0

You will need to supply more code (VI's rather than png's) to get more help, but can you try using ANSI with particular fonts "such as "Symbol"? Charmap will help here.

If you don't need it to be displayed in LabVIEW, then you could use the UNICODE function of Excel to put the characters in.

Re: Mysterious newline being inserted into my file output buffer.

$
0
0

"\r\u003e meas x\r\n\rx = 78.8 uT\n\r\n\r\u003e "

this is what one line of the data coming out is. Really crazy I know. I apologize for the mess I'm kinda trying everything to get this part to work, probably the hardest thing so far. Weird, I had that set to true before I must have deleted it just to try and see what it would do. The reason the loop has to go through 11 iterations is, you send it a command "meas x" and it spits it back out at you one char at a time like so.

">"

"m"

"me"

"mea"

"meas"

"meas x"

"meas x = 42.7 uT"

with unicode 003e at the start and end. I will try your suggestion though I did have that set to true before not sure what happened. My hypothesis was that it was that the Write Deliminated Spreadsheet was introducing a newline after an iteration of the loop because in my other program where I'm writing two columns simultaneously it doesn't do that and it's basically the exact same code exact for that part.

 

Re: Mysterious newline being inserted into my file output buffer.

$
0
0

Ok, so a couple of simple comments then I'll look at the end of line bits:

(numbered for reference in replies etc, not importance)

  1. You open the file and then pass in a file reference, but use "Refnum to Path" to get the path to write the file.  In the case that you don't find the pattern, you output a default file reference, which will leak your real reference.
    1. Directly write using the reference, not the path. This essentially means replace the "Write Delimited Spreadsheet" with "Write to Text File" and perhaps the Array to Spreadsheet function.
    2. Wire the reference through the case when you don't find matches (so the output is the same as in the input reference)
    3. Since you have only one line at a time you might not even need/want the Array to Spreadsheet String function - you can just directly Write to Text File (optionally appending a line end character if you don't have one.
  2. Once you've done the above, you may or may not still have a line-end problem, but it should be easier to see directly what you're writing. If it has too many line-end characters, you can use the Trim Whitespace VI that you're already using to remove them. You don't need a Search and Replace node.
  3. Set the termination character to a character you get at the end that you don't want to store (e.g. \x3e as a number, if that's always at the end) and handle the starting separately as needed (so perhaps drop the first message, which will be "\r\u00" and keep only the second message of each pair, " meas x\r\n\rx = 78.8 uT\n\r\n\r\u00" in your example case. Some testing will be needed to get this right probably, but it should be possible. If you always have a character at the end, use it as the termination character and your message handling will be much easier.
  4. I'm pretty sure you're right regarding WDS - I think it assumes that your array is one line, and so adds a newline afterwards. The following is copied from a comment inside WDS.

Array to Spreadsheet separates rows with EOL characters. If your spreadsheet application needs different terminators, use the Search and Replace from the String palette (or something equivalent) at the output of Array to Spreadsheet String to modify the string.

 

Since you're going to drop the WDS node (in favour of Write to Text File) and you may or may not need the Array to Spreadsheet String, this should be easier to appropriately handle.

Re: changing the speed of Ethernet Link of the PC to 10 or 100 MBPS

$
0
0

How can i chane the speed of my NIC  problematically from labview 


Re: linear fit

$
0
0

Could you help me with this part? 

Then I would like to write these values (max and min) in an external file. 

I2C error-363011

$
0
0

Hello

 

I`m writing my code with FDC 2214 EVM chip via I2C communication

 

I try to run my code, however, whenever I run my program, error-363011 is occurring

 

The position of error occurring is like below: 

 

Inside of FDC 2214 sub vi from TotalProcess vi,

sub1.JPG

 

I2C write sub vi from FDC 2214 Config vi

Config.png

 

and myRio Write I2C sub vi from I2C write vi

sub2.JPG

 

I`m using FDC 2214 EVM chip, which is standard product from Texas Instruments, so this may not be caused by external problem

(Of course this chip has pull-up resistance)

 

I attached zip file that contains my projects and vi files

 

Can anybody explain about this problem, please?

Re: Mysterious newline being inserted into my file output buffer.

$
0
0

Wow you are a genius, array to spreadsheet was inserting a newline and I didn't know it. Don't think I would have gotten that any time soon. I followed everything you said and it works great now I'm really excited. Thanks for taking the time to look through that  mess I have cleaned it up and here it is.

Re: How to add the libXML library to labVEW environment

$
0
0

Yes, Correct LibXML only.

https://forums.ni.com/t5/Example-Programs/Libxml2-Parsing-XML-in-LabVIEW-is-too-slow-or-is-it/ta-p/3492686

From the above link, I had to download the Libxml setup and some of the examples.

1. I have installed the "libxml2-1.0.0.2.vip" in my system. 

2.LibXMLUpdate(2.1) in this folder I tried to run the Main.VI but I get an error like " Not executable VI". 

 Do I have to do any setup to solve this issue?. 

The above link which is the folder is required to use the LibXML

Re: FPGA timing different in execution mode and simulation mode

$
0
0

The question persists - how should I improve my code to get my processing finished in time of 10 μs. Leaving aside that from theory (and verified in simulation mode), I would expect the processing to be finished in about 1 μs.

 

Removing SCTLs is not an option as they actually improve timing. I could write multiple elements to the FIFO so it takes only 1 cycle, but it would be more complicated as some of the elements would be zero.

Viewing all 203111 articles
Browse latest View live


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