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

finding out the connector pane of a node

$
0
0

Hi community,

 

a google search has failed me so here goes:

 

Is it possible to find ot what the connector pane of a node looks like?

The nodes available in LabVIEW are not vis and therefore cannot be opened to inspect the connector pane.

My intention is to create a sub vi to replace a certain node (in this case "one button dialog"). I'm hoping that if I could match its connector pane I could actually use the replace function on multiple instances of the node without having to fix the wiring manually.

 

Any help would be appreciated.


Graph cursor handling

$
0
0

Hello

 

Here is an example that diplays a curve and epmploys 2 cursors.

The question is how to "attach" cursors to the curve in order to specify only X coordinate.

 

Thanks in advance.

 

cursor_handling.png

 

cursor_handling.JPG

offset flow rate data

$
0
0

I have been acquiring data from pressure sensors (differential pressure) to convert it to flow rate in a pipe and that flow rate is been used to calculate Volume later in the process. 

 

Flow sensors have been calibrated to zero everytime and also sometimes with removing pipes at the both end of flow sensor. As soon the program is run, there is an offset of 22ml/sec and it's variable. It decreases over time while the program is running and goes till -35ml/sec. These values are the points from where the flow curve starts, which is the data acquired are pretty much accurate but only there is an offset of some value. When it decreases it passes from zero and this process is really slow.

 

For temporary purpose I have added a controller wherein eveytime there's an offset, I simply read from indicator and subtract or add the necessary value, but is it any method not to do this everytime. 

 

Note: I read pressure values also in that tube and it shows proper values starting from zero. I tried using pressure values vs time to decrease offset but it's nullifing the initial part too.

CAN bus adaptor recomendations

$
0
0

I am looking for an AFFORDABLE CAN bus adaptor (so no NI branded products) Smiley Indifferent

 

I would prefer that is appears as a virtual COM port in Windows no extra drivers are needed to use it with LabVIEW.

 

Any recommendations?

acquisition de données

$
0
0

salut à tous 

je suis novice verser l'utilisation de logiciel de programmation labview.

j'ai un petit probléme aux cours de d'ouverture d'ONU fichier.paq Qui contien non tableau de mesure et non labview graphè de with ???

je veux Ouvrir non Fichier d'extension de .paq labview with; Mais mon vi Toujours retourne un message de ce ( LabVIEW:. Fichier non trouvé Le fichier peut être dans un endroit différent ou supprimé Utilisez l'invite de commande ou l'explorateur de fichiers pour vérifier que le chemin est correct..). et  voilà le Fichier que je te veux l'Ouvrir 

Stop not working

$
0
0

In my program I have a case structure to stop my program if there is a specific error.  I am using LabVIEW 2015 that we just upgraded to.  The popup states there is an error, then the next part of the sequence closes the CAN device, and then the 'stop' is used to stop the LabVIEW program.  I ran into an issue that the stop button did not come up and went to the next page in my stacked sequence structure. (I know the CAN closed since the next structure has a CAN device and it was unable to work since the CAN was closed in the previous screen)  

I know the stop button is not ideal since it is like the abort stop button, we didn't have problems previously but would like a more ideal solutionl.  Can I just use the 'Exit LabVIEW' icon in order to stop and close the CAN and program

Is the code ok but need more time delay?

Any suggestions would be appreciated.

Average waveform display looks choppy?

$
0
0

I am using a Pico Tech USB oscilloscope to collect average signal traces of an input signal. I plot the data in a waveform graph. I have included an image of what I get. When I crank up the averages to very high amounts (well over 100), the displayed data in the waveform graph looks hoppy and not smooth/rounded as I would expect for average traces. It almost looks like 8-bit noise to an extent, but I am collecting at 16-bit. Am I using the wrong display format/type or how do I change the display resolution of the displayed waveform? I have tried changing as many options as I could but there was nothing to change about sampling rate or display resolution.  FYI: The scope trigger is at 10 Hz and the waveform is a 64 bit double precision nubmer.  Thanks!

3 phase pwm inverter (labview and multisim co simulation)

$
0
0

Hi guys

I need help to find where is the problem in this simulation

I think this is the wrong conversion in  switches K1 K2 K3 K4 K5 K6

The conversion To Byte integer (number to 8bit integer )

Best regards


timestamp pulses on multiple digital lines from one counter

$
0
0

Hi guys,

 

I'm trying to get accurate timing of digital inputs using my M-series PCIe-6363 National Instruments card and LabView. What I've done so far is generate a counter on the 100kHz internal clock that is sampled by a digital line that I want to monitor events on. I do this by inputting an edge counter task to a sample clock for my digital channel, which allows me to acquire the current clock count when a rising edge is detected on that input channel. This works fine with one channel (see *_1ch_CFA.vi).

 

However, I need to timestamp multiple channels from the same counter, and my own implementation of this will not work (it won't even start). See *_2ch_CFA.vi.

 

Any help would be greatly appreciated!

- Chris

[Bug?] Beware of changing your chart inputs...

$
0
0

Forums searches turned up related but different issues, so here goes: is this another chart memory leak or have I missed something?

 

The problem is simple, although I doubt it shows up often.  If you put down a chart, its data space memory usage should reflect what's needed for the chart history times two.  However, any time you switch inputs between scalars and arrays (doesn't seem to matter what type, or what dimension for the arrays, and I was testing with empty arrays), the chart grabs another whole buffer (history x 2), and the data space grows by that amount.  If you switch back, it grows again.  You can change array dimensions, delete your input and wire a new one of the same "order", or do any number of other things, and the data space is fine.  But any time you make that particular switch, the data space grows.  From everything I've tried, there isn't any way to free up this memory, even by deleting the chart from the VI, except to CTRL+Z all the way back to before you wired any inputs.  If you've closed it or done a bunch of work afterwards, I don't think there's a way to reclaim it, and it doesn't get cleaned up with a restart.

 

Obviously, this probably hasn't even come up on anyone's radar for a few reasons, but we often deal with very large data sets, and I discovered this in a chart with a 1M-point history.  (On a 32-bit machine, no less.  Why do they even make those anymore)

 

I have screenshots available if anyone is interested, but I have to cull and crop before they're useful to anybody else so I didn't put any here.  I haven't delved deep enough into VI scripting to find a programmatic way to see the memory usage breakdown--on that note, does anybody know how to do that?--so I don't have any snippets, either.  I'll be stuck in the lab so I will be slow with responses, but I will be eager to hear if anybody has any suggestions or foreknowledge of this.  Thank you!

Determine a cRIO IP address when MAX cannot find the target. NI 9072/9073/9074, NI 9075/9076, NI 9148

$
0
0

ALREADY SOLVED BUT I THOUGHT I'D SHARE.

 

I've spent countless hours troubleshooting network issues with cRIOs. MAX cannot find the target whether my computer has a static IP set to what cRIOs boot to (169.254.103.162), or my computer is set to automatically obtain an IP address. i ensure i have all the correct drivers installed on my computer, specifically the latest NI-RIO device drivers, and MAX will still smetimes not work. A friend of mine showed me this useful trick.

 

I'm usually dealing with: NI 9072/9073/9074, NI 9075/9076, NI 9148. The 9072/9073/9074 must have the console out rocker switch enabled. THE NI 9075/9076 AND NI 9148 MUST HAVE ENABLE CONSOLE OUT CHECKBOX CHECKED IN MAX, SYSTEM SETTINGS TAB DURING A PREVIOUS CONNECTION BETWEEN THE CRIO AND COMPUTER. Note the default login for cRIOs is user: admin & leave the password blank.

 

If you still cannot find the cRIO in MAX, do the following.

 

  1. Plug a null modem serial cable such as Startech, part # ICUSB232FTN, cable into the cRIO and into the computer.
  2. Install the startech software using the cd that came with the cable. Within the cd, navigate to the this folder. The last folder could be different if you have a different operating system. E:\USB_to_IO\USB_to_Serial\(32_64bit)Win7_8_XP_Vista_2008_2003_2000_98_ME
  3. Right click my computer>manage>device manager>ports and see what COM port the usb cable is on.
  4. Download PuTTY at the following link chiark.greenend.org.uk/~sgtatham/putty/download.html
  5. With Session selected at left hand side in PuTTY, enter the COM from the device manager in the serial line field and select connection type: Serial. See the Referenced article below “How Do I Enable the Console Out on CompactRIO, Single-Board RIO, CompactFieldPoint Controllers?” for details.
  6. A black window will come up.
  7. Unplug the cRIO and plug it back in. Upon boot, it will populate the black window with a lot of diagnostic information on the cRIO. Within this you’ll see something like Device 1 - MAC addr: 00:80:2F:19:75:19 - 192.168.0.101 /24 (primary - static).
  8. Solved! You now have the IP Address of the cRIO.

 

References and Notes

 

How Do I Enable the Console Out on CompactRIO, Single-Board RIO, CompactFieldPoint Controllers?

http://digital.ni.com/public.nsf/allkb/354A5124E6A667988625701B004A77CD

 

Configure CompactRIO With a Static IP Address

http://www.ni.com/getting-started/set-up-hardware/compactrio/static-ip

 

To change the computer IP address: start>control panel, network and internet>network and sharing center>change adapter settings>right click properties on network connection>double click Internet Protocol Version 4 (TCP/IPv4)> then enter the desired IP address.

 

sweep parameters

$
0
0

I have an AO and I'm creating a sweep VI that finds resonance of a material with an accelerometer.

 

What specific values will give me the best looking/accurate half power curve when doing vibration analysis? Or is there a rule of thumb I need to follow? IE: Sweep time, Buffer count, # of frequency steps, # of samples when using log frequencies.vi and waveform buffer gen.vi? 

 

Or do I just need to play around with the numbers. 

scan mode error when using NI 9234 with cRIO 9075

$
0
0

Hello

I am new to cRIO 9075 and NI 9234 and NI 9227

I am trying to use it to measure current and vibration of a motor 

later I am going to control the motor using NI 9263 

Please find my VI andscreen shot of error and please let me what is wrong.

Thanks

11-5-2016-RT-scan engine 9234 n 9227.png

How to close a subVI's while loop from Main.vi

$
0
0

I have a running subVI (as a popup windows). Inside this subVI, I have a while loop that is going to exit once I read a string via serial COM port.

I was wondering if it is posible to change the value of the while's loop exit button from

out side this subVI. Until now I can stop this subVI, with a local variable, but this happens in the same subVI. What I want to know is if it can be done from outside the while loop/from another VI.

I've read control references, global variables but still haven't figure this out.

 

Could someone help me with this issue, please!!

 

 

Many thanks in advance!

 

 

 

Availability of older versions of LabVIEW

$
0
0

Hello, I'm looking for a download (or other means of obtaining it) of LabVIEW 8.5.1. We had to upgrade a computer running 8.5.1, but the installtion disk could not be found. We do have the S/N. While we do have licenses for newer version of LabVIEW, I would prefer to install 8.5.1 as we'll be running older LabVIEW code developed by GE and they only support their code on the original LabVIEW version. Thanks!


AVI Frames Being Overwrittten

$
0
0

Hi everyone,

 

For a vision application, I'm trying to stream the image date, as well as create an AVI. For some reason, I have to first flatten images to string, and then unflatten for both creating a picture, as well as adding frames to the AVI. In the attached VI (simplified version of my application), when the Record button is pressed, the last 50 frames are written to a text file. When the Create AVI button is pressed, that file is converted into an AVI.The stream boolean determines if a stream of images is shown to the user or not.

 

The problem is if the Create AVI button is pressed, when the Stream is on, some of the frames in the AVI are overwritten, I assume by the latest values of streaming images. If I turn off the streaming before pressing the Create AVI button, the video is OK. How can I avoid this? 

 

IMAQ Stream & AVI.PNG 

IMAQ Stream & AVI - 2.PNG

 

Thanks,

 

Soheyl

Dynamic Add Graph and Split-bar in the main Panel

$
0
0

Dear Everyone, I am trying to design an UI for the data analysis. I have experienced with the SignalExpress, which can add the graph automatically and also delete, re-layout the graph dynamically. It is a very nice design and I believe it was made with Labview. There are two points very interesting:

1. Tab: Each tab contains several graphs\listbox,etc and each control can be re-sized.

2. Split bar: each split bar was added automatically.

See the sample snapshot below. How can I realize this idea? I know that the split bar can not dynamically, how this works? Thank you for your help.

I believe this is going to be the interesting topics here.

I have also seen another software called "SignalPad 2016" with the similar way. I believe somehow we can make it.

dll

$
0
0

hi 

i am new to use dll calling in labview,i am trying to send created memory for an array(unsigned short) of few elements in labview and send that address to the dll ,

in dll i am trying to fill data to the array by giving some delay for each element .

 I got the total array in labview after competion of dll exicution only .

my doubt is

is this  possible to get array data in labview whenever data placed by dll in that address before dll exicution complted ?

 

 

thanks in advance. 

how to find bit error rate in USRP

$
0
0

hi all,

im using the NI USRP 2920 to build an fsk tx and rx. i tried to find the bit error rate on the receiver, but everytime it indicates that the ber equals one. im posting a picture of how i connected the "mt calculate ber" block in my system.

thanks in advance

Fractional String To Number and vice versa for FPGA

$
0
0

Hello,

 

I need a VI, which can do the same functionality as Fractional String To Number and Number To Fractional String in host. Also Number To Decimal String and Decimal String To Number.

I've implemated VI, which does that functionality in a part.

 

Please, help me to implement that conversation for FPGA.

 

Thank you in advance.

Viewing all 69213 articles
Browse latest View live


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