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

Re: Indexing through every other column

$
0
0

Tho I support the above reply, if you want a fast answer, make a case structure and put all your code there. Then take the iteration counter (Starts at 0) and make (i mod 2), wire that to the case structure. Make a 0 case and it should be empty, make another case and set it to default and put your code there.


Re: MyRio 1900 - Error list

$
0
0

Hello again,

 

sorry if I frustrated you in this process of problem solving. I guess I overread the part with attaching the code but yeah it should have been obvious to share it. So in this case sorry Bob.

Your paragraph is fine. I get your point and Im still thankful for your help and especially for your patience. I am the one asking for help and therefore I have to provide you with every needed information.

The Code I got for the project should be attached now.

 

To answer your first post I need a week to answer. It was my bad that I didnt check my mails before I left University. But I´ll do it as soon as possible.

If I open LabVIEW it at least come up as LabVIEW2019 myRio Toolkit. And under Creating a new Project there is myRio under Sample Projects. I´ll try the Sample Projects when the Rio is connected.

 

I hope you have at least a great day

 

PS: I think your Mind-Reading Skills arent that bad. I like you Bob, youre a good man.

LabView-ADAM-4000/4100

$
0
0

Hello everyone!!!I'm new here!!!

I'm using LabView 2014 and i want to communicate with an ADAM-4117 and an ADAM-4055.I started the configuration of the 4117 module through ADAM.APAX.NET.utility.I want to make a SCADA application and i don't know how to communicate all these things.I tried MODBUS library but it's still difficult for me. I'm new in LabView and in ADAM modules and if someone can help me step by step,i'll be really happy. Please it's important, because i'm alone and i don't have anyone for help!!! 

Re: Indexing through every other column

$
0
0

A combination of "Create Mesh Grid.vi" and "2D Interpolate.vi" would probably do this for you... Optionally with 2X "Create Ramp.vi".

 

Not sure about the performance, it does more that you require (arbitrary X, Y coordinates). 

Re: Indexing through every other column

$
0
0

Bileanear Interpolation.png

EDIT: never mind the typo in the file name...

Running 2 Stepper Motor Independently using 2 NI 9503 C Module on CRio 9035

$
0
0

Hello All

 

I need to run two stepper motor independently for my application I am using 2 stepper motor driver NI 9503 Module on  a CRio 9035 

 

The Program i am using is from the example library Stepper drive using 9503 But i am not able to initialise both the C module Simultaneously 

 

I can use one C Module at a time 

 

Please help  

Which QMH template to use for controlling and logging? SPI communication conflict avoidance.

$
0
0

Hi!

 

I am starting to develop a new application and the question of the architecture but mostly how to adapt a template is coming in. I am not experienced enough in QMH to fully understand how it works and I'd need some advices.

 

Here are my thoughts:

I basically need to command&read up to 4 motors indivudually. All the control is done on their embedded PCB, So I basically just need to tell them to:

  • Start/Stop
  • Speed and acceleration
  • Read/log their speed.

Communication is done via SPI and I have a USB-8451 I²C/SPI adapter from NI (https://www.ni.com/en-gb/support/model.usb-8451.html) I also need to read/log their current cousumption using an Agilent 34401.

 

The idea is to be able to individually and manually or automatically (via a time scheduled commands for instance) command all four motors and save the read data in a TDMS file.

For instance, a typical case would be:

  • Start a sequence for Motor1 that'll run for 2 hours and continuously acquire&log its speed (and current) in the background.
  • Do some manual test with Motor2 in the meanwhile without logging them but visualising its speed.

 

So I'm thinking that Continuous Measurement and Logging template sounds like a great match. But I'm just unsure on how to deal with the multi control of the motors:

  • Should I have one separate While Loop for every motor with its own communication?
    • Not great for future development
    • Easy to implement
    • potential big issues in protocol communication (trying to communicate with two wheels at the same time)
  • Should I have One loop for the communication, handling the commands sent and received and forwarding them to the proper "motors log"?
    • A bit more complicated to handle
    • Better for future dev
    • Communication "slower" (?)

I am still reading on the use of this template (within the code there is a lot of documentation), but it is not super clear what changes implies what and having some help on this would be awesome.

 

Thanks a lot in advance for some advices and insights.

Vinny.

labview怎么限制生成安装程序的安装?How to limit the installation of build installation program?

$
0
0

请问,如果我要限制我自己的安装程序只能安装一次,或者说一台电脑只能安装一次应该怎样做?还是说labview没有此项功能?


DAQmx: write a finite number of samples in a loop but timing is not respected

$
0
0

Dear Community,

 

I'm trying to write a huge waveform (tens of minutes to hours).

In practice, I creat a small waveform representing a minimal pattern that I repeat N times to correspond to the huge waveform.

Here are the different steps:

1- create the small waveform

2- write the waveform

3- within a for loop:

     - Start task

     - Wait unitl the task is finished

     - Stop the task

     - repeat n times

 

 

The problem is that the sequence Start/Wait/Stop seems within a loop seems to slow down the process and the timing is not as expected:

 

Finite.PNG

 

Could you help me please?

Best regards.

Sébastien

Re: Check out my new LabVIEW plugin, BundleMagic!

$
0
0

This looks pretty cool!

 

Sadly I can not find the plug in in the VI Package Manager 2020.

 

Andrés.

Re: DAQmx: write a finite number of samples in a loop but timing is not respected

$
0
0

Here is a simple example of what I did:

 

Front Panel.PNGDiagram.PNG

Re: DAQmx: write a finite number of samples in a loop but timing is not respected

$
0
0

You do not want to stop/start the task inside the loop.  A DAQmx Write Task (if configured correctly) is designed to be "self-clocking".  Here's the basic idea (a few details might be wrong in practice/implementation, but this is how it works in principle):

  1. You specify the DAQmx Write Task, including the Clock Rate, Number of Samples, and set it for continuous sampling (because you do not want to "pause" even for a nanosecond between the first "buffer-full of samples" and the second, until you've output all gazillion samples).
  2. You generate (in a sub-VI) the first aliquot (say, 1000 or 10,000 samples) of your Waveform.  The assumption here is it takes much less time to compute the values for the next aliquot than it does to send them out through the DAQ device.
  3. In a While Loop, you do the following:
    1. Output the Aliquot, brought into the While on a Shift Register (from the Initialization in Step 2), using a DAQmx Write, N Channels, N Samples (you must use N samples, and be sure to wire N into the DAQ Write)(if you are only outputting 1 Channel, of course, you'd use 1 Channel, N Samples).
    2. On the Error Line just after the DAQmx Write, use your sub-VI to generate the next Aliquot, and put it on the Shift Register for the next time though the loop.
  4. The first time through the Loop, the DAQmx Write will immediately start outputting Samples.  Once it gets going, it will "finish" (even though most of the points have not been output) and allow the Aliquot Generator to run, generating the next sample.  This first loop will take very little time.
  5. But the second time through the loop, the DAQmx Write will block, waiting until it finishes outputting the first Aliquot.  Once it has, it will accept the second and continue outputting, without missing any time, and start generating the third Aliquot.  The DAQmx Write acts like the "clock" for the While loop, a clock that is independent of the PC's clock.

Give it a try.

 

Bob Schor

Re: string comparison with wildcards

$
0
0

Thanks all for the input.  I'm building both my own system as well as the approach suggested above, mostly as a learning activity.

 

With respect to the image above, I can't seem to find the left-most function used for escaping the string in my version (2011) of Labview, could someone identify it?  Additionally, the version of "Match Pattern" I have available differs from the one above in that the [b+] input is instead labelled as [b*], does this make a difference?  

labview怎么限制生成安装程序的安装?How to limit the installation of build installation program?

Re: Open handle HTTP

$
0
0

You are most likely using a https:/: URL and the server certificate is invalid or has expired.


Re: DAQmx: write a finite number of samples in a loop but timing is not respected

$
0
0

Dear Bob,

 

Thank you for your answer.

It seems that I have something to learn!

As all of my aliqua=ots of samples are identical, I just generate them once.

Then I write a first set of samples then start my task and then, in a loop, I write the N-1 aliquots of samples.

But, this is not the solution, so I missed Something in your exmplanation, sorry.

 

 

Front Panel.PNGDiagram.PNG

Sébastien

 

 

Re: Renishaw XL80

$
0
0

I have a XL-30H, I want read the data in labview, but have no idear how to do it.

Would you mind share the DX10COMLIB, or your code. Thank you very much.

Re: BUG with File Path Browse Button

$
0
0

I would bet it’s not classified as bug by NI but functioning as intended as browsing into a packed library is not something you usually end up doing in an executable and that code is intentionally removed in the runtime engine. 
If this is a good decision is another matter but definitely a valid one. Calling it a bug is therefore not likely helping. Arguing with good examples why you should be able to do it might be better but personally I think letting a user select which exported VI to execute from a packed library isn’t exactly a user friendly and safe interface.

Re: Open handle HTTP

Continuously reading data but logging them ondemand

$
0
0

Hello guys, I have made a .vi to acquire a voltage signal, converting it to current and writing them with their timestamp on a tdms file.This means that the write to tdms file and the reading process are in the same while loop. I wonder how I can make the writing to tdms file start and stop whenever I want while the acquisition of the signal keeps going. I also want to ask if I can read this tdms file the same time as the writing happens.

Viewing all 202002 articles
Browse latest View live


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