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

DMA FIFO - how do I get the value of "Number of Elements Per Write" inside FPGA application

$
0
0

I set the value of "Number of Elements Per Write" in Properties of DMA FIFO with respect to number of sensors connected to my cRIO. The value can be set in powers of two: 1, 2, 4 up to 32. The thing is that I when I change how many elements I "write during one write", I need the RT app to respond to it automatically and correctly, but I haven't found any way to get this value programatically inside the FPGA program. Now I must change this property in LV project and also in a constant in FPGA program. Is there any way to read that property programatically?

 

The only solution I can think of is to set up bunch of DMA FIFOs, each with different Number of elements per write, and use only one in a single application, but I think this is so bad in so many ways! (Compilation time is the biggest concern.)

 

Not to be confused with "Get Number of Elements to Write".

 

Thomas

 

 


LabVIEW OOP Self-Paced Training Question, Section 3-4

$
0
0

Hi All,

 

Does anyone have an example of the "Challenge" VI we are supposed to create in the OOP training, section 3-4, "Dynamic Dispatch Tester.vi:"

 

"Create a VI that builds an array of Sounds using Generate Tone, Generate Silence, and so on, and then dynamically dispatches Generate Waveforms.vi to create a single waveform graph that contains the sounds that you configured." "Save the VI as Dynamic Dispatch Tester.vi"

 

I cannot download any software through my company's firewall, so if you could just post an image of the block diagram, that would be helpful.

 

Thanks!

 

MathScript RT Module installing issue

$
0
0

Greetings!

I am a student and using LABView 2015 (64-bit). I am trying to install 2015 MathScript RT Module but it is showing error "No software will be installed or removed". Please guide me what is the issue and what could be the possible solution.

Cannot install LabVIEW Runtime Engine 2018 on Windows 10 pro v1809

$
0
0

Hi

 

I recently upgraded my PC and reinstalled Windows 10 pro.

After the reinstall, LabVIEW Runtime Engine 2018 (64-bit) f2 Patch fails instantly with the below error message. 

I have tried running the installer as administrator, with and without anti-virus enabled. 

I have also tried LVRTE 2018 (32-bit) f2 Patch.

I tried Creating an Error Log File for a Software Installation as was suggested in this thread, but that does not generate a log file, but still shows the below error

 

Does anyone have an idea what I can try next? 

 

BR 

Palle

 

RTE error.PNG

 

 

How to run conex-cc driver

$
0
0

I have downloaded the labview drivers for conex-cc, but I cannot run it. When I run the program of absolute move or execute started move, there is no error reported but the stage doesn't rotate.

Do I need to run run several programs at the same time or do some work previously? How can I make the stage rotate by the labview driver?

16-ch Simultaneous DAQ with NI-9213

$
0
0

Hi all,

First time poster, very new user to LabVIEW.  I've taken Core 1 & 2, but I have a long way to go with implementing LabVIEW still.

 

I'm currently struggling with a VI that will use NI-9213 to monitor 16 channels (all with type K thermocouples).  From browsing the forums and looking through examples, I've been able to get the VI to monitor 2 channels and plot them in real-time on an XY Graph.  Now, I'm trying to add a 3rd channel to the plot.  It's giving me errors every time I try to modify it to look at a 3rd channel, saying that the the clusters are different sizes.  I keep thinking that I have updated everything that I need to have, but I continually get this error.

 

Can anyone help steer me in the right direction, and hopefully help me understand how I can scale this up so that all 16 channels can be read?

myRIO Button-LED program not working on second run

$
0
0

Hello,

I recently started working with the myRIO and am trying to run basic LabVIEW codes on it, to get a hang of it. I made the following LabVIEW code and was able to run it successfully, but after closing the .vi file and reopening it, it gave me an error- "The current personality or target does not support this VI. Switch to another personality or change the current target." for the LED and Button.

Does someone know what I may be missing or doing wrong? I am a beginner in working with both myRIO and LabVIEW.

 

Any help is appreciated, thank you!

 

i have LabVIEW Error Code 3 Please Help Me

$
0
0

i have a LabVIEW program problem.

 

LabVIEW : Generic error.

An Error occurred loading VI  '  ***  '

LabVIEW Load error code 3 : Could not load front panel

 

This is VI, Which was noramally coding.. LabVIEW 2015

 

Please help me with my program

I heard there is no way in korea NI

i'd appreciate it if any master could help me...

 

 


ph monitoring

$
0
0

I am going to do my mini project on pH monitoring using lab view.May I get some suggestions how to proceed further.

webservice at windows start

$
0
0

Hi guys

 

Is it possible to make a labview webservice launchable at windows start? how?

 

thanks for your reply

Problems Measuring Frequency with MyRio

$
0
0

Hi All,

 

I am trying to control an engine dyno test stand with some simulation software via a MyRio - 1900, effectively hardware in the loop.

 

Via the MyRio, I want to send two 0-5 V signals to control the throttle position of the engine and torque applied by the dyno. This is controlled via shared variable from another piece of code and works fine.

 

However, I also need to read the speed of the engine. This will be a square wave pulse. I have followed examples online and written the attached code. The MyRio is currently connected to a function generator for testing. As you can see I have tried three ways to measure the frequency of the signal, and all were unsuccessful.

 

What is confusing me, is that I can clearly see the data on the graph, but neither the frequency or amplitude have been measured.

 

I read in some other threads about changing the sampling time, but I couldn't see in the block how to change this.

 

Any help would be greatly appreciated.

 

Cheers,

 

Pete.

Can labview simulate generating a moduleted signal? Such as GSM or CDMA.

$
0
0

Now I can get a GSM signal from SG, And I want to compare the signal from SG with the signal generated by Labview.

So I want to ask 'Can labview simulate generating a moduleted signal? '

LVOOP HAL Commonality Best Practice

$
0
0

Hi All,

 

Need some advice when it comes to HAL best practices.  I know the idea is to create parent methods with enough commonality so that different children/HW can inherit and use it.  However, I am starting to find myself running into situations where I am not sure is the best design route to take as different brands or models will have slightly different implementation or capabilities.

 

For example: I currently have a "DC Power Supply Parent" with 4 Children, NI-DC Power Supply, an Agilent, a Keithley, and a gWinstek. My parent implementation of "Enable Output" is just a T/F bool to determine whether to turn on the output regardless of the number of channels.  Between these 4 brands, they have 2 ways of implementing "Enable Output".  The Agilent and gWinstek's "Enable Output" function defined by their driver is simply a boolean T/F and enable all output channels while the NI and Keithley only turn on outputs by channel number.  This is making me revisit my parent "Enable Output" and wondering if anything should change due to some instruments requiring extra inputs.  Should I just keep the implementation as is and code the NI and Keithley to turn on all channels? Or should I change the parent to include the channel numbers, but the Agilent and gWinstek will do nothing with the channel number input and just keep on enabling all? 

 

Any perspectives on this?  I have a feeling it boils down to just seeing what the overall most common use-cases are going to be for these supplies and code around that...

 

Regards,

Mike

Reading from spread sheet into array

$
0
0

Hello everyone,

I am beginner in labview and at learning stage, i am using spreadsheet into array function as you can see in below picture 1, that i have attached. Actually i have 2 problems in this VI.

1- I am not getting first line of measured data into first row of array, for reference i have uploaded picture 2. And in array there is automatically generated {0 0 0 0}  at last row in array , your can see in pictures 2.

2- In picture 1 i have mentioned the location of problem 2, i just want to put number into array but i do not know how can i do. The technique that i have used in this VI is working but not perfectly, i mean to say when i press run button its creates thousand of  zeros in start of 1D  array before getting my actual data. How can i fix this issue. please guide me i will be grateful to you.         

Save Time from a waveformchart

$
0
0

Hello everyone,

 

I want to save the timestamp of my measurements. With my actuall programm I can save the Y data (Stromstärke) of the waveformchart (see apendix) with a spreadsheet file.  How can I save the equivalent X data (Time) in the same file, so I can get the following form "Stromstärke, Time", saved for each measurement?

 

Thanks for any Help!

 

Cheers

Jay


change value in XML file

$
0
0

HI

I have a project which request to read out the parameter from XML file,for read out the parameter value is not a problem but the problem is how to write back the changed value to XML file

Any ideas or samples

Output Continuous Analog Signal with NI9263 and cRIO only

$
0
0

Dear Forum Members, 

 

I have made a wave generator which is able to create a sine or any wave according to my requirements. Hence I chop a part of the sin wave generated and convoluted it with a unit step function to cut it off.  below is it's output. 

2.JPGCapture.JPG

 

I have a NI 9263 (analog output) module installed to cRIO. (not to DAQ) Is there a way that I can output the waveform in terms of voltages using available devices? I have refered a lot of examples in internet and labview help vis. But all of them are either using DAQ or DAQ assistant. 

Or am I doing something wrong here? 

 

Thank you very much. 

best, 

Shane.

Secure File Data

$
0
0

So I am trying to make a read only format of results data. Currently the test data is saved as a text file but I want to prevent users from modifying the file. I am running into an issue where I can seem to create and save the data file so it is unmodifiable. I've messed around with the set file permissions vi but keep running into not being able to save the data.

Channel calibration with LabVIEW NXG

$
0
0

How can I perform a channel calibration with LabVIEW NXG and store the calibration result for further measurement correction?

I have defined 4 channels with thermocouples on NI9211 module.

Device calibration has been done recently as the module is new

My thermocouples exhibition variations, individual calibration with a dry well would be useful

Unable to load shared library 'EposCmd.dll' on sbRIO 9267

$
0
0

Hello.

 

I want to run Maxon EPOS4 driver and motors using sbRIO 9627 board. I downloaded example codes from the maxon's website. The connections of the driver and motor is done. The driver is connected to sbRIO via RS232 serial communication cable. 

 

I am running the Maxon Epos.lvproj downloaded from the site. In this project, I added sbRIO as a new target device. Then dragged one of the examples (Example_MoveWithVelocity.vi) under the sbRIO target (not under its fpga). When I ran this example, I got an error: 

"LabVIEW: Failed to load shared library EposCmd.dll:_VCS_GetErrorInfo@12:C . Ensure that the library is present on the RT target. Use either MAX to install NI software or FTP to transfer custom libraries to the RT target."

 

After getting this error, I added the EposCmd.dll file into the sbRIO using two different methods: 

1). Using Ni max and right-clicking the sbRIO, a file transfer option comes up. I opened it and added the EposCmd.dll file to /home/lvuser/natinst/bin location inside sbRIO 9627.

 

2). In this method, I used the build specification feature under the sbRIO tree in the LabVIEW project file. I tried to make a .rtexe file in the same location of sbRIO.

 

Even after using both the above solutions, I am getting the same error when running the same example code (Example_MOveWithVelocity)

 

Therefore, it would be a great help if anyone could tell me what I missed and what is the solution to resolve the error.

 

The following files are attached below:

a). screenshot of the error

b). Maxon Epos.lvproj file with all the dependencies

c). screenshot showing that the missing 'EposCmd.dll' was added inside the real-time target directory (herein, the sbRIO 9627)  

 

Thanks in Advance!!

Viewing all 69241 articles
Browse latest View live


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