MatLab 'find' equivalent in tiara
I'm looking for an equivalent function in tiara making the "Search" function in MatLab.
Everyone comes through this?
Thanks in advanced for any help.
Spidey
AndreasH_Ha
Thank you very much... I saw a previous post, you had and which has helped tremendously!
http://forums.NI.com/T5/DIAdem/finding-Max-and-min-in-sample-data/m-p/3053716#M19643
Thanks a lot for your help!
Spidey
Tags: NI Software
Similar Questions
-
How can I search and return several items from the table quickly (like Matlab find)?
Hi, I'm a pretty experienced Labview programmer, and I've always wondered if there is a way to quickly search for pictures on several items that meet the selection criteria, equivalent to the Matlab find command. While my inability to do in Labview has always annoyed me, I now have an application that requires this capability and I need to find a solution.
Is the fastest way I've found to do this in labview to perform comparisons on the data vectors, then use the Boolean value that results from vector to analyze the table using a loop and shift registers. I enclose an extract vi a analysis comparative vi to one of the simple searches that I need to do. On my laptop, this research takes about 600 ms. In comparison, the equivalent in Matlab:
newArray=oldArray(find(oldArray(:,4)./oldArray(:,2)>1.5),;
runs in about 1.2ms. So, the way I am doing this in Labview is only 400 times slower
Needless to say, I need to make these types of research many times, and these additional 599 ms start to add up pretty quickly!
Thanks for your help,
Aaron
Hi Aaron,
the slow part is probably "build group" of the node in the loop.
Try this:
Define an array the same size as the input data (or simply uses a copy of it) and the wire that to the shift register. Keep a counter of lines found in the loop. Use IndexArray and ReplaceArraySubset for the loop to move rows found at the beginning of the table (overwrite the 'bad' lines). After the loop simply ReshapeArray the number of found lines...
Sorry, don't have LV (2009) on hand for editing your snippet.
-
What is the equivalent of tiara to "continue to"?
Hello
I have a loop, which allows me to treat several different files at the same time group that has a "If...". Then check at the beginning of the loop to make sure that each group can actually be treated." If a group failed, I just want to be able to jump to the next iteration of the loop there.
In VBA, I know I would use 'Continue For', how would I do this in tiara?
<>0 then
x = ChV(x,"Group/Channel")
On the other
Call ErrorHandler ("can't find x.")
Continue for
End IfThank you.
It didn't continue.
I move the code to a sub and use the sub output.
I have Sun: For i = 1 to 10
DoWork I have
NextVoid DoWork (i)
If 2 = I then
Exit Sub
End If' ...
EndSub -
Equivalent to DECRYPT_CHAR() in DB2 Oracle
Dear all,
We are working on a migration project. We are the interfaces ODI of DB2 migration to Oracle.
The DECRYPT_CHAR() function is used in a writing of the procedure. I couldn't able to find equivalent oracle of the DECRYPT_CHAR() function.
You could someone please provide guidance on this.
Thank you very much in advance.Hello
In my experience, there is NO direct function lie for it in Oracle, there rather inbuild packages to do encryption and decryption, but still you need to create a function defined by the user in your schema.
Thank you
Guru -
create functions (rectangular, triangle, etc.)
I create some functions with a script.
I found it online here:
http://zone.NI.com/reference/en-XX/help/370858K-01/dlgdacpp/dac_packet_dlg_disp_io/hb_generator/
can I use in my script somehow?
I have honestly no idea what to do with this function generator, I can't find same in tiara. (I use Diadem 2014)
Can someone help me? I just need to define rectangular and triangle works with the duration, frequency, etc.
Thank you
Hello
'Funktionsgenerator '.
Erfordert: CCIP Bundle.
This means that you need to license al tiara with the DAC module on the left side as Script, report or ANALYSYS.
-
I recently bought a long haul Bower SLY650T 650-1300MM F8.0 zoom Lense. AV or M mode, the camera will not adjust the Fstop parameter. It can be adjusted with the Canon lenses that came with my Rebel t3i, just not this lens. You can highlight the fstop area, but the scroll will have no effect on the frame with this lens. It simply does not address. I called Canon support and they said that the camera doesn't seem to be aware of the lens.
Any ideas? The T adapter is the correct one (EOS).
There is no default, the lens and the camera work as expected.
It is actually possible to connect your camera to a telescope. On a telescope, there is none "blades opening" is not possible to adjust the opening... the report f / d of the telesocpe is it is simply the focal length divided by the width of the opening.
This goal of f/8-16 650 - 1300 mm Bower is basically a small telescope. The "lens" has no real aperture blades.
At the end of "large" (650 mm focal length), it is f/8. The lens has an opening of about 80mm.
To find the report f / d of any lens, you simply divide the focal length of the lens (in your case 650mm) by the diameter of the opening (80mm) to get to report f / d. ÷ 650 80 = 8.125 (mainly f/8).
When you zoom in at the end of 1300 mm, focal length changes but the diameter of the lens does not change... which means that you can divide 1300 ÷ 80 and you get to about 16 (16.25 but these values are rounded.)
On your camera, you will be able to put the ISO setting and shutter speed, but you will NOT be able to set the value of opening... it is what it is and is not adjustable. You just have to know that it is 650 mm f/8 and f/16 to 1300 mm.
Take an exposure of, say, the Moon, you would use the '11 loony"rule. This rule says that if you are at f/11, you can set the shutter speed to the inverse of the ISO (we'll assume that you use ISO 100) so that the opposite of 100 would be 1/100th sec. Which would actually a perfectly exposed moon. But you're not at f/11... you are in (a stop faster) f/8 or f/16 (one stop slower). You just compensate for changing your exposure to this single window.
exhibition for example ISO 200, f/16 and 1/100th of a second at the 1300 mm focal or use ISO 100, f/8 and exposure of 1/200th sec at 650 mm focal length.
It will help to know the rules to find 'equivalent exposure' and how to manually set the exhibitions. If you are not familiar with this, then the book "Understanding Exposure" by Bryan Peterson is an excellent starting point.
-
There are some features of the table that has Adobe FrameMaker, and I'll try to find equivalent features in InDesign. I hope someone can help me to locate these features or providing workarounds:
- FrameMaker can include a paragraph of title of the Table in the table style. Is this possible in InDesign?
- FrameMaker has a variable "Table continued" that can be inserted into a table or the table header row title. This is useful for long tables to divide from one page to another. Is it available in InDesign?
- As part of a style of painting in FrameMaker, you can specify settings for lines widows and orphans. For example, if you want at least 2 rows to be kept together, you can be part of the table style. Is this possible in InDesign?
- FrameMaker has a command to resize the columns that resizes the column to the width of the text in the cells. In InDesign, I find myself laboriously resize each column separately until the text fits in the column. Is there such a resize to width of text command in InDesign?
1, no, InDesign doesn't have such a function.
2. you can do in InDesign with any text, so you can do it here: create a text block, write a text like "continue on page #" for the # use the marker number Page of Nxt and lay the block of text on a post where he is at least a little bit overlapping the main text string.
3. non can only paragraph styles.
5. neither.
Bring to the feature request.
-
File txt to ASCII binary (MATLAB equivalent?)
Hello
I just started using LabView two days ago and need help with which is probably very basic. My goal is to take a .txt file that contains some message (letters, numbers, etc.) and convert it to a stream series of bits. In MATLAB, I would do it like:
Temp = textread ('CommsInput.txt', '%1s', 'spaces', "); % load the txt file.
text = char (temp); % Convert character cells
y = zeros (length (text) * 8, 1); % initialization vector o/p
for n = 1:1:length (text)
a = ABS (Text (n)); % find the number corresponding to each character ASCII
I = 8 *(n-1) + 1; % define indexing for output vector
y(i:i+7,1) = (de2bi (a, 8))'; % convert this number to a binary number of 8 bits (ANSII)
endIn the end, it would give me a (8 * N x 1) vector where N is the number of characters in the text file.
From there, I would be able to easily access every bit to create a signal Pulse Position Modulation, I want to use for the laser communication.
If anyone has any advice on how to implement this in LabView 8.2, it would be greatly appreciated!
Thank you
The file extension is not relevant. Each file is ultimately binary. Even text files. If I understand the objective, I believe that one of these two approaches will you need:
It is a text file that contained the text "ABCDEF".
-
Programmatic equivalent to the Find dialog box change functions
Hello
Is there a reasonable programmatic equivalent of the buttons change to the Find dialog box? FDK or ARE? I have no urgency to find one, but I was going to use it if they are available. I'm looking for something simple and direct, not savages button-push-automation-routines or something like that.
I hope this isn't a stupid question. I'm amused that after all these years, this is the first time I ever thought that the need for it.
Russ
Hi Russ,
using 'find', you will receive a textlocation. Now, he must 'manually' change the text with oDoc.Delete (TextRange) and then insert your text replace.
I hope I understood your question right?
-
We have to port a plugin Illustrator to know c ++.
Convert us / extract elements from Illustrator into InDesign (with IDML), strongly depending on data (tags and variables)
We are looking for in the tags, but no idea where to find the equivalent of textFrame.contentVariable?
He's somewhere in a dictionary? On the textframe?
It is general emergency, any help is welcome...
Here is what is in the metadata (approximated as XML) document. My tool is the name of the node and thicket sharp brackets. In addition, it adds all the attributes.
<#text> #text>
<#text/> Note: the weird spacing on the attributes and their values it's me. I should probably put that sometimes.
Here is the file: http://speedy.sh/Yswnj/ranavision.ai
-
Can not find the equivalent Australian model us Qosmio X 75 - A7295
Does anyone know the Australian model of the equivalent of what I found on an American website:
Black 17.3 "Toshiba Qosmio X 75 - A7295 computer laptop PC with processor Intel Core i7-4700MQ, 16 GB memory, 1 TB hard and Windows 8
I can't align with the Australian version Toshiba models.
Computers notebooks are specific products of these countries, and very often the same models are not available in different markets. If you're in Australia check Qosmio models offered in your country and pick up a better hardware configuration.
-
How to open files (.dat) famos on tiara?
In my request here I m using a data logger Kvaser Memorator professional for logging tool can signals using the Kvaser Memorator Professional Setup Tool software. By extracting the files saved in the eqquipent map, I have the following options for extensions:
-Some signals to CSV
-Signals selected as Matlab for ATI Vision
-Certain signals to the MDF format for vector CANAnalyzer
-Vector ASCII (.asc)
-PEUT images in CSV format
-PEUT pictures to plain text
-Famos (.dat)
-Vector MDF (.log)
-Vector J1587 ASCII (.asc)
-Kvaser binary format (KME 2.4) - used for vector cananalyzer
-Kvaser binary format (KME 2.5)
-Kvaser binary format (KME 4.0)
What I want to do is open the file in one of these extensions above using the 2011 tiara. Who is the extension recommended for my application? Is there a plugin that I need to install on my computer? If son, which plugin and where to install it?
Thank you very much!
Hello
Our suggestion is to use the MDF (*.mdf, *.dat) file format. You will need to install the following use: Use MDF.
You will find a brief description on how to install this use here.
Please let me know if this does not work for you.
-
frequency of the FFT is not compatible with matlab
Hi all
Please find .jpg in the attachment. The signal is generated by a signal generator and collected by datashuttle/3000. Then I use the "FFT module" and "statistical value" to find the position max (frequency). I also downloaded the data and processed by matlab FFT function. What I find, is that the value of the frequency of dasylab is always slightly less than matlab. For example, when the signal generator gives 10 Hz, the dasylab indicate 9,77 Hz and matlab gives 9.99 Hz I used matlab for years, so I have confidence in it. There must be something wrong with my program or dasylab. First I have is because of the resolution, so I changed the "statistical values - mode - based block and tick (not quite sure about this) parent block and a value for every 240 blocks, which is also for the sampling of matlab." Unfortunately, there is no change at all. Can anyone help?
Thank you very much
Alan
What is your size of rate and sample block DASYLab?
Try to make the block size an even number, for example, if you sample at 1000 Hz, made the size of the block 500 or 1000.
What is the equivalent block Matlab? The amount of data is used for the calculations.
You can also use the module block average average more than 250 blocks and then use the module of statistical values to calculate the maximum Position.
-
Function MATLAB Detrend in DIAdem
Hello
I'm trying to pre process certain data for the treatment of the fft in Matlab, I would use the Detrend function and I was wondering if it's something similar in tiara.
I use DIAdem 2012
Thank you
Essentially in Matlab Detrend on a simple matrix subtracts the linear regression of each data value line in a table.
For example, if you have a table a [2,3,5,7,5] and you had to he relaxes in MatLab, it would equal detA [-04 - 0.4, 0.6, 1.6, -1,4].
If you subtract A detA you will get A-detA [2.4, 3.4, 4.4, 5.4, 6.4] which is exaclty same find the linera for optimal adjustment to A line.
-
Is there a way to determine the equivalent ANSI C code of a Labview project?
I'm a complete newbie to Labview. I have this quite complex Labview project that was used to create a DLL that matlab may call to order my card PCI-6534 without having to know NIDAQmx calls.
I am trying to find how to make these calls directly from Matlab NIDAQmx, but I do not get the same results when I call this DLL mentioned above, so I thought I would try to give a sense Labview projects live I begins to make sense of the general economy of the screw, but I would like to be able to run the project , step through it and perhaps see NIDAQmx orders (or something equivalent, so I can determine how to call NIDAQmx commands in Matlab).
Is this possible to do?
Thank you
Jason
Yes. The toolbar allows you to turn on highlighting so that you can run the VI and see the content of the son. You can put sensors on the wires. You can single-step through the code. This is explained in the help of LabVIEW under Fundamantals-> running and debugging screw-> Concepts-> Debugging Techniques.
In what the question implied in the title of your message, don't you can directly convert LabVIEW C code in the development environment. Yes, there are tools to convert LabVIEW in C, but which is intended for microprocessors.
Maybe you are looking for
-
Satellite P20-404: WLAN is not working
I wanted to use the adapter wireless network for the first time after a defekt disc and a reinstall. It worked before, but I did not reinstall WLAN right here. Now I don't know how to install it. There is no entry in the network connections that coul
-
How can I make the FN keys work with your laptop more old?
Hello I have laptop Satellite 5200-902. Unfortunately there is no support for such portable one 'old' as this on Windows Vista. Vista runs very well on it but the only thing I didn t do is to operate buttons FN in Vista. Can someone please give me an
-
My Windows Live Hotmail account asks me to refresh
My Windows Live Hotmail account ask me to refresh the page, I can be in the Inbox or sending an email and it happens every 5 to 10 minutes while I'm on it?
-
Destination folder from scanning change for HP PS 7520 with a Mac Mini?
How can I change the destination for scanned documents folder? I have a HP PS 7520 wireless connected to my Mac Mini computer. -Joe
-
After turning on my computer I can't start live TV in media center.
After turning on my computer I can't start live TV in media center.It's just there for a few seconds then it gives me a disk error and tells me to restart either the media center or Windows. No help! The only way to get the work TV power is on the ba