Quantcast
Channel: LabVIEW topics
Viewing all 67123 articles
Browse latest View live

Vision Assistant FRC

$
0
0

Hi All

I am a new to labVIEW mentor for a FRC robotics team.

I am trying to learn to use Vision Assistant,  Looking for really simple examples.  Just getting started.

Found a series by Jim Chastain but unable to duplicate his results.

Trying to process images, Vision Assistant complains the it only works on 8 bit images.

The images I acquire are RGB 32 bit.  It has to be simple but has me frustrated.

 

Thanks in Advance

 


labview with sql

$
0
0

Gm all.. I am new to labview.. I have data in excel sheets which i have stored in sql by creating a database.. Now i need to extrace data directly from database and display on front panel using labview.. I have gone through the examples given but it shows to use access files(.udl).. is there any way that i can do this without using access files.. If anyone has done this.. please help me.. thanks in advance

P2P-streams: Physical meaning

$
0
0

Hi,

I am using P2P streams between USRP 2942R's and between a 2942R's and a FlexRIO 7975R. The Chassis is 1085 Gen2.

I would like to know the physical explanation of a P2P-stream. Also, since a P2P stream normally doesn't use memory, what is the meaning of the fifo's for the writer and reader and what does it mean when they 'overflow'?

Use NI 9870 under FPGA Interface Mode

$
0
0

Hi

 

I'm developing a project by NI cRIO 9024 and NI 9870 to implement the instrument control.

There is a power meter I can communicate with it by RS-232 and I've verified its function by notebook(Win 7 OS).

Then I'd like to use cRIO & NI 9870 to get the data from that power meter.

First, I did that work under Scan mode, and get the data successfully in the real time system.

(I don't why the broken wires is in the snippet, but it is surely run well in my computer)

20161027001.png

20161027003.png

 

Since I have to implement other function(such as PWM output, fan speed reading), and I have to implement my project under FPGA interface mode.

So I just deploy the chassis to FPGA interface mode and run the other program.

But I can't read any byte from the instrument, it confused me a lot.

20161027002.png20161027004.png

 

Since I can get data under Scan mode, I believe the hardware(cRIO, module), the cables, and the power meter function well.

Do I miss something to set or to configure?

I really do not know why I can get data by NI 9870 under FPGA interface mode.

folder list

$
0
0

Need a Labview program just to finish a small task.
got an array of string paths.

C:\MyPath\Folder_1
up to
C:\MyPath\Folder_255

The highest digits at the end of the folder name can be anything from 1 to 255.
Must do the following:
Need to make sure C:\MyPath exist.
Also,to go through each array element and get the Folder with the highest number at the end?.

LabVIEW Randomization

$
0
0

I was messing around with the Random Number function today and noticed that it seems to have abnormal distribution showing more "random" numbers generated toward the middle of the minimum and maximum of the range. What I expected to find was a fairly equal number of numbers spread among the four options (0,1,2,3). Instead, it appears that the extremities (0 & 3) appear about half as often as those closer to the middle (1 & 2).

 

Is this an artifact of the randomizer that I should expect to compensate for or am I doing something wrong?

 

asdf.PNG

 

Randomization.png

RS422 with myDAQ

$
0
0

Hi all,

 

I’m not quite sure if it is possible, but that is why I’m asking.

 

I’m in possession of a NI myDAQ and I want to read some serial communication. The protocol is RS422 so I have a TxD and RxD line and ground.
I want to use the Analog inputs of the myDAQ to readout the signals and use Labview to translate, but I have no idea how to do this.

 

Is there someone who already did this, or knows how to do this?

 

Best regards,

 

Dukel

 

 

Splitter moved event

$
0
0

I need to monitor movement of UI Splitter. It seems to be a simple task but...

 

Splitter has only conventional mouse events. But  "Mouse Up" is launched when clicking the splitter but is not launched when the splitter moved. Other mouse events behave similarly.

 

Panel Size event works well but launched two times when the splitter is moved. Why? Same new bounds are reported both times. I can filter out second event but is it right way?

 

Is there a "correct" way to watch movement of the splitter?

 

Thank you

 

I attach a simple test VI (LabVIEW 2015)


RS485 Communication - Parity Error

$
0
0

I have an requirement to communicate with RS485 (in house power system).


I'm using an NI USB RS485 cable. (We made a custom connector since the pinout in
the power system is different).

The system uses 9 bit mode and they are using stop bit as their 9th bit. The
purpose of the 9th bit is to verify the address (0 0r 1).

 

In my program I'm using the parity bit as my 9th bit, this writes the command to the system and when I read the bytes in port i'm getting a parity error.

 

I've searched through all the related forums and tried their solution but nothing worked for me.

 

 

Ismatec Reglo ICC calibration

$
0
0

Hello everybody,

 

I'm trying to integrate a Ismatec Reglo ICC peristaltic pump in LabView. 

Everything works fine (starting, stopping, etc.) except starting the calibration.

Does anyone have some experience with any Ismatec pump and the correct order of the commands which are needed to start the calibration?

 

The commands I used so far are

 

- set to volume (over time) mode (G)

- set calibration volume (xU)

- set calibration time (xW)

- set calibration orientation (xR)

- start calibration (xY)

 

every command is confirmed by "*" except the "start calibration" command which results in "-" and the error code 7001 (which is written in the low level diver, downloaded from the Ismatec homepage)

 

Thanks for your help!

using event structure in LabVIEW classes

$
0
0

Hi, 

 

I am new in using LabVIEW classes, so don't know that much how I can use them. 

 

In my main program I have clusters with five elements in each. The elements are two-state controls and in some clusters there are tri-state controls. The user will press the buttons (controls), and different things will happen. In my first program were I weren't using the classes, I had an event structure and the controls were event cases in the structure. 

 

Is it possible somehow to use an event case in one of the methods that is created in the classes, so as say it is not in the main program?

 

I attached two pictures: I wanted to have an event structure in servoTouchEvent (in left.tri.lvclass) which is a child. 

 

Let me know if my explanation is unclear.

 

Grateful for some help!

How much time to spend planning/defining how to architecture the CLD examn

$
0
0

Going through the sample examns..

 

How important is to plan on paper the cld problem? do you dedicate around 30 minutes or more?

 

 

Retrieving list of available values from IOName/IVILogicalName control

$
0
0

Is it possible to programmatically retrieve a list of all the available values from an IOName (or more specifically IVILogicalName in this case) control? I'm talking about the list of values which shows up when you click the drop-down menu arrow of the control. For example, if I set the control to NI-SCOPE (Select IVI Class->IviScope->niScope) the drop-down list only shows the names of scopes that are present (e.g. "PXI2Slot6"), including any "duplicate" sessions (e.g. "PXI2Slot6 (1)").

Example
I can get the currently selected value of the control easily enough but I'd like to get a list of all the available values. Is this possible? The values are right there in the control so surely there must be a way to access them.

My ultimate goal here is to find a way to retrieve all open IVI sessions and then close them. If there is an alternative way to achieve this, I'd be glad to hear it.

Some related posts I've found:
https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Close-all-open-IVI-sessions/td-p/1752560
https://forums.ni.com/t5/Digital-Multimeters-DMMs-and/What-is-the-proper-way-to-close-all-open-sessions-of-a-NI-PXI/td-p/3088523

Reset values to defult EXCEPT one

$
0
0

Hi All,

 

I am fully aware of the reinitiate functions, and usually just create a reference to the Vi and reset all value back to defuault using the method described here:-

 

http://digital.ni.com/public.nsf/allkb/08E7DDAE66A7D02C86256DDA00630E75

 

But i want to re-set all my indicators, but leave one user switched control alone (in a self test set up).

 

How would i go about doing this.

 

Thanks,

 

Richard.  

my built front panel is offset, how do I make display always the same, no scroll, no offset?

$
0
0

I want my front panel to show controls/indicators in the same position within the front-panel window as when I saved it.  I don't want them off to one side with a scrollbar.

 

I don't have other controls/indicators in the field of view that would mandate the scrollbar or offset.

 

Why is it doing this?  How do I make it stop?


Installing Multiple Xilinx Compilers

$
0
0

I am having some problems with Xilinx IP and Xilinx tools installed. Specifically, some example use older versions of the Xilinx IP, if I want to modify them, I get an error saying I need Xilinx x.x tools installed. Well I go to the NI site download the x.x tools and install. (On the add remove programs the new tools show up in NIs software, so I believe they installed correctly.)

 

After installation I still get the same error stating that I need Xilinx x.x tools installed. What am I missing here?

 

Thanks

mcduff

Mass saving files (vi, lvlib , lvclass, vit and ctl) to previous version (2015 to 2012)

$
0
0

I'm trying to save hundreds of vi's vit's ,ctl's , lvlibs and lvclass to previous versions and have found no easy way to do this. The first three (vi's , vit's and ctl's are easy to do and have been done, but i was wondering if there was a programatic way to do lvclass and lvlib as well. I've looked at previous versions and there doesnt seem to be a good way. Also all of these files are in vi.lib but can be moved out for the conversions.

Programmatically obtain all active PXI Trigger Routes

$
0
0

Hi,

 

Is there any way to read/obtain the list of all active trigger routes on pxi system, with names of trigger drivers and receivers.

 

Best Regards

Deepu Jacob

how do I sort cluster names?

$
0
0

I made my program, and the cluster names are in such an order that the cleanup makes a "wire hairball".

 

Capture.PNG

 

I would very much like to "clean up" and be able to re-order the names without touching them.  I know that the more times that I touch them AFTER my code is running, the more likely I am to break something that I already made work, and then have to fix it.  It is much more cost effective for my company to not have to pay me to make then fix my mistakes, especially if I can keep from making them in the first place.

 

Is there a cleanup that applies to "un-bundle by name"?

How to round a number to a specific value and not to a number of decimals

$
0
0

Hello,

I would like to round numbers following a grid.

Let's say I have a grid of 6 between 3 and 4 ( 3.0 3.2 3.4 3.6 3.8 4.0)

I would like to round to the nearest number of the grid, so if I choose 3.7125, it will be round to 3.8.

I found already in the forum how to round to  certain degree of decimal but not in my approach.

Do you know to force the rounding to the nearest of the grid.

I was thinking of a ramp up to make the grid then interpolate the number and use its index to round. But I am sure there is  a much easier way.

Thanks,

Zied

Viewing all 67123 articles
Browse latest View live


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