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

Re: Re : Insert image file to word document using active X

$
0
0

Of course, you will need a list of files which can be accomplished with the "List Folder" function

 

Frozen_0-1580767537912.png

Combine the two and you have your answer.

Good luck


Re: Formula Express VI

$
0
0

Thank you. I was able to fix the issue. The problem was that in the Express VI formula box I had: "Kxx= f(x1,x2,x3,...)" just like I have done with a formula node (which I am not using since my data is dynamic data). Anyway, when I replaced that with either "= f(x1,x2,x3,...)" or simply        

"f(x1,x2,x3,...)" then it worked fine and the Express VI icon was then populated with the inputs which were not there before removing the "Kxx" or "Kxx=". However, in all three cases the formula showed up as a valid formula, indicated buy the green box. Kxx was defined as a variable in all cases.

Thanks for you help and prompt response,

Keith

Re: Stereo sound generation

$
0
0
 wrote:

After reacquainting myself with the Generate Sound example, I seem to remember that Sound Output Write will take an array of waveforms as input (one for each channel).


I will look into that , Thanks!

Re: Stereo sound generation

$
0
0

 

 


 wrote:

Is this what you need?

Generate Stereo Sound.png



Sure that might work but I want to know how to do it.

 

Can you give me an example without using Express VI's?

Re: Nipcibrd.sys/ Labview 2019

$
0
0

Thanks for providing this.  Based on the data in the dump, it does appear to be identical to an issue previously identified by other users.  I can't make guarantees on timeline, but right now I would expect the fix to be available in the next release of PXI Platform Services (20.0) in early April.

How to trigger analog signal with digital signal using digital edge

$
0
0

Hi,

I recently asked something similar, but I am having trouble wiring my digital trigger to the analog output. I am attaching a portion of the labview program I am modifying...in short, trying to get Dev1/ctr2 to control Dev1/ao1. The top portion does not make sense nor work, but it is my attempt to incorporate the digital edge module.

 

Thank you.

 

Edit - the analog waveform I am triggering is being read from a data file (table) that I've created outside the program. Ultimately, I want a 1 second square pulse wave (digital) aligned with a 3 second custom waveform (analog).

Re: How to trigger analog signal with digital signal using digital edge

$
0
0

First off, please attach code as we cannot debug pictures.

 

Next, it's unclear as to what you're doing. Are you generating the square wave, or is it coming from somewhere else? If you're generating it, you can share a StartTrigger between the two tasks. If it's coming from somewhere else, you can use the Start on digital edge trigger. For that, you'll need to wire the trigger source (i.e., which pin you want to use) to the Start- Digital Edge trigger.

 

I recommend looking in Help -> Find Examples, then Hardware and DAQmx. There are many very good examples there. I would recommend you start with one of those and modify it to meet your needs.

Re: Stereo sound generation

$
0
0

You can right-click the ExpressVI and select "Show Front Panel" to view the contents. It's using the same Sound Output Configure and Sound Output Write that you've mentioned using already in the Graphics and Sound -> Sound -> Output palettes.

 

The Help for Sound Output Write says:

data writes any sound data to the internal buffers. For multi-channel sound data, data is an array of waveforms where each element of the array is a single channel.

 

I'm not sure how to tell it which waveform you want on left or right, but I'd guess it would be consistent oce you figure out which way it goes.

 

Edit: Why the heck is there so much whitespace on this post?


Re: How to trigger analog signal with digital signal using digital edge

$
0
0

I've attached our entire code here. 

 

To answer your questions: yes, we are generating both the square wave and analog wave. I'm having trouble understanding how to properly wire the Start Trigger module, or another method of synchronization between the digital and analog signal.

 

If you could direct me to an example, that would be helpful as well. I have yet to find something that matches our needs, so I'm looking for any lead.

 

Thank you so much in advance.

 

Edit - I'm also attaching the excel file required to run the program here.

VI Farenheit and Celsius set up HELP

$
0
0
  1. esign a VI to convert temperature from Degree Fahrenheit (F) to Degree Celsius (C). The VI accepts Fahrenheit from the user and displays the corresponding Celsius. Use the following equation:

    F = (9/5)*C + 32
  2. Design a VI that computes f = 5x2 + 9y – z, where x, y, and z are real numbers. Provide two solution methods. For the first solution use only arithmetic functions (such as Square, Add, Multiply, and Subtract). For the second solution use the Formula Express VI. Which solution is easier to program? Which solution provides a quicker way to change formula? Which solution executes faster?

Re: VI Farenheit and Celsius set up HELP

$
0
0

Seems like simple homework problems.

 

I'm sure you learned enough in class to be able to  finish it yourself.

 

Good luck and earn that "A"!

Re: How to trigger analog signal with digital signal using digital edge

$
0
0

Ok, a set of possible changes. Hopefully you can try them and see if they work - I only checked they don't have errors:

  1. Your Read from Spreadsheet File uses the default "tab" as a delimiter, but your file is a CSV. Wire a string constant with a "," to the delimiter input on the bottom
  2. Set the Rate input for the DAQmx Timing node at the top. You can use "Reciprocal" on your dt value to get 100 (and to make sure they stay in sync).
  3. Add a DAQmx Write node after the Timing node, and then via the dropdowns choose Analog Output >> Single Channel >> Multiple Samples >> Waveform. Connect your waveform. In the downloaded VI, it was connected to the "units" input of the Create Virtual Channel, which makes no sense and causes an error.
  4. Add a DAQmx Export Signal node to the counter that you're interested in. Wire a constant value of "Counter Output Event" to the type, and then choose a PFI terminal for the output location. Connect the same value to your Start Digital Trigger for the AO task.
  5. Right click on the For loop edge and choose "Conditional Terminal". Get rid of the "Stop" node (which kills LabVIEW) and connect the Stop button to the new conditional terminal. (edit - I added a constant here - you should keep the control of course!)

changes.png

 

There are other improvements that could be made, but hopefully that will get you started.

Re: Starting a new program with LabVIEW NXG 3.1.1 please help

Problem controlling stepper motors

$
0
0

Hi, i am new.

 

I am working on an arm with stepper motors for a school class
I have used LINX and arduino to control the motor by taking the steps with a know / dial, to know the location at an angle and used some equations, this works well, I keep the position with it.
Now I am trying to move it and save the number of steps for the position and thus create an array to create a cycle of movement, that is to say put in several positions and keep saving to repeat them only a given number of times.

I think the hardest thing I already did but in this I don't know how, any help?

data acquisition

$
0
0

i need to measure the parameters of ionised gas operating at a frequency of 9 GHz.what should be the sampling rate i should consider for my data acquisition card?


Re: How do I give remote access for a Universal Robot UR3e using LabVIEW

$
0
0

Thanks for the help.

So, u are saying that I can control a robot (UR3e) remotely from some other location using the VI that is given in it. Am I right?

and the code will be written in polyscope itself right for robot task? we just give permisson to play/pause the robot from some other location.

Re: How to trigger analog signal with digital signal using digital edge

$
0
0

Wow thank you!! Much appreciate your help. I will try this tomorrow.

Raltime XY Chart

$
0
0

I have 2 stream data set I want to plot these data into chart data1 on Xaxis and data2 on Yaxis, please advise to how to implement, thank you

Re: Data socket exe build error

$
0
0

Solve by reinstall the software.

Thanks for the help.

-Simon

 

Re: Stereo sound generation

$
0
0

 wrote:

 

 


 wrote:

Is this what you need?

Generate Stereo Sound.png



Sure that might work but I want to know how to do it.

 

Can you give me an example without using Express VI's?


Please check the code behind Play Waveform Express VI.

Viewing all 203191 articles
Browse latest View live


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