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

How to Interleaved Data when Transfering a Varying Number of Channels through a DMA FIFO to FPGA

$
0
0

Hello,I am trying to send Shared Variables of EtherCAT slave via DMA FIFO to the FPGA from an RT. The program is create an array of values for each Shared Variables on the RT. But I do not known how to receiving and processing the elements on the FPGA? I want to extract original value for every channel then arithmetic processing. 20190407_093153.jpg20190407_091034.jpg

 

 

 

I am working with Labview 2018 

Any help would be greatly appreciated.

sending Data to server

$
0
0

I have created a Vi and now i want to publish that data  to server which i acquired from the sensors. to the server. So, that i can use that value to control a device using IOT technology. How can i do this? 

help me with this project .. im new

$
0
0

I need a help with this project please... a ready VI will be very helpful 

 

Build a  code that will allow a user to control various devices commonly found in a house (i.e.,
lamps, heaters…). The system will control the following external devices:
 Lights: simulated by a  lamp
 Cooling system: simulated by a  DC Fan
The process starts by asking the user to input a username and password in order to access the system.
The user uses the keypad embedded on the screen to input them. If the username/password are incorrect,
the system will generate a notification (i.e., buzzer or Red LED connected externally to the ELVIS board)
and a warning message will be displayed on the screen.
If the username/password are correct, the user will gain access to the system. At this point, new controls
and indicators will appear on the screen. These controls and indicators will allow the user to:
 Set the temperature of the room (control)
 Display the current room temperature (indicator)
 Display the current time (indicator)
 Turn on and off the lights manually (control)
 Indicate whether the lights are on or off (indicator)
The system can automatically control the external devices:
 If the temperature exceeds the reference temperature set by the user, the fan turns on.
 If the sensor detects any ambient light, the lights of the room will turn off.
 The lights of the room should turn on automatically each day at 7:00 pm and turn off at 11:00 pm.

Synchronizing clocks on NI-5785

$
0
0

I have a PXIe-5785 IO module in a PXIe-1082 chassis. The FPGA target in my labview project has an 80MHz top level clock and the IO-socket has a 200MHz data clock.


I have two single cycle timed loops running in parallel:
Loop 1 is running on a 100MHz clock derived from the 80MHz top level clock.
Loop 2 is running on the 200MHz data clock (it has to use the data clock to be able to generate analog output).

 

It appears that loop 2 is running a little more than twice every time loop 1 runs. This causes problems as loop 1 is producing data and loop 2 is consuming it, so after a while loop 2 will have no data to process for a cycle.


How can I synchronize my loops so that they do not have this clock drift? I suppose they should run with clocks derived from the same base?

 

I have found some documentation about clock selection for similar adapter modules (like this: http://www.ni.com/documentation/en/transceiver-adapter-module-for-flexrio/latest/ni-5782/5782-single-sample-clip/) that has 'user command' that can be used to change 'User Data Clock Settings'. For the 5785 I can't find anything similar.

GPS

$
0
0

Hiiii,

i would configuring the software for GPS synchronization as for below mentioned steps (in figure 1).but i could not geting NI PXI-6682(H) drive in resource name block, even i installed PXI platform service version 18.5

 

could you please tell me how to get that drive?. 

gps

$
0
0

hiiii,

i installed NI MAX and PXI platform services drives along with labview 2017(32 bit) version and my laptop OS is windows 8.1.

 

while running  set time reference program following errors are appearing on the screen can you please tell me why it's happening?

 

when opening NI MAX following software versions  are showing in software icon(figure 4 in attached files) and in devices and interface icon PXI not showing.

 

Automatic change output values to USB-6009

$
0
0

Hi, 

I am using the USB-6009 to control a motor. I am able to set 1 output value, but in my case I will need to set up 2 output values which automatically are able to work alternately ... first value to work for 2 seconds then the other value works  for 2 seconds. Can anyone kindly help me with this?

 

timestamp

$
0
0

is it possible to store the sampled time instants data including milliseconds while using simulate signal?


Peak Detection

$
0
0

Hello, I would like to develop a software to detect peak. I've tried the peak detector but the peak amplitude and the location is not accurate, and the accuracy is a very important info for me. Therefore, i compile a code using Array Max & Min but there is a few problem:

1. It can only detect 2 peaks amplitudes and locations for now where in my case i may want to detect up to 5 peaks

2. The first peak must be higher than the second peak in order to get detected, but that is not necessary in my case.

I've attach my VI and saved my result as the default, hope u guys can help me out, thank you in advance.

Write data into a spreadsheet

$
0
0

Hi!

 

I'm new on labview and I've created a project that measures temperature and water level. I want the data (temperature and water level) to be saved into a spreadsheet. I've attached the project.

 

Thank you for your help.

Vertical stitching

$
0
0

I have a modified a  horizontal stitching program to vertical stiching. But I am not getting desired output.

Can you help me with it?

Thanks

Add single value along with data to spreadsheet file

$
0
0

Hello,

 

I am saving a 2D data to a spreadsheet file (2 columns of values), how can I save one single extra value to the file (I tried 1 element 3rd column but wasn't successful). The single value is result calculated from the large data. Idk if my task is as specific but couldn't find any clues.

check if entry in numeric array is empty

$
0
0

I have a numeric array (i32) that gets data inserted into it as the program is running.  I am looking for a way to determine if a specific index in that numeric array has been populated yet.  In other words, I need to determine if an index in a numeric array is empty.  Index array is close to what I need, but if the indexed entry in the array is empty, it will return 0 (the default value for this numeric array), which is a potential valid data entry for my numeric array, and therefore is not sufficient to check if the indexed result was originally empty or 0.

 

Any help on this is appreciated.

Modbus RTU over UDP/IP

$
0
0

I am trying to communicate with a device over Modbus UDP/IP. Here is some of the information I am given from the manufacturer:

 - The module (server) will automatically open UDP port 2001 for receiving data from the client

 - The client in turn must open UDP port 2000 to receive data from the module.

        - This means I need to keep port 2000 open on my machine with LabVIEW trying to access the device?

 - The modbus data packed is wrapped inside of a UDP datagram before being sent over the network.

        - From my understanding, this is just saying its encapsulating the standard serial Modbus RTU frame into a UDP?

 - I am unable to ping the IP address that I have set on the device ( can you ping a UDP address?)

 

I've tried using the example simple UDP as well as some modbus example. I'm not sure how to begin this. I've also created a static IP on the device using their HMI.

 

 

Question about how to operate two Rx on one channel in USRP-X310

$
0
0

Hi. I am trying to receive a signal by using USRP-X310 as Rx stage, but I am trying to use 4 antennas to get a more sharp signal.

In LabVIEW, I've done two active antennas in the USRP property, putting Rx1 and Rx2 at once, or two more properties to put two active antennas individually,

KakaoTalk_20190408_155149321.jpg
On the device, only the Rx2 diode lights up. 

 

The code was written roughly this way

KakaoTalk_20190408_155521415.png

If both Rx2 lights up and Rx2 lights up, I thought that both Rx1 and Rx2 would work. I set Rx1 in Ch0 and Rx2 in Ch1 as active antennas, but Rx1 and Rx2 came on separately.

 

How can I use both Rx1 and Rx2 in LabVIEW? Answers I'll wait. Thank you.


エクセルの別シートへの保存方法について

$
0
0

Labview初心者なのですが、解決のためのアドバイスをお願いいたします。

現在、CSVファイルで保存されたデータの処理を検討しております。このファイルには複数チャンネルのデータが含まれており、チャンネル毎に別シートにシートを分けて保存し直していきたいのですが、Labviewを使って別シートにデータを保存することは可能なのでしょうか?

 

アドバイスをお願いいたします。

UDP write

$
0
0

Hi 

I use a PXIe-8821 CPU in RT. Labview 2016.

I send data using UDP write function. When i disconnect / reconnect the Ethernet cable it seems the UDP write function hangs 1 or 2 seconds. I tried to change the timeout of the UDP write function (i tried differents values without success). It seems this value is not taken into account.

Why does it hangs when i reconnect the cable ? 

You will find the example enclosed...

 

Trouble with latency of FFT VI in SCTL on FPGA

$
0
0

I've written a VI that reads in a signal at 2048 Hz and sends it to a SCTL to filter and calculate the FFT with size 8192. 

Between the filter is a buffer in the form of a VI-defined FIFO that stores the filtered values. So once it's filled, it sends 8191 input values from the past to the FFT and then the 8192nd input value is the latest value from the input signal. 

The FFT has a latency of 20534, but instead of the FFT starting to output a minimum of 20534 ticks after the first input value of the frame, it outputs only after receiving 20534 valid inputs. This means that it outputs the first frame only after receiving 8192 valid input from the first input, 8192 valid inputs of the 2nd frame and an additional 4150 valid inputs of the 3rd frame. This also means that if I only send it 8192 valid inputs (the size of the FFT), it never outputs. It just continues waiting for the additional valid inputs.

Can any one help me with this? Included is my VI as well as a image explaining the timing. 

Select multiple IO type in DACmx channel filter

$
0
0

Hi,

 

So I am using a NI cDAQ-9174 which has AO, AI, DO and DI cards.

 

I am creating a VI where the user should be able to select the channel(s) to output signals. Signal can be AO or DO 

 

Problem that I am having is that in the Filter Names, I cannot see how to select I/O type as AO and DO.

 

Basically is the dropdown for 'Output', I want to see all my AO and DO listed. 

 

Is there a way to achive this?

Help with Dynamically call VIs

$
0
0

Hi,
I have a problem with Dynamic Call VIs.
I need to call some vi tests from my main vi. My code works fine but when i build the project it doesn't work.
In my .exe, when i try to launch a test i get the error 1003.
My code is in the picture.
Someone can help me ?

Thank you !

 

 

Viewing all 68985 articles
Browse latest View live


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