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

Program Running in VI but not in build

$
0
0

Hi Everyone,

 

In my VI, my program is running fine.  I am able to control an LXI XG 600-2.6 DC power supply through the LAN.  My program specifies a voltage to output and it measures the voltage current.  It can also update the voltage as well and turn it off.

 

However, if I run the program in my build, it will do all of the above accept update the voltage.  I've built the executable with the debugger, and as far as I can tell, all the commands are being sent to power supply during the update state.

 

Has anyone else had similar problem to this, or have any suggestions?


labview project

$
0
0

 make a program that takes 5 numbers between 0 and 50 and do the following:

1-the program insert the numbers in a array

2- the program stores the numbers from lowest to highest

3-the program calculates the minimum, maximum and mean value

4-if the mean value is below 45 , the program display '' average below 45'', otherwise program display ''average above 70''

Custom name to save a report in word

$
0
0

Hello!

I want to make a report in word but when i click on generate report, it should ask the destination to save it and then pops up the display of report in word with the name I specified.new_report is a template with a bookmark.See the untitled.vi.

Method of translation two language

$
0
0

Hello!

Method of translation question, i use two language in my Vi. 

Sometimes the time of language change takes less than a second, but most often it's about ten seconds. In this case, the clock stops. Is Gremlin living in my computer?
Any ideas?
Thank you!!!

192 nos of Waveform Chart on front panel showing Not enough Labview Memory

$
0
0

Hello Everyone

I am using 192 nos of Waveform charts on front panel place over tab control 16 charts on each page total pages are 12 of tab control.

Each Waveform Chart contain  5 Signals.

after placing all charts on front panel it gives error Not Enough Memory to compile.

Labview Proyect Documentation

$
0
0

Hello,
I would like to know a good Documnetacion of a project in Labview that is recently implemented to be able to base some example and complete the existing documentation in the project of my company.

I hope you can help me.

Thanks

Conversion of whole numbers in their digital representation.

$
0
0

 Good, I would like to know how to convert a number between 0 and 10, in its 8-bit digital representation (using the algorithm of successive approximations and with loop for or while).

 

I attach an example image with 4 bits.

I hope you can help me.

Web Services on cRIO-9068

$
0
0

I am setting up web services on a cRIO-9068 following the guidance here:

 

https://forums.ni.com/t5/LabVIEW-Web-Development/Getting-Started-Series-Hosting-Web-Service-on-a-Real-Time/ta-p/3512259

 

However, in Web Service properties, the HTTP Method VI Settings section with the Web Services (URL Mapping / Output Type / Security / Advanced tabs is disabled/greyed out. Does the web service need to be enabled elsewhere for this to appear? My files show up on the site map with each method and URL mapping listed, just not within.

 

Thanks


Count Up/Down timer

$
0
0

Hi, 

I'm new to labview and i would greatly appreciate any help that can be given. 

 

Basically, i'm trying to create a countdown/countup timer using elapsed timer vi. However, after using shift registers to store my previous data, i came to realized that my output of the timer isnt the exact speed of 0.05s per iteration and that affects my overall data. I have a feeling is the wrong usage of shift registers but i'm not sure what or how to fix this. Any help please? 

 

Lost student,

Jarrold 

saving data and measuring time

$
0
0

Hello Everyone,

I am currently working on a sound acqusition project using a GRAS 46AM  Microphone and NI PXI- 4462 Card. I can't save data to a TXT File and in Excel I can't save also because it's over the maximum number of rows. I need some ideas on how to save data to a TXT File, also I need to work with microseconds because I am sampling at 80 KHz. I need the data saved as TXT/Excel because I need to use it in MATLAB.

Thank you!

Control values with case structure in FPGA

$
0
0

I am using NI PXIe-1062Q Chasis (connected to a Dell workstation Precision 1700) with the following modules :

1. NI PXIe-8381

2. NI PXI 7851 R

3. NI PXIe-6738

4. NI PXIe-6535

In my workstation, I have plugged in the PCIe-8381 module for connecting NI PXIe-8381 to the computer into a PCI-E Gen 3 x16 slot. I want to execute a sequence of operations from NI PXI 7851 R FPGA card using an FPGA VI controlled from a Non-FPGA Host VI. For this, I write the operations inside a case structure in my FPGA VI. The user will give the sequence of operations by simply typing the array of numeric values corresponding to various operations of the case structure in the order he/she wants. This array is transferred from the Host to FPGA VI by a DMA FIFO. Now here is my question :

Q.1. Suppose I have an FPGA Wait function (with a control value passed from Host VI) as a particular case of the case structure in FPGA VI. I want the user to be able to specify different control values for the same Wait function case of the FPGA VI i.e. suppose the wait function case is no. "2". So In my FIFO whenever I say "2" I should also tell the control value for this particular occurrence of the "case 2". Next time when again "2" occurs in the FIFO it will have its own control value which might be different from that of earlier "2". Is there a simple way of passing the control values each time the particular case is called from the Host? Right now I can specify one wait time control value in the Host which passes to FPGA VI say 1 μs. If I want to wait for 100 μs I have to type "2" 100 times in FIFO. But this is not user-friendly and might not be a solution always. Here it works because time simply adds.

This method would help when I scale the FPGA VI later adding several cases some of which might have control values coming from Host. Whenever the Host calls these particular cases, it should also tell all the control values required by a particular case for this single occurrence. Later on, if this case is called again in the FIFO, a fresh set of control values will be supplied by the Host VI.

I am attaching my Host and FPGA VIs and their screen-shots. I tried to switch ON a TTL signal in one channel of Connector 0 of 7851R. After some wait time  (1 μs), I switch off the TTL signal in the channel (FIFO array sequence from the host is: 1,2,3). I see a nice TTL pulse on my oscilloscope but the above issue remains to be resolved.Top_level_Non_FPGA_VI_using_FPGA_FIFO_VITop_level_Non_FPGA_VI_using_FPGA_FIFO_VI

 

FPGA_VI_using_FIFOFPGA_VI_using_FIFO

 

Plotting multiple inputs on XY graph with timestamp

$
0
0

I am trying to plot two sets of data on an XY plot with a timestamp.  I am having issues getting it to run continuously.  I am attaching my VI.  Any help is greatly appreciated.

How can I ensure I am accessing the SD card on cRIO linux RT and not a USB drives

$
0
0

Hi. I have a cRIO RT that I run a program on. In my program I log some data to an SD card. The problem is, the cRIO seems to name the device inserted first as U, then the next inserted device as V etc. I would like to write to an SD card but I am not sure of a way to read the name of the SD card.

 

 

Is there a way I can ensure I will always be writing to the SD card? My program currently reads the U drive, but this depends on what is inserted first (USB or SD card) so it isn't consistent.

 

Thanks!

Split a 3D array into 3 1D arrays

$
0
0

Hi all,

 

I'm trying to read a text file here and output the columns as three 1D arrays. Below is my program and the text file that I read. I was able to read it as a 3D array but unable to go on from there. The resulting arrays are three 2D arrays. Could someone help me please? 

 

Thank you.

 

Converting to Producer/Consumer Loop

$
0
0

Hello,

I am hoping I could get some feedback on a project I'm working on. In short, we are using a DAQ assistant to obtain. The thing with our project is that it is acquiring a lot of data. The attached image is what we are currently doing at the moment. Our end goal is to take the numbers from the DAQ, sample compress it so that we don't have too much data, then average those numbers every X minutes. We just found out that possibly using the producer/consumer loops can be beneficial for our large data. The thing is, I'm just not sure how to go about it. We have lots of components in our coding that needs to be taken into consideration, would those all be going into the producer loop as well? Since the only thing we would want in the consumer loop is from the sample compression to the write to measurement file?

 

Any help/advice would be extremely helpful!

 

Thank you! 


LabVIEW calling GT power dll

$
0
0

Hi all, I don't know whether here is the appropriate forum to ask about this. I encountered some problem when I tried to call GT power dll from LabVIEW:

"FAIL: CoSimInterface parts are not allowed with a GTSUITE license."

Error encountered in: Data Storage Setting.

 

Anyone encountered this before?

 

Enviorment:

LV 2017

Unable to run the Multirecord Acquisition (NI PXIe 5170R/5171R) code on FPGA

$
0
0

Hi,

 

I am unable to run the  'Multirecord Acquisition (NI PXIe 5170R/5171R)' from the example section. I am using a NI PXIe-1082 chassis with a PXIe-5170R oscilloscope module , after running the code there seems to be some issue with the 'DataClock' which is being used in the single cycle timed loop . I get the attached error message on compiling the code on the FPGA.  I guess I am missing on some settings to be configured. Any help on this would be highly appreciated .

 

Thanks.

 

Regards

vehicle speed detection

$
0
0

I want to send myRIO along with gps in an vehicle and display the speed information of the vehicle in a remote system web browser.I have now used my phone's WiFi and had published the front panel of the VI in the same system web  browser.When I deployed my VI as a standalone application,only the pps signal blinks in myRIO and there was no updated values in myRIO.When myRIO is used as a standalone application,will the front panel values be changed or not?

Read tab-delimited text file and count the number of occurrences within specific dates

$
0
0

I have a tab-delimited text file, with Date, Time & Status(Pass/Fail) columns.

I need to count the number of occurrences of PASS or FAIL status items within the selected dates.

 

So, if I select Date from 01/01/2018 to 01/02/2018, then I should get the count of all the PASS & FAIL status within these dates.

 

I am using Labview version 17(Eval).

 

how to capture number from image?

$
0
0

Hello All

 

i want to take picture from camera and then capture its number.

which module of NI do i need and how can i do that?

any idea?

 

Thanks,

Asif 

Viewing all 67294 articles
Browse latest View live


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