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

Re: convert time stamp in chart for other kind of Calendar like solar calendar

$
0
0

so what about the chart and waveform about the date that show


Re: cRIO-9068 Scan engine, EtherCAT configuration issue?

$
0
0

The screenshots from above in proper resolution. Sorry.

 

[1]

Screen Shot 2016-01-15 at 17.02.07.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[2]

Screen Shot 2016-01-15 at 17.06.52.png

 

 

[3]

Screen Shot 2016-01-15 at 17.09.41.png

 

[4]

Screen Shot 2016-01-15 at 17.13.52.png

 

[5]

Screen Shot 2016-01-15 at 17.27.13.png

 

[6]

Screen Shot 2016-01-15 at 17.34.38.png

Re: labview crash notification

$
0
0
Like mike said we can't do much without code as well as more info about the crash. The next time you get a crash please get a screenshot as well as the zip file that is created and post those.

I am guessing that what mike was suggesting by having another program monitor your application would be to have your app post to a web service or upate some shared variable periodically so that a program running on another computer can make an assumption that it has crashed if it doesn't see an update after a certain period of time. There are a lot of ways to do that but I think that's the basic idea.

Re: how to get inclined periodic waveform in labVIEW?

$
0
0

You can also use the Basic Function Generator.vi set to Sawtooth waveform.

 

Ben64

Re: FPGA

$
0
0
What error are you running into?

I don't have LabVIEW in front of me but you cannot acquire images from the FPGA on myrio, only process, so make sure you remove thay functionality if it is there. I would also be interested in what you want to do because image analysis on the FPGA does not necessarily improve performance and usually adds a lot of complexity.

Re: convert time stamp in chart for other kind of Calendar like solar calendar

$
0
0
You would be out of luck. LabVIEW only supports the standard time representation.

Mike...

Re: LABVIEW calling .net method with Interface as parameter

$
0
0

>> Can we reference Interface in LabVIEW and then get "TypeOf" it?

 

I would say that "Type of" object in LabVIEW is  that blank reference of specific .Net types. There is no real object or interface associated with them - trying to call methods would yield "no object exists" error, but type is correct.. That is why I suggested using "to Generic" and "To specific" converters.  

 

I tried to look into System.Type library for this method - "get Type" object from specific object, but no luck.

Re: FPGA

$
0
0

Hi there, I tried plug in my C920 HD Pro Webcam onto the myrio USB, and I open the demo project trying to run it. However, it showed error that the fpga target VI  need to be compiled first, but i failed to compile it. The errors are as in the attachment.

 

I am trying to use myRio FPGA to do image processing such as template matching function in OpenCV in hoping that the processing speed can be better than a processor and raspberry pie. 


Re: FPGA

$
0
0

error.PNGerror2.PNG

 

 

I am still new to graphical programming and currently still finding tutorials to access to the image processing in FPGA. 

Re: Do not want to repeat the same number in a while

$
0
0

If the number is not repeating then it is not random, because random numbers can and will repeat. Just something to be aware of. I assume you don't actually want a random number, but rather want all the numbers from 1 to N in a random order.

Re: Cardio simulation

$
0
0

Zorga,

 

     I think I figured out what you were doing, and have come up with what I think is a solution for you.  However, you'll need to do a little work, yourself, as I'm going to present some of what I've done, using LabVIEW 2015, and "showing pictures" (which I complain a lot about others doing when they ask for help).  The main reason for doing this is to force you to re-code this for yourself in LabVIEW 2014 (which seems to be what you are using) -- by doing this yourself, you can "play" with the code and figure out not only what I did, but possibly even why I did it, and, in the process, learn more about LabVIEW (which will serve you well as you continue with your Cardio Simulation studies),

 

     Before diving into the code, there are some broader comments I want to make.  First, a Project such as this should always be done using a LabVIEW Project.  In my case, all of the code lives inside a Project named EKG Demo.  LabVIEW Projects are very helpful for keeping code organized and linked in memory -- it also subtly nudges you to organize the VIs and Typedefs neatly inside your LabVIEW Folder, preferably inside a Project-specific EKG Demo folder.

 

     When thinking about a Simulation, it is often useful to organize the Simulation Parameters (which you call A, tm, s1, and s2) together -- in my case, I created a LabVIEW Cluster, shown here:

Impulse Params Typedef.png

This is saved as a Typedef.  You'll notice that I gave this TypeDef its own Icon -- you'll see this again when the Cluster Constant appears on the Block Diagram of the sub-VI reading in the data files.

 

     The organization of Parameters represented by the Cluster should probably also carry over to the organization of the Parameter Files.  I actually had the most difficulty in creating these Clusters from the four files you provided.  Instead of organizing the data by "features" (what I called Impulse Params) or Spikes (an array of Input Params that defines a waveform), you had all of the A parameters in one file, all of the tm parameters in another, and so on.  Furthermore, the data were in a 2-D "spreadsheet" format, and it wasn't clear what the rows and columns represented.  I actually made a mistake, thinking you had 8 different waveforms characterized by three parameters (since you had 8 rows of 3 columns -- I deleted the unneeded Zero entry), but figured out that you really had three waveforms with 8 parameters.  [I was "led astray" by your earlier example showing P, Q, and R waveforms, 3 in number, but when I compared the values from that earlier demo with the numbers in the files, I realized that the rows represented different parameters, and the columns were the spikes.  This is, again, an "illogical" order (I'm giving away my English language bias for reading left-to-right, then top-to-bottom) -- I would have expected each row to contain all of the parameters for a single Waveform, with different rows corresponding to different waveforms.

 

     But never mind.  Here is the code for Get EKG Spikes that I used to read the four data files and organize all of the parameters into a 3-row, 8-column array of Impulse Params:

Get EKG Spikes.png

The first loop reads each of the files, building their names from the Array of Strings going into the For loop.  There's a Read from Spreadsheet File that's slightly modified in LabVIEW 2015 which gives, say, all of the "A" parameters in a 3 by 8 array.  I reshape this into a 1D row, as I need to do some fancy Array manipulations to get it into the format I want.

 

What comes out of the Loop is an array of all the A, tm, s1, and s2 params in a 4 by 24 (= 3 by 8) array.  What I want is a 3D array, the first index being the Waveform index (i.e. 0 .. 2), the second being the Impulse Parameter number (i.e. 0 .. 7), and the last being the parameters, themselves (A, tm, s1, s2).  The manipulations between the two For loops accomplish this rearrangement (you can verify this for yourself by putting in probes or Indicators, adding Array Size functions, etc. when you build and test this code).  The final loop indexes first over the Waveform, second over the set of Impulse Params, and finally the four parameters are stuffed into the Impulse Param cluster (check out the Cluster icon) and automatically assembled into the desired 3 by 8 array by the output indexing tunnels.

 

Great.  Now for the Top Level VI.  Here is its Front Panel:

Demo Front Panel.png

I put some simple controls to set the Heart Rate (silly me -- I forgot that 80 is beats per minute, not per second, the first time I coded it) and, just for fun, a slider to add a (normally-distributed) random change to the R-R interval.  As you did, my simulation rate is 1KHz (a new point every millisecond), and I have a "SlowDown" control that determines how many milliseconds I display each millisecond of generated data.  Finally, there's the display (which I made a "Sweep" display, hence the red line). 

 

The Block Diagram is here:

Demo Block Diagram.png

  The first thing is to get the EKG Spike data from the files.  The number of rows returned gives the count of how many waveforms there are -- we use this to create an index, starting at 0 and incrementing modulo the number of rows, and use this index to extract the row having the eight parameters that characterize this waveform.  Since the simulation does one "beat" for each waveform, we compute an R-R interval (in integer milliseconds) and use it to control the inner For loop that computes each millisecond's waveform value from the 8 sets of 4 Gaussian Impulse parameters.  We get the current elapsed Time from the For loop index (in milliseconds) divided by 1000 (to convert to seconds).  The inner For loop uses each of the 8 sets of Impulse parameters, along with the current time, to produce a value for that component, brought out as an array, which is then summed and sent to the EKG Chart.  The code inside the Gaussian Input VI is very similar to what you showed, but by "hiding" this code inside a sub-VI, I can hide details that are not necessary to understand the "big picture" of the simulation.  [Hint -- sub-VIs are your Friends].

 

     Finally, notice that there is a Stop button inside the For loop connected to a Stop Indicator -- this is called a "Conditional Stop" (note the Stop symbol inside the outer For Loop's Index In terminal) and can be used to stop the loop early.  The same wire is brought out through a tunnel and used to also stop the While loop.

 

     You'll notice that the Block Diagrams are "neat" -- straight wires, not a lot of empty space, obvious left-to-right data flow, easily fits on a single Monitor screen (even for a laptop).  There's no way to do this without sub-VIs!  Note, also, the "simple-minded" Icons (just a few lines of text) that further serve as a form of "self-documentation" for the code ("What does that yellow box on the left do?  Oh, it's used to "Get EKG Spikes", whatever that means ...").  Try to apply some of these ideas (which I learned from Peter Blume's "LabVIEW Style Book") to your code -- you'll find the (minimal) time investment pays big dividends!

 

Bob Schor

Re: how to get inclined periodic waveform in labVIEW?

$
0
0

Dear sir,

 

The desired waveform is attached herewith. Ramp signal gives output for one period only but i need this waveform in periodic fashion as shown in attached picture . The problem with sawtoothwave is, it gives AC output from minus scale to plus scale vertically, but i need DC which has amplitude from 0 to 360 but repeate the same shape after exactly 0.02 seconds(50Hz), its shape should be like sawtooth but above the referance line. and i really appreciate above kind persons by the core of my heart for trying to help me thanks all of you sir.

 

with best regards

mudasir ahmed 

Re: Cardio simulation

$
0
0

also there is free tool kit with name of biomedical that you could find some simulation of signal like cardio simulation

biomedical toolkit

Re: how to get inclined periodic waveform in labVIEW?

$
0
0
You can use the output of the ramp pattern to repeat as many times as you want. From one to infinity. Adding an offset to a sawtooth is just as simple.

Re: external ADC

$
0
0

I am trying to use the internal clock of the converter to carry out my operations thats why I left the SCLK of myRIO unconnected. 

 

Will this work ?
Flat Sequence Structure containing the following : 

1) CONVST activated

2) EOC polled

3) Data read 

 

Also, What are the appropriate hardware connections according to you ?

 


Re: how to get inclined periodic waveform in labVIEW?

$
0
0

Dear sir, 

 

by adding offset in sawtooth wave, it results in shifting of overall signal upward, and start from the offset vale. but i need signal which start from 0 amplitude and ends at 360 amplitude. i am again attaching the desired waveform.

 

with best regards

 

 

Re: how to get inclined periodic waveform in labVIEW?

$
0
0

The slight modifications of the VI I posted earlier show (1) concatenating 5 repetitions of the ramp and (2) use of the Sawtooth Waveform.vi with offset.

 

Reading the Detailed Help files for those VIs may provide some understanding of how to use them effectively.

 

Lynn

Re: external ADC

$
0
0

If you have programmed the ADC to use the internal clock, it will be used to run the conversion. For the conversion SCLK can also be used, if the ADC is programmed appropriately.

But for interfacing the ADC with SPI the SCLK clock is required.

 

The RESET signal is active 0, so if left unconnected, it can place the ADC into reset state. If not used, this pin should be connected to the digital supply (see section 8.5.5 of the datasheet).

 

The sequence of operations you mentioned is correct, and will work if all timing parameters are followed.

 

Thanks,

Arev

 

RT cRIO - Change Conversion Time

$
0
0

Hi Folks,

 

Is it possible to change the Conversion Time on running modules?

 

My attempt (shown below) failed (cRIO hangs) when switching from the default "High Resolution" mode to "High Speed" mode.

Are there any other options?

 

steve

Conversion Time.png

CAN

$
0
0

Hello,

 

I am trying to develop a project for building machines working in quarries. I want to use a microcontroller to collect data like fuel level, consumption, speed, location from the CAN network of the machine, and send it wireless to outside server. My question is what hardware equipment and software should I buy to make this happen?

 

Thank you. 

Viewing all 202203 articles
Browse latest View live


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