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

Re: Cardio simulation

$
0
0

It turns out: we have 4 txt file format, which set parameters required for building cardio (each column of the array is the corresponding period of the chart) How to apply for their Gaussian impuls.vi to output turned cardiogram chart?
I do not know how else to describe the details of your problem ...

 


Bar Code Scanner information not displaying automatically

$
0
0

Hello All:

 

I have an issue with a bar code scanner, specifically Unitech AS-10U.

 

Now my problem is this, I'm trying to create a sub.vi that takes the input from a bar code scanner as if its input from the keyboard, verify that the information is the right length and move on to the next step in the sequence. When I use "Bar Code Scanner.vi" (see attached vi) as a standalone vi it works fine no problem, however when I embed this sub.vi into my main.vi it stops working (even if I paste the entire contents of the sub.vi into the main.vi). I have found that using the "Highlight Execution" button in the block diagram and probing the input string magically makes it show up, however without doing this the input string remains blank (this works in all cases).

 

So I tried hitting the forums and I came accross "Prompt User for Input" and it worked beautifully, only down side was that now I have to click the okay button to get it to accept the Serial Number I'm trying to input, so I modified it to measure the length of the string and use that as the acceptence criteria for terminating the while loop (see attached vi). Then bam same problem, now it wont work unless I probe it.

 

Can someone help me and tell me what I'm doing wrong, I've tried looking on the forums and havent been able to find someone who had the same issue I did.

 

Thanks for taking the time to read my post, I appreciate it.

Re: Error 1386 between Labview Quantum Design PPMS

$
0
0

Hello,

 

I downloaded the library that you attached and extracted it to the instr.lib folder in Program Files. When I tried to run it, I received the OLE server error that you had mentioned earlier, so I didn't see the .NET error. I am going to see if  we can figure this out next week, but its hard to say what the issue is at a glance.

 

Eden

Re: Bar Code Scanner information not displaying automatically

$
0
0

remove your "reinit to default, they are useless. it should fix your problem.

Trying to understand timing of inputs and outputs with LabVIEW FPGA

$
0
0

Hi

I'm trying to get a rough understanding of how timing works with inputs and outputs on the fpga and cRIO CPU when implementing control algorithms on the cRio cpu

Say I have a labview program where the following happens:
- The FPGA VI reads an analog input and sends it to a target VI (cRIO CPU)
- The target VI then makes a quick calculations and sends an output to the FPGA based on the input it received
- The FPGA then outputs this through an analog output module

Theoretically speaking, if the FPGA is running at 10 ms, and the rt target VI is running at 1 ms, will the following happen?:
- the FPGA reads the input at 0ms..
- The target VI recieves the input slightly after 0ms and calculates the an output..
- The calculated output is sent down to the FPGA before 1 ms have passed..
- The FPGA then sends this output to the analog output module somewhere around (or before) the 1 ms mark

Or:
- Or, will the calculated output be delayed until the 10 ms mark?

 

Thanks

Re: Allocate memory

$
0
0

Thanks for the reply

Could you take I look at my code attached. Is it too large. I feel not.

Re: Allocate memory

$
0
0

here is my code in Mathscript version.

Re: Allocate memory

$
0
0
You need to learn how to do some computer basics and take a screen shot and make a snippet (look it up!) or attach the actual VI. No one can debug a fuzzy image taken by your phone.

Re: Trying to understand timing of inputs and outputs with LabVIEW FPGA

$
0
0

What are you using to pass the data to/from the FPGA from/to the RT?  DMA FIFO?  Front panel controls?  Scan Engine?

 

It would help us answer your question better if you provided some code.

Re: Allocate memory

$
0
0

My bad,  Here is my file. Thank you for  the help.

Re: xl sheet table column and row header

$
0
0

sorry i attached my program.how to merge some cell..

Re: Allocate memory

$
0
0

What are typical input values ofr all the controls?

 

(For example if your "sample frequency" is zero, you'll run out of memory, of course.)

Re: xl sheet table column and row header

$
0
0

I don't see a Merge request in the code you attached.  Why do I bother ...

Re: Allocate memory

$
0
0
Oh I did not even notice😅. Thank you!

IR Tire Temp Graph Formatting Help (1D color Spectrum based on temperature)

$
0
0

Hi,

 

I have a system that reads in Infared Tire Temperature Data. The system has 12 sensors (3 sensors per tire). 

 

I'd like to display this data real time in a similar fashion to this video. Basicly have a 1 graph per tire with 3 temp values per graph and the color interpolated in between based on magnitude of each temp.

 

Any suggestions in how to accomplish this? Or a better way to visually display this data.

 

 

 

Video of what I'm hoping to achieve:  https://www.youtube.com/watch?v=VWNNl__Rbmc

 

 

youtube pic.PNG

 

So far an intensity chart is the best I can come up with. Rotate it 90 degrees and only show the last 1 value rather then 10 and it's kind of in the right direction.

 

intensity chart.PNG

 

 

 


Re: xl sheet table column and row header

$
0
0

sorry woroungly attached ....here attached my orignal code..

Re: Cardio simulation

$
0
0

OK, so now explain the files A, tm, s1, and s2.  I know that these file names match the parameters of the Gaussian Impulses you are generating, but I'm puzzled by the arrangement of numbers in these files.  I see nine rows of three numbers, with the final row being three zeros.  I'm guessing (but am not sure) that each row represents a PQR complex formed by summing the Gaussian impulses created by the three sets of A, tm, s1, and s2 values.  But why are there 8 rows and a zero row?  What is it that you want to do with these multiple rows?

 

Here's what I've got so far -- I've taken your Impulse Parameter Cluster (with A, tm, s1, and s2 values) and created a TypeDef from it.  I've written a function that takes "t" and an Impulse Parameter Cluster as inputs and returns an Impulse Value.  I'm working on a routine to read the A, tm, s1, and s2 files and create an Array structure of Impulse Parameter Clusters, but as the first paragraph suggests, I'm uncertain whether this should be a 1D or 2D array, and what the dimensions signify.

 

The final question is what do you want as a simulation?  I see some strange code going into your ecg VI, but despite reading your VI's documentation (what? there's no documentation?), I wasn't sure what you intended.  How does timing of the beats work?  Are there supposed to be 8 different waveforms?  If so, how do you choose which to use (or are they mixed together somehow)?

 

This is kind of fun -- too bad I have no idea what I'm supposed to be doing ...

 

Bob Schor

Re: waveform graph problem

$
0
0

could you send your vi in lower version instead of 2015

Re: xl sheet table column and row header

$
0
0

OK, now I see the Merge.  It is curious that you specify the Merge Range backwards (C2:B2).  Not wanting to look up ActiveX, I looked at how the Report Generation Toolbox does this (I also searched the Web for how to Merge Excel Cells using ActiveX).  It's not particularly pretty -- you need to create a Range Object from B2:C2 and then use this as the Range argument to the Merge Method (with, as near as I can tell, Across unwired).

 

Assuming that you ever get this to work, have you thought about how you are going to document this and maintain it?  Are you confident that if you come back to this code in six months (because you want to do something similar, but different, using Excel), you will understand the code you have already written?  Yikes ...

 

Bob Schor

Re: waveform graph problem

$
0
0

You have three processes operating in parallel inside your loop -- setting the properties of your graph from the Time control, building and displaying the Waveform, and waiting 100 msec.  All of these must take place before the While loop can do the next step.  Which one of these goes first?  Who knows?  You don't sequence them, so the order is arbitrary.

 

The Wait is the simplest to dismiss -- it doesn't "do" anything except "wait" -- if the Wait starts before or after the Graph, it hardly matters.  How about changing the scales and plotting the Graph?  Well, here you might want to always do it in the same order, but I have no idea which you should do first.  Note that if you make use of Error Lines, you can use them to sequence things that you want to take place in a particular order (most of your code uses functions without Error Lines -- the exception seems to be the Property Node for the Waveform Graph).

 

Here's another idea -- are you planning to do anything with your Array (which you only have after you stop the While loop)?  If not, don't bother using an Array and a Graph, but simply plot the single "latest value" onto a Chart (which takes single points and scrolls those values across the Chart ...).

 

Bob Schor 

Viewing all 202229 articles
Browse latest View live


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