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

how to compile verilog hdl code into .ngc file

$
0
0

Hii,

 

i have a basic question...how to compile verilog hdl code into .ngc file.....i already look over the discussion but still didn't found the answer for my question.i'm new in this area... can anyone help me?

 

 

Thanks.

Lena


About USRP's reference input and LED"E" on front panel

$
0
0

Hi, I have 2 questions.

 

I'm just trying to recieve continuous wave(CW) from signal generator by USRP 2920 and LabVIEW program(attachement: demodulator.vi) now.

But it has long periodical "noise" as shown in fig.1 .(attachement: fig1.png)

I'm thinking that the reason where such noise come from is the low-precision of USRP 2920's LO.

Is this right? First question is this. 

 

So, I input reference signal at 10MHz from same signal generator in order to lock USRP's LO.

But even if I input such reference signal to USRP, above mentioned noise is not improved.

In addition, while inputting the ref signal, its LED"E" on the front panel do not blink.

And while running my program, it turns on GREEN light WITHOUT reference signal.

After running my program, it blinks by changing the speed of blinkng.

So can not make sure that the reference signal is actually locking the LO.

Is this correct behavior? If not, how can I correct it?

 

Thank you, 

  Yuki

Quick Q from a begginer about "For loop"

$
0
0

Hi guys

 

I am trying to learn and practice For loop, I was doing an example on that topic "Create a VI to add „5‟ to a number if it is greater than ‟10‟, else add ‟10‟."

 

I done everything except one thing I couldnt figure out the "Add Array Elements Function", something in the picture comes before it, I dont it with out it and it works, but does it matter if I dont use it? and where can I find that Pallete? and whats its job?

 

 

I uploaded a picture of the example and circuled the uknown Pallete

 

 

 

Mash

 

 

ramp response

$
0
0

How is the ramp & sinusoidal response for a second order function plotted in labview?

Models for step and impulse functions are present in the control design and simulation module but not for ramp and sinusoidal functions. Please help. 

 

Thanks!

cRIO 9067 and Bernecker-Rainer EtherCAT slave

$
0
0

Hi, I'm trying to configure cRIO NI 9067 + EtherCAT slave from B&R: X20BC00G3 + I/O modules.

 

I've set the second port of cRIO to EtherCAT. I've imported B&R EtherCAT slave ESI/XML file. I made an automatic slave detection. However I can see only slave module, no any I/O module behind slave (see screenshot). What I did wrong ?

 

Labview 2014 (f1 updates), drivers: August 2014 f1

 

XML file enclosed.

 

EtherCAT slave manual:

Manual X20BC00G3

 

Screen.png

Understanding labview fpga using sbRIO

$
0
0

Hi,

 

I'm a newbie to labview fpga and sbRIO. I am trying to acquire analog data by varying a potentiometer. I have done this using NI USB 6008, but how do you acquire using sbRIO? What code do I need to write in the fpga target and RT target? Is the actual code (code used while using NI 6008) written on the RT target?

Should I just add the analog input nodes on the fpga target?

Help!

Arbitrary Waveform

$
0
0

Hi Forum,

 

would like to use th NI PXI 6363 AO to simulate a Arbitary PWM signal signal. I see that i could use the Waveform Generator vi. in Labview, that would allow me to change the duty cycle, amplitude and frequency but I also would like to change rising time, or falling time may also add noise to the function. What would be the best way to do this in Labview? Has someone experience using arbitarywaveforms?

 

Thanks and Best,

Martin

NI Modbus Lib in LabVIEW 2014

$
0
0

Does Anyone see a Problem with Using NI Modbus Lib in Labview 2014 is meant for labVIEW version 7.1-8.6.  NI Directed me this way instead of the DCS Module since I am only using Modbus communication and that is just a very small part of the Module.  It installed and shows up on the user pallets just fine and wires up the way you would except it to:

nimodbus.png

However when I run the program I time out in the read register vi.  the example in the library does as well so I am at a loss as to what might be causing this issue. 


Change output buffer size without recreating task

$
0
0

Hello,

 

I am using DAQmx to do hardware timed, buffered digital output. My problem is that I want to have the ability to stop the task, add samples, then restart the task. However, when I try this I get an error because the buffer is too small. I tried using DAQmx Configure Output Buffer.vi to change the buffer size but it does not solve the problem. Apparently the buffer size is decided when DAQmx Write.vi runs the first time and the only way to change it is to clear the task and recreate it. I found a workaround which is simply to do unbuffered output, but I'm not sure if this is a good idea. So my question is: which is the lesser of two evils, repeatedly clearing and recreating the task or doing unbuffered output? Or is there some trick I can use to change the buffer size after DAQmx Write.vi has run without clearing and recreating the task?

 

Thanks

Performance of Modbus using DSC Shared Variables

$
0
0

   I'm fairly new at using Modbus with LabVIEW.  Out of the roughly dozen tools and API's that can be used, for one project I'm working on I decided to try using Shared Variables aliased to Modbus registers in the project, which is a DSC tool.  It seemed like a clever way to go.  I've used Shared Variables in the past, though, and am aware of some of the issues surrounding them, especially when the number of them begins to increase.  I'll only have about 120 variables, so I don't think it will be too bad, but I'm beginning to be a bit concerned...

   The way I started doing this was to create a new shared variable for every data point.  What I've noticed since then is that there is a mechanism for addressing multiple registers at once using an array of values.  (Unfortunately, even if I wanted to use the array method, I probably couldn't.  The Modbus points I am interfacing to are for a custom device, and the programmer didn't bother using consecutive registers...)  But in any case, I was wondering what the performance issues might be surrounding this API.

    I'm guessing that:
1) All the caveates of shared variables apply.  These really are shared variables, it's only that DSC taught the SV Engine how to go read them.  Is that right?

   And I'm wondering:

2) Is there any performance improvement for reading an array of consecutive variables rather than reading each variable individually?

3) Are there any performance issues above what shared variables normally have, when using Modbus specifically?  (E.g. how often can you read a few hundred Modbus points from the same device?)

 

Thanks,

    DaveT

Problem modifying FPGA code in an Application Builder-based system

$
0
0

I've inherited a working test system which uses LabVIEW FPGA, LabVIEW, Application Builder, and third party tools.  The FPGA module (a FlexRIO) is responsible for generating test signals to a DUT and acquiring DUT output data.  The host LabVIEW code controls the FlexRIO and acquires the test data.  Application Builder is used to convert the host LabVIEW code to a Windows DLL so that it can be in turn controlled by higher level data analysis software running on Windows.

 

All of this currently works, and we're using it on a daily basis to test production devices.

 

We need to modify the FPGA operation to change the way the tests operate.  We've modified the the FPGA VI to operate as we need it to and rebuilt the FPGA code (resulting in a new bit file), but subsequent runs of the test stack do not show the change to the operation of the FPGA code (the signals it is generating look exactly the same as in the original, unmodified, VI).  We've tried renaming, deleting, and moving the bit file, but operation of the system is always exactly the same, even when the bit file is named differently or not located in the expected directory.  We can't seem to affect the behavior we get out of the FPGA.  It seems like we're not rebuilding something correctly, or that the system somehow has a copy of the old bit file stored away some place that it's using instead of the desired bit file.

 

We've verified that the newly created bit file is different than the original bit file, so it appears that the FPGA build process is succeeeding.  I see no errors from LabVIEW when I build the FPGA code.

 

Does a DLL-ized version of LabVIEW host code operate the same as the same VI run from within the LabVIEW environment?  When the DLL loads the FlexRIO, does it do so from the same referenced file path (I have the "Open FPGA VI Reference" properties set to use the bitfile, and the "Run the FPGA VI" checkbox is checked).  We've power-cycled the host PXIe chassis between software runs to make sure the configuration memory in the FlexRIO is cleared.

 

It seems highly suspicious that we see the FPGA come up and run even when the bit file has been renamed or moved from the directory indicated in the "Open FPGA VI Reference".  I would think that the DLL would attempt to open that file, fail to find it, and trip some sort of error dialog.  But this doesn't occur, the FPGA gets loaded normally, and the test system operates as if nothing had been touched.

 

Previous developers were able to make this build process work, but it seems we're missing some critical step needed to actually update the code that ends up running on the FPGA.

 

The system is LabVIEW 2012.

write to measurement file resets to 1904

$
0
0

LV 2014

Windows 7 Professional

64 bit OS

 

The first run of this vi creates an excel file that is time stamped correctly.

The second and subsequent runs, the time stamp is reset to 1/1/1904 00:00:00.000.

 

When I click the state 1 button, the USB DAQ's measure temp and voltage. Some calculations happen. 

The data is sent to state 2 via local variables. 

Write to Meas File makes an excel file. Settings as shown in picture. In advanced settings in Write to Meas File, absolute time is checked. 

 

Can you help me get back to the future? 

 

 

vi saved as Main 2014 and 2013 respectively. 

 

using modbus tcp/ip to control vfd speed

$
0
0

Hi, I'm brand new to Modbus and fairly new to LabVIEW. I do not have any code constructed yet, so I'm posting to here so that hopefully I can get led in the right direction. I have downloaded the free modbus library because after explaining to NI what I needed, they told me that this would give me enough functionality. I am trying to read the vfd frequency and display it on my front panel, as well as be able to adjust the frequency of the vfd through the front panel. I'm sure that this is a fairly simple and straightforward solution, but since I am brand new to modbus, I really am not sure what values I need to get in order to make this happen. I'm assuming that I need to initialize a tcp master, but what values do I need to feed it so that it can read anything from my vfd? I have an ABB ACS355 VFD with a FENA-01 ethernet adapter. I have the manuals for both and I see lots of parameters and numbers but I don't know how to make sense of them. Are there any keywords I should be looking for in these manuals? Sorry for posting such a general question but I really don't know how to begin this properly. Thanks in advance for any help!

Programing automatic flight in XPlane

$
0
0

Dear all,

I need to know how to program an automatic flightin XPlane 10 using Labview 12. Whether using XPlane FMS or other method I would like to use real time defined waypoints and insert them into XPlane and make it fly through them.

I thank in advance.

view open references

$
0
0

Hi,

 

Are there any NI or third party tools that show open application, vi, control, etc. references? There are a few times when I forget to close a reference and my built application will not close but debugging is painful sometimes.

 

Thanks!


Select all (ctrl+a) doesn't work in Labview controls

$
0
0

Hi,

 

Does the standard select all (ctrl+a) keyboard shortcut does not work in NI Labview software or any Labview application? Or am I just being a dummy...

 

I can understand if you are in FP/BD edit mode you want select all (ctrl+a) to select all the controls not the content of the control; but in run mode it should select the contents of the active control or indicator.

 

Thanks!

Error 10000 at invoke node

$
0
0

There is an Error 10000 happened at invoke node in one of my subvi. Please see attached snapshot of the error message.

This program(VI) has run for one month, and yesterday  this error happened first time.  After I stopped the VI, and ran it  again, there was no error anymore.

 

Can anybody tell me possible causes?  Thanks.

 

WT

LV2013SP1

Why does my UART Channel selection not say (ASRL1:: INSTR) after the channel?

$
0
0

I have noticed on the youtube demo that the UART configuration screen has (ASRL1::INSTR) after A/UART in the channel box.  My UART configuration box only has A/UART ( ), with nothing in the parenthesis.  I think that is causing my LCD display to not work properly.  Can anyone tell me if I have failed to configure something properly?

 

Thank you!

synchronised signals

$
0
0

Hi,

 

Can anyone please help me how to make two synchronised signals?

 

I have a PCIe6351 card and am going to make two triangle signals (with different amplitudes but the same frequency) with its two outputs. I can make the signals but can not make them synchronised (the start point of each signal is different).

 

Any help will be appreciated,

S

Error out: VISA write

$
0
0

(What I'm trying to do is, scan the laser frequency, and use power meter to read the power of each frequency).

the Prologix GPIB-USB is connected with an Anritsu power meter ML9001A.

The Laview code of power meter is downloaded from Anritsu website. I put the code of laser scan and powermter_ReadMeasurement together.  However, there is Error Out in VISA write every time. 

 

 

 

PM.png

explain error.png

 

 

Then I guess maybe I need to initialize the power meter. So I added VISA open and serial port configure. but there is still error out.

PM_1.png

error_1.png

 

 

Then I connected the Prologix company. they said:

Prologix controllers are compatible with the Anristu meter. However they are not compatible with LabVIEW programs  developed for controllers from other vendors. Bottom line is that Prologix controllers are not drop-in replacements for NI or Agilent controllers and any LabVIEW programs or drivers (VI) written for those controllers will not be compatible with our product. They will have to rewrite the programs.

Please see following frequently asked questions regarding LabVIEW compatibility:

 

http://prologix.biz/gpib-usb-6.0-faq.html#40

http://prologix.biz/gpib-usb-6.0-faq.html#50

http://prologix.biz/gpib-usb-6.0-faq.html#70

 

 

 

The question is, how to talk to this power meter using Prologix GPIB? Thanks!

 

 

 

Viewing all 66844 articles
Browse latest View live


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