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.
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.
Depending on your specific case, you probably want either
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.
Thanks, that helps a lot since I didn't know how to look up the solution for my problem.
Yes I want them to both start at the same time, though my analog signal will end up longer than my digital. My analog output looks something like the attached file (source: https://forums.ni.com/t5/LabVIEW/Generate-analog-waveform-based-on-data-file/td-p/1791840). My digital signal is just a square pulse wave.
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.)
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 🙂
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.
Okay thanks!
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.
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.
Does it work better if you replace the brown Waveform tunnels with Shift Registers?
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.
"\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.
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)
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.
How can i chane the speed of my NIC problematically from labview
Could you help me with this part?
Then I would like to write these values (max and min) in an external file.
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,
I2C write sub vi from FDC 2214 Config vi
and myRio Write I2C sub vi from I2C write vi
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?
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.
Yes, Correct LibXML only.
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
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.