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

Control RGB LED WS2812 with NI PCI-6133 and LabVIEW


Dot after unit thousands

$
0
0

I want to separate a number after each thousands unit as a dot or a comma.
For example, if I have 12345678, it becomes 12,345,678 or 12.345.678
Can anyone help me with this problem?
Thanks

Fixing a discontinuity in waveform graph data

$
0
0

Hello, 

 

I am graphing two signals into a waveform graph GUI using probe data in LABVIEW 2016. The issue I am having is the waveform is not continuous when the data is graphed and I do not know why.

 

So far I have tried VI's that remove a DC shift and another VI that shifts a waveform and none have worked. 

 

Here is the original VI:

* The AC Sig and Ref are put into a build array and the data is displayed on the Waveform chart in the "WVFRM GUI"

HGus_0-1588777590335.png

 

Attached is the two VI's involved with this system and the excel contains the graph with the continuity after graphing the data.

 

If you have any suggestions to solve this issue that would be much appreciated. 

 
 

 

 
 
 
 
 

 

 

 

 

 

 

 

 

 

To Buy some products

$
0
0

I want to buy some products. Below are some products.Is there anyone help me how can I get it from NI.

 

1. cFP-1808, 8 slot Ethernet/Serial Interface for Compact FieldPoint.

2.cFP-QUAD-510, Quadrature Encoder Input Module, 4 axis, external power supply

optional.

3.cFP-CTR-500, Counter Input Module, 8 channel, external power supply optional.

4.cFP-AO-210 8ch, 12-bit Analog Output Module (V), external power supply.

5.cFP-AI-112, 16 channel, 16 Bit Analog Input Module (V).

6.cFP-RLY-425, Relay Output Module (AC/DC switching), 8 channel.

7.cFP-CB-1 Connector Block

 

I want too know whether this products are obsolete. If it is obsolete any upgrade product for these Module.Kindly assist me I need a authentic supplier in sinapore or Malaysia.

 

I will discuss if there is any upgrade version.

 

how to set parameter Size of DSNewPtr for an array of double precision

$
0
0
 

I am trying to create a new pointer for an array of double precision elements using DSNewPtr. I am not sure what the parameter Size is.

 

I think it should be the number of elements in the array times 8 because each double precision number has 8 datatypes, but it doesn't work. Then I use the number of elements as the size for DSNewPtr, and it works. I don't understand why the size is the length of the array.

 

Thanks.

 

state machine

$
0
0

Hi,

 

I HAVE A PROBLEM WITH THE PROGRAM I HAVE MADE.

THE PROGRAM CONSISTS OF MOVING A CYLINDER. WHEN THE CYLINDER IS MOVING IF SOMEBODY ENCROACH THE SECURITY BARRIER I HAVE TO SEND THE PROGRAM TO THE STATE CALLED "REARMAR". THEN I SEND TO THE STATE CALLED  "vOLVER A MANDAR A POSICON" TO RESUME THE MOVEMENT.

MY PROBLEM COMES WHEN THE CYLINDER IS MOVING TO ITS SECOND, THIRD, FOURTH OR FIFTH POSITION. THERE IF THE SECURITY BARRIER IS INVADED INSTEAD OF RESUMING THE MOVEMENT AND TAKING THE POSITION TO WHICH THE CYLINDER SHOULD HAVE GONE, IT SENDS IT BACK TO THE FIRST POSITION AND I DON'T UNDERSTAND WHY.

COULD YOU HELP ME PLEASE

 

BESTE REGARDS

Missing information on .dbc files explored through NI-XNET Database Editor

$
0
0

Dear Labview Users,

using the NI-XNET database editor I am not able to find some information on CAN description that I can found using other software (e.g. Vector CANdb++). In particular, I am not able to find the node referred by each frame and the description (as "enumeration") of the values of signals (e.g. 0 means "OFF", 1 means "ON")

I am also not able to find these pieces of information using the NI-XNET palette, for a correct interpretation of signals received.

Unfortunately, I cannot share screenshots since they contain property information of customer's communication protocol

 

Thank you very much for your support

Sharing data between XControl methods and facade?

$
0
0

Good morning, everyone,

 

I have built an XControl that contains a Waveform Chart (and some other stuff), in LabVIEW 14.0, running on Windows.

 

I'd like to create a simple XControl method that clears the chart.  This "should be" easy, but the method VI block diagram doesn't have access to the controls and indicators on the facade.

 

This is my first major XControl, so I'm probably missing something simple.  But, what is it?

 

Thanks,

-- Mark


Exaprom PDF - Tables in one row

$
0
0

Hi,

 

I use the Exaprom PDF 2.0 library to create PDFs with LabVIEW.

My question is: Is it possible to create two tables and arrange them in one line without line feed as shown in the next picture: 

Two_Tables.PNG

My suggestion was:

Try_two_tables.PNG

but this doesn't work. The second table appears under the first table. Is there a possibility to arrange them in one line, so that the second table will appear next to the first table? Maybe there is a flag, that indicates a line feed and it's possible to deactivate it, but I can't find something.

I know that that's possible with text, but also with tables?

I use LabVIEW 2018 and Exaprom PDF 2.0.

 

Thank you very much.

Labview license - if I have a developer License can I 'Place and Run' the executable on many other PCs?

$
0
0

If I have a developer License can I 'Place and Run' the executables on many other PCs without any more licensing?

For example there is no User Licensing I have to worry about.

Remove selected elements from incomming data array

$
0
0

I am trying to use a National Instruments USB Thermocouple interface (cDAQ-9171 with a 9213 module) with Labview 2018. The unit works fine and I can display any/all of the 15 channels. However, I would like to actively select the which channels that I display inside Labview using boolean buttons. My thought is to take the incoming data array which contains 15 elements and remove the unselected (or selected) channels. I thought I could use either the "Delete from Array" block or another array function, the issue is that none of these functions appear to allow for a varying number of inputs. I would have though I could use a boolean array as a TRUE/FALSE selector but again, I can find no array function that that will allow me to input an array to either select the exact elements I want or to reshape an incoming array of 15 elements to contain only data from the channels I want. Does anyone have a simple solution for this? Thanks!

Install gfortran for 32-bit NI RT Linux RIO

PUT TIMER AT TRAFFIC LIGHT

$
0
0

So this is my question:

 

Place the traffic light into a While Loop with a timer so that it actually runs on a two-minute cycle as specified. In the first 55 seconds of a cycle, the traffic light is green. From 56 to 59 seconds, the traffic light is yellow, and from 60 seconds until 120 seconds, the traffic light is red. This process should repeat indefinitely until clicking the Abort button on the front panel turns it off.

 

So basically. this traffic light I use flat sequence. 

Please show me the simplest method to SHOW TIMER ON FRONT PANEL TO THE USER.

 

Shown below is my code 

Thank you

 

AtiraSuhaimi_0-1588786698142.png

 

Need Help separating waveform graph rate and logging rate

$
0
0

I've created 10 channels for transducer and flowmeter inputs using a simulated PXIe-6361. I want to display the reading on a waveform graph. I also want to add the option to start data logging whenever the user chooses at a selected rate. I can't seem to keep the waveform graph sample rate and the logging data rate separate. When I try to split the task into two separate loops, the program doesn't work as intended. I've looked at the examples and browsed the forums and it got me pretty far but now I'm stuck!

 

The main issues are:

1) I want to be able to display and change rate of the data that shows in the waveform graph.

2) I want an option (button) to enable data logging (TDMS) at a user selected rate whenever they choose.

 

Any help is appreciated!

Where are the CMH templates used in Core 2 training?

$
0
0

Since I have some "free time" I have been going through some of the online LabVIEW training. I really like the CMH discussed in Core 2,  and can see where this architecture would be perfect for a couple of my applications.

 

Were are these design templates at? I have LabVIEW 2019 and all the templates and design patterns that came with it use the old Notifiers and Queues.

 

The closest I have is a QMH template, but it also uses the notifier methods instead of Channels.

 

temp3Capture.PNGtemp2Capture.PNGtemp1Capture.PNG

 

Where do I get the templates that use Channels?

 

CMH_Capture.PNG


DAQ write issue in a loop

$
0
0

Hello, 

 

I am trying to design a system where some sets of data will be sent to DAC (PXI 6733) and should be observable on oscilloscope. The data elements in one data file are sent to DAQmx write module by 2000bytes per one loop, so the DAQmx write is used in a loop. Therefore, the DAQmx start is started only at the first loop. I have attached the pictures from the code.

I have two kind of data. In both of them there are 10 impulses with 0,1s interval. One of them has 500 samples per second and the other one has 10k samples per second. In one, the loop iterates for 2 times and in other 31 times.

The problem I have is that, before putting DAQmx Wait Until Done after the loop, I was not able to observe 10 pulses in oscilloscope. After putting that vi, now I am only able to see 10 pulses with 500 samples per second but not the pulses with 10k samples per second.

Other than this, I am not very sure if this design is very feasible in terms of writing analog voltage output.

I would really appreciate if somebody could help me on how to overcome this problem and maybe suggest a more proper configuration for DAQmx write and DAQmx start parts.

 

(I am not using the digital output for now.)

 

Best regards,

Esra

 

Programmatically update class and library descriptions/icons

$
0
0
I'm making (what should have been) a simple project documentation editor that duplicates a specified project tree and allows me to select project items and update the icons and descriptions. I have this working for VIs, .ctls, .vits, etc. but classes and libraries are giving me issues. As soon as you open a reference to a class or library, LabVIEW loads it into memory, which locks it from being edited. So this may be a silly question/rehash of questions asked a hundred times before, but is there a way to either: 1) unlock a class that's in memory (doubt it, and kind of hope not) 2) open a reference to a class in memory with minimal editing permissions (also doubt it) 3) get/set the description and class icons without loading the class into memory aka update properties without opening a reference (sort of doubt it?) 4) solve this problem another way? As far as I can tell, the answer to all of these is 'no' and there is no way to set an existing class or library description/icon programmatically (I know that you can use VI Server to create a class and update the description then, but I'm exclusively talking about classes that already exist on disk). Anyone have any insight?

Trigger source. Start analog output with analog input

$
0
0

Hi,

 

I'm using LabVIEW 2014 and a cDAQ 9178 and I want to start generating an analog output when a certain level of the analog input is reached. I have seen this daqmx function:

Vries_0-1588799509437.png

but I don't know what I need for the trigger source. When I fill in the channel of the analog input I get the error 200077. Is someone familiar with this problem?

 

Thanks in advance! 

Tek Scope error: 2224. Measurement error, WAIT calculating.

$
0
0

Hi, Everyone:

 

I know this has absolutely nothing to do with LabVIEW, but I'm desperate for info on this error.  Google shows zillions of hits inside manuals, but all the manuals I looked at just list the error and that's it.  I'm guessing maybe I'm asking for the results before the scope has calculated it?  Google shows a few forum-type hits, but none of them got answered, as far as I can tell.

 

So even though this isn't the right forum, I'm hoping someone will give a little time of themselves and help me figure out just what that error means.

 

Thanks!

New user 2020 Community Edition but DAQmx not working

$
0
0

Brand new 2020 Community Edition Labview user with no coding background. Am home now during COVID-19 trying to learn LabVIEW which has generously offered their online Core 1 course for free until end of May? [I have lab experience and have USED LabVIEW but never programmed it. I want to improve my skills so I can get a better job] Following course along till unit 6 which requires the use of DAQmx (which was explained and directed to be downloaded previously in the course). All good until I try to USE DAQ Assistant in the function palette of the block diagram lesson. No can find. Have spent DAYS going through the knowledge base (and Google) including the most-recent Jan 21, 2020 "Why Don't the NI-DAQmx/NI-DAQ VIs Appear in my LabVIEW Functions Palette?" NI support document. Running Windows 10 with required speed, RAM and HD size. Order of install was correct (first LabVIEW then drivers). Did the "Modify" files as required in the instruction. Created the "menus" and "default" subfolders as described, "C:\Program Files\National Instruments\LabVIEW X.X\menus\default". Rebooted. Still can't pull up DAQ in the functions palette. 

As a Community Edition user, it seems I cannot ask NI for help as there is no product serial number or license (that I can find). 

I'd appreciate a leg up onto this horse. This is just the beginning of my journey and I bet I'll laugh about how stupid I was one day, but right now, I'm feeling really frustrated. 

 

Viewing all 69272 articles
Browse latest View live


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