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

Can I use responsive web design in LabVIEW NXG?

$
0
0

Hello everyone.

 

I'm designing a web site in LabVIEW NXG and I want the web site to display properly on different device. Can I use responsive web design to solve this problem or should I create two WebVIs for desktop version and mobile version. What is your suggestion? 

 

Thank you in advance. Cat Happy


how to read can message using 9853 and process.

$
0
0

Hi

I have interfaced  embedded device with 9853.Device continuously broadcasting can message.The type of  message is more then one.Each message message have payload more than 8bytes.so they are coming like message fragment(combination of fragment denotes 1 complete message ).How to catch read store and process the frame.I know all the  details of can message.coming rate of message is very fast every 200ms.

PXI6683

$
0
0

When I insert the active antenna into the PXI 6683H,I can receive the time and see it in MAX but it is local time.How can i change the local time to UTC? And I also want to know how to program that i can see the time from the front panel.

Thank you all!

Ask for some help about keithley 2182A

$
0
0

We need to read the voltage signal of keithley 2182A with labview program and express it in waveform, but the current reading frequency is too low (the output data interval is too long for 1 to 2 seconds), we hope to reach above 100HZ, could you please help me to modify the program?

Trajectory Script file generation for NI GPS simulation

$
0
0

Hi All,

 

I have recently started using NI GPS simulation toolkit with NI VSG hardware. I'm trying to simulate a gps signal from the VSG using a trajectory script file, which will simulate a moving gps receiver from one location to another. However, I could find helpful resources to generate a trajectory script file. 

 

For example, I have one location, Mumbai(Source) and another location Delhi(Destination). I have to generate a trajectory file which will include all the coordinates between these 2 locations so that it will help me simulate the signal till it reaches the destination. Can anyone please suggest any ideas?

 

Regards,

Rishi

Multiple Modbus servers on cRIO 9063 - Error -1950679035

$
0
0

I'm having a big issue with running multiple Modbus servers on a cRIO. I'm using the new modbus library included in the DSC module and also the older one based on the shared variable engine. It seems that the error is related to the connection of the IP address to the MB servers, as I do not see an error, if I disconnect the ETH port of the cRIO while booting and connect only through USB-ETH interface.

 

The Idea is to use two modbus servers with different port configurations. Potentially multiple IPs, if a different cRIO is used, which supports two ETH ports.

 

Is there a way to configure the IP address, which the two modbus servers use?

 

Strangely, the same code worked before on a cRIO 9074 with LV 2012. Curently I'm using LV 2017.

 

Probably I will try using only the DSC module code with just one server but I'm not sure, if that's really the solution, since even there I don't understand, which IP is being used.

NI 9421 continues sampling

$
0
0

I have 4 pulse output flow meters (https://www.omega.com/pptst/FTB4600.html)

all the flow meters connected to NI 9421 and cDAQ 9185 chassis to get my frequency readings using the DAQ assistant. i realized that for continues sampling,  i couldn't change my sample rate which is fixed as 1kHz ,without changing the timing type from implicit to sample clock. However. i have many option and anything i choose results in an error. any ideas on how i can fix this? 

i have attached a vi that i was testing for 1 flow meter.

Load Cell measure with Arduino

$
0
0

Hi,

I want to measure the force of two load cells (Datasheet below) over an arduino with LabView.

(load cell(x2)---amplifier hx711(x2)---arduino UNO---computer)

I dont have too much experience with LabView. I have already installed the Arduino and MakerHub functions and Im trying to program something with the LINX functions.

How can I begin? Has someone some tip, solution or existing program?

 

Thanks!


Select which File is copied from FTP

$
0
0

Hello

I'm building a small tool that should help an operator copying a lot of different log files to the correct place after a test. Unfortunately one of the files is stored on an FTP drive. As the file name always changes and it might not be the latest one I need a browser for the operator to select the proper file. I know how to copy files from the FTP using the "FTP Get File" VI. However, I need the user to be able to select which file should be copied. The FTP is added as a drive onto the computer but I can't select a path over this route.

Does anyone have an idea?

LabVIEWCLi -OperationName RunUnitTests Exit Code = 0

$
0
0

Is it possible for the LabVIEW CLI to exit with 0 (zero) when executing Unit Test even though one ore more of the units test fails. It is a challenge when executing a multi stage pipeline that is running on a repository. 

 

LabVIEWCLi -OperationName RunUnitTests ....

As I see it the LabVIEW CLi should only exit with a code different from zero if there is a Run Time error

Plot names don't update when deleting the plot legend name

$
0
0

Hello,

 

I'm programming a software with LV2016 that uses a XY graph. The user will be able to edit the Plot legend name on the front panel. Then I use the plot names to update page caption in a tab control.

After some tests, I noticed that when the user deletes the plot name via the plot legend, the page caption in the tab control keeps the previous plot name. I try to figure out where the problem comes from and it looks like the graph doesn't reset the plot name when deleting the plot legend name. The only ways I've found to reset/delete the plot name are with the properties of the graph (right click on the XY graph) or by putting an empty string in the property node of the graph, but that's not what i'm looking for.

Of course I could use string controls and put them over each plot legend name but I would like to know if there is a way or a property to correctly delete the plot name by deleting the plot legend name via the front panel.

I put a small exemple that describe my problem.

 

Thanks in advance !

Dynamically populate runtime menu for Multicolumn Listbox

$
0
0

I know that it's possible to create a custom Run-Time Shortcut Menu e.g. for a Multicolumn Listbox (http://www.ni.com/tutorial/3171/en/). However I would like to dynamically edit this during run-time. Is this possible? I did some googling but couldn't find an answer. I'm using LabVIEW 2018 32 bit version. Thanks in advance for any help.

Data Acquisition: Multiple Producer Loops and Queues

$
0
0

Hello,

 

I have a couple questions about producer/consumer loops with multiple producers and multiple queues since there seems to be a lot of conflicting information. 

 

Attached is a zip file containing the main VI (FAV-1 Flight Testing Data Recorder_serial_v5) and accompanying subVI's.

 

Here are some questions I have specifically about the main VI:

 

  1. From my research it seems like it is best practice to stop the producer loops with a button and let the consumer loop continue processing data until the queues are empty. Two problems with this:
    1. The program throws Error 1 when I press the Stop button, which is interesting because the queues should not be released until after the consumer loop has finished.
    2. With this line of thinking, the end condition of the consumer loop should be if the stop button is pushed and all the queues are empty. However, when I use the Get Queue Status VI, the number of elements in the queue is always zero. Any insight into what I might be doing wrong here?
  2. I’d like to be able to write the serial data to a separate file when the flag data button is pressed (just like I do with the DAQ data), so I tried placing another Write Serial Data vi in a loop nested within the consumer loop, but that was affecting the data processing already happening in the loop. Any thoughts on what architecture might be best for accomplishing that? Do I need to put a Wait in there somewhere?
  3. Smaller issue item, but now that I’m using a local variable for the stop button, the button doesn’t default back to false after I push it. In a similar vein, the boolean indicator from the Write to Measurement File VI for whether the data is being written to a file (Saving Data) doesn’t default back to false after the program ends. Is there something more elegant than implementing a flat sequence structure and wiring a false to those indicators in the frame before the program ends?

 

Thanks for your patience and help. 

 

Shared Variables not working between TPC-2230 and Host PC / CompactRIO

$
0
0

I want to implement an HMI on a TPC-2230 that will be connected to a CompactRIO-9030.

 

I've been reading in the forums that the proper way to do this is through Shared Variables.

 

Naturally, before implementing the complete HMI with all the n variables I intend to control from the TPC-2230 to the CompactRIO, I want to make sure that the basic operation of the Shared Variables is carried out successfully with a very simple example.

 

This is what I have done so far:

 

1- I installed the Run-time Engine 2017 SP1 (32-bit) in the TPC-2230 and LabVIEW RemoteDevelpment 2017. (I'm using LabVIEW 2017 (32-bit) on my Computer and cRIO)

 

2- I created a new project

 

3- I created a library with the variable "control" that I am going to share between the two devices.

 

4- I create two VI within the project:


- Main_Computer.vi: Contains a while loop where a waveform chart receives the value of the Shared Variable "control".- Main_TPC.vi: Contains a while loop where you have a numeric control that sends the value to the Shared Variable "control".

 

5 - I executed both VIs, effectively, the variable is shared among them and the changes in the waveform chart are reflected.

 

6- Then, under Build Specifications -> New -> Application (EXE), select the VI Main_TPC.vi source. And in the "Shared Variable Deployment" tab, I check the "Deploy Shared Variables at application execution" option.

 

7- Once compiled, I send the folder containing the executable to a directory of my TPC-2230.

 

8- I run the executable in the TPC-2230 (here I get a deployment dialog, which is carried out successfully).

 

9- I run the VI Main_Computer.vi from my PC.

 

Unfortunately, when making changes in the Shared Variable in the TPC-2230, you don't see the changes reflected in the Vi that runs in the computer.

 

I already did the following verifications:

 

1- The two computers are in the same network


2- I can ping between them from the Command Prompt


3- I already verified that the "NI Variable Engine" service is running in both teams.

 

And well, that's all I've done. I thank you in advance for all the help you can give me.

 

Pablo.

 

PS: Sorry for occassional bad english.

FM modulation USRP

$
0
0

hello,

i am trying to use my card USRP with FM modulation, this is my VI.

In my sub VI, i can see the signal FM but i dont transmit this signal. Why ? do you see error ? 

Thanks you

MP 


Why won't half my servos work? (LabVIEW, Arduino & Linx)

$
0
0

Hello there, you fine people!

 

I was hoping that some among you may be able to help me figure out what's going on here. All I'm trying to do is get six servos working from my Arduino Uno (it'll eventually be nine, if I can get this working. Baby steps), but only three work. Servos 1, 2 & 3 (channels 4, 5 & 6) work perfectly, but the other three don't do anything at all. 

 

You can ignore the "True" part of the case structure, I'm getting rid of that.

 

Here's a screenshot of the major part of my code (full VI attached as well), and my circuit layout. 

 

Does anyone have any ideas? I'm tearing my hair out here...

Servo & Motor Power Test.PNG

Circuit layout screenshot.PNG

Labview receive data from the serial port.

$
0
0

Hi everyone!

I have a small test related to receiving data from a computer USB port. 

I use Aruino and programmatically transmit the sequence to the computer via the serial port. 

they are the strings "A1B2C3D4" and "A10B20C30D40" and after the first string transmission, after 10s, I transmit the next string, the process can be seen in the picture below.

Capture.PNG

I created a VI to read these posts, then split the numbers and their sum.

Capture1.PNG

The problem is that after getting the first data "A1B2C3D4" I calculated their sum of 10. After the first calculation, it again calculated the sum until the 10s were out and waited for the next string (the next string is "A10B20C30D40 ") come. So how do you calculate the sum only once after it receives the incoming string, and wait until a new string of characters is submitted after the next 10 seconds and then calculate the total once and then wait. In this example I can adjust the time to send the characters from Arduino to the Serial port but with a real problem I want to make the strings send up with any interval. So is there a way for it to count once and wait for a new string to process the post.

 

 

 

Mathscript error: "Output datatype has not been selected"

$
0
0

Hello,

 

I was trying to use the mathscript to make my life much easier but it seems stupid issues are not far around the corner in LabVIEW. I've attached the snippet of the code below. The error is that the output datatype is not recognised. Fair enough! I go and try to set the data type of the output. From all the possible options, none of the categories are 'selectable'. Any suggestions you guys can give would be greatly appreciated.  

image.png

 

Reading data with: Read From Measurement File Express VI

$
0
0

Good day, I have a question, today load a data with the: reading data with: Read From Measurement File Express VI, part of a program of three channels that was developed, we loaded the same information to verify that it gave the same image in the three channels, but in spite of being the same file, they give different graphs, then another file was loaded in the same way because the program was verified and didn’t was found because for that failure, in this second opportunity if they gave the graphics the same as expected, but the question arose why this failure at the beginning, does anyone know anything about it ?, or something similar has happened ?, or where I could read about this type of errors, is for be careful in future, with the reading data.

Need to locate a 2010 version of LabView Runtime for DPTi Software

$
0
0

Need to locate a 2010 version of LabView Runtime for DPTi Software

Viewing all 69601 articles
Browse latest View live


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