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

Serial Port Reading

$
0
0

Hello,

 

Please I need your help guys.

I am trying to read measurements from a serial port via USB-RS232 converter.

 

The problem that the script is working without any error,however it is writing always  0. 

However the result is expected to be different from 0 . (Please see attachment )

 

Any hints or explanation would be very appreciated.

Thank you in advance.

Greeting.


LabVIEW FLIR SDK .NET assmbly's

$
0
0

Hi all.

i'm trying to use the FLIR file SDK with labview in order to open a FLIR thermal file.

according to this FLIR knowledgeabase it should be possible .

but whenever i try to load the .NET assemblies into Labview 2018, i get the following answer 

​An error occurred trying to load the assembly

 i have tried to re-compile the .NET  assemblies from the source, and i have tried to use the method described in this knowledgebase (by NI)  to no avail. 

has anyone ever tried (or even managed) to read a FLIR thermal image file (.ats) before?

or does anyone has any idea what am i doing wrong with my tries to import the .Net code into labVIEW? 

 

thanks in advance Smiley Happy

LabVIEW making a maze game

$
0
0

Hello,

 

We’ve been taught the basics of Labview this semester and now we have been given a project in which we have to design a game. We are going to build a simple Pac-Man game. We must have a maze, a main character (Pac-Man) which can be controlled, some enemies (Ghosts) and the Point Pills that Pac-Man will eat as he goes through the maze.

 

We already have an animation code (Pac-Man moves and opens its mouth), a code with a drawed Labyrinth (with vertical and horizontal bars) and a code for using the Keyboard to control Pac-Man in four different directions.

Now we need to decide how our character will move on the screen. Me and my lab partner can not find out how we can place the Pac-Man animation in the 2D-maze to control the character with a keyboard inside this maze.

 

We did not use an Array for our maze, so we used the function Draw Multiple Lines to build vertical and horizontal bars in the maze because we thought it would look more realistic than an array. Can we work with it or should we better use an array in this case?


Are there any helpful tips or pointers people can give us?

 

I have attached our project files. We are working in Labview 2017.

 

Thank You a lot!

Labview making a simple Pac-Man game

$
0
0

Hello,

 

we’ve been taught the basics of Labview this semester and now we have been given a project in which we have to design a game. We are going to build a simple Pac-Man game. We must have a maze, a main character (Pac-Man) which can be controlled, some enemies (Ghosts) and the Point Pills that Pac-Man will eat as he goes through the maze.

We already have an animation code (Pac-Man moves and opens its mouth), a code with a drawed Labyrinth (with vertical and horizontal bars) and a code for using the Keyboard to control Pac-Man in four different directions.

Now we need to decide how our character will move on the screen. Me and my lab parnter can not find out how we can place the Pac-Man animation in the 2D-maze to control the character with a keyboard inside this maze.

We did not use an Array for our maze, so we used the function Draw Multiple Lines to build vertical and horizontal bars in the maze because we thought it would look more realistic than an array maze. Can we work with it or should we better use an array in this case?


Are there any helpful tips or pointers people can give us?

 

I have attached our project files. We are working in Labview 2017.

Thank You.

LabVIEW 2014, smtp example sends no mail

$
0
0

I have a strange problem, I want to send an e-mail by using the SMTP (IP address is known) example without authentification. The vi "Send Email using SMTP Client_LV2014.vi" works without error, but no e-mail is generated by the server. With the same settings I use the old smtp tool of labVIEW 8.6. "EMail with Data_LV8.6 converted to LV2014.vi". this works fine even under LabVIEW 2014 and I receive the generated mail within seconds. Can someone help? Attached are both VIs.

 

In both cases I used my e-mail address for sender (return address) and receiver and I used the IP number of our mail server (plus port 25 at the LV2014 vi)

 

Will it help to use an account with login?

 

best regards

 

Joerg

multiple UDP receivers in one vi?

$
0
0

Hello again,

 

I use multiple UDP receivers on the PC host to receive from multiple ports. Then I have multiple vis on a cRIO, each one has one UDP senders. I am planning to sometimes use one or two UDP senders. But if one UDP sender is not sending, all UDP receivers stop working, not just the one without sender. What can I do? Everything works fine, when all UDP senders are working.

 

Thanks!

How to implement a Data acquisition in NI myRIO 1900?

$
0
0

Our team is working on ECG Signal Acquisition using NI myRIO. We're having a problem when it comes to data acquisition using myrio. We are new to this environment. All answers are appreciated thank you

How to create an Icon for an exe .

$
0
0

Hi All,

 

I never did this and to be honest don't know where to start and what to use.

I have an executable from my application however it still uses the default labVIEW icon.

I would like to make an icon that is suitable to the application ,What SW should I use and what format/size should the icon be ,

Any help  directions are highly appreciated 

 


LabVIEW Repository for old versions

$
0
0

Hi All,

 

I have License key for Labview 8.5 i have lost CD's,Is there a repository to download old versions of Labview.

 

Thanks,

Venky

Getting Math channel of Keysight 3054T

$
0
0

Hello everyone,

 

I am using the Keysight MSOX3054T with its LabVIEW drivers for LV2013. At the moment the VI is able to display Channel 1 to  4 on the front panel, like you can see.
Now I also want to display the math channel of my oscilloscope on the front panel when it is chosen in the ring. But if I choose it in the ring, I get no signal at all of the math channel.

(The math channel shows CH1 minus CH4)

Like you can see, I prepared the ring selector and the configure channel vi to get it.

Does anyone has a suggestion to get the math channel of the oscilloscope displayed on the front panel?

 

Thanks a lot!

Temporary buffering

$
0
0

Hi,

 

I am requiring data from FPGA throw RT to HOST with 1.652 kHz. In the HOST I want to see the frequency domain of my data "online". Therefore I need to take FFT. FFT need ammount of sample for processing. Is there any method where I can buffer for example 1652 sample calculate the FFT, plot and then take the next 1652 sample and so on... 

FPGA NI USB 7856R: Glitches during analog output / "single point excursion"

$
0
0

Hi all!

 

The following problem during analog output generation on NI-USB 7856R is encountered:

 

When trying to generate a voltage ramp, one datapoint seems to be significantly lower than the previously generated or the next datapoint. (see attached figures). The generation itself is done via DDS from an example found on this forum (http://www.ni.com/example/31066/en/).

 

I think it’s a glitch or “single point excursion" ?

 

I tried to narrow down the problem and supplied a minimalistic VI. Here, a sawtooth ramp is generated via a NI example for DDS. Additionally, also a sine via expresss vi with 10Hz is included for comparison. Both signal exhibit this glitches…

 

What is your impression of this problem? How can it be avoided?

 

Best regards,

HM

How to keep generating sine wave after VI is completed? (daqmx)

$
0
0

Hello Community,

 

I have a very simple VI which generates a signal and write it to one my Analog Outputs. I'd like to keep the signal generation going even if the VI is finished its execution, but with the current code it stops when the VI stops.

 

(Test case: I need to generate the DC + ripple voltage and then perform several measurements. I must use Teststand so it seems logical that I start the signal generation in step1 and then perform the measurments in step2, step3... etc. But currently it seems that once step1 is finished the signal generation finishes as well.)

 

Is there a way to keep the signal generation on after I have finished my VI? If yes, what would be that. If not what would be the proper approach to handle this problem?

 

Thanks.

 

signal_gen.png

dropping packets when hard drive light starts, NI Vision

$
0
0

I'm testing a 10GigE camera using NI-MAX version 14 with NI vision 14.5.  I'm running at ~80 frames per second, 2048x2044 pixels, 10 bit depth.  It will run fine for about 4 minutes and then the hard drive light lights up, packets are lost, the image goes to pieces and after a few more seconds communication is lost and the program crashes.  I've disabled paging without any affect.  The same problem is not observed when using the vendor's test software (SpinView, Point-Grey now FLIR).  Any ideas?  It looks like some sort of memory/buffering problem but this doesn't happen when using the other software to run the camera.

Labview FPGA load files to dram

$
0
0

Hi ,

Im usign the Kintex 7 device.

I have 3 binary files which i need to load to the DRAM.

i wrote a code (target side) , based on a state machine which load each files .

I used one DMA for it. one state is writing data to the DMA (Host - to - Target) , and next is reading from the DMA to the DRAM .

When i tried to compile the code , i had an error which, which tells that im trying to use the same DMA resource.


HOST to TARGET Communication !!

$
0
0

Hello,

I am using the NI 5783, Ni PXIe-1082 Adapter Module, Labview 17

I want to send a signal from the host to the FPGA target.

I tried several times and I changed the settings but it does not work!

What can be the problem?

Thank you.

Put informations in clusters with for loop

$
0
0

Hello everybody,

 

I will try to explain my problem.

 

I have X clusters in a cluster or a tab control or just in front panel (it could be adaptable for the most efficient way).

Each cluster had the same composition :

 - 2 delta numeric control ("delta min"/ "delta max")

 - others controls not useful for my problem (reference value, value min/max...)

 

I have an Excel file with all min/max delta for the X clusters.

I separate in 2 arrays my min max delta, but now I would like with a for loop fill in each delta numeric control for all clusters. I replaced the excel file by 2 random arrays.

So, in fact, at the beginning of my for loop, I have :

- 1 "delta minimum" array (with x values)

- 1 "delta maximum" array (with x values)

- 1 [cluster/tab control] of clusters (with x clusters)

The arrays and clusters are in the same order.

 

Could you help me to fill in the different clusters ?

You could delete the big cluster if the solution is easier without.

 

Thanks in advance,

 

Florian

 

Scripting - Find path of missing VI on block diagram bug?

$
0
0

I have a block diagram with missing VIs that I would like to find the missing path of. The propery "MissingPath" works for standard sub VIs and static dispatch VIs but fails on dynamic dispatch VIs even though the path is shown in the Context Help when I hover over it. Instead it returns Error 42 - Generic error.

 

Is this a bug?

 

LabVIEW_2018-07-02_14-51-27.pngTest VI

 

LabVIEW_2018-07-02_15-03-25.pngResults

Example project attached. Missing VIs are intentional - just click ignore all and run Missing path test.

Getting Math channel of Keysight MSOX3054T

$
0
0

Hello everyone,

 

I am using the Keysight MSOX3054T with its LabVIEW drivers for LV2013. At the moment the VI is able to display Channel 1 to  4 on the front panel, like you can see.
Now I also want to display the math channel of my oscilloscope on the front panel when it is chosen in the ring. But if I choose it in the ring, I get no signal at all of the math channel.

(The math channel shows CH1 minus CH4)

Like you can see, I prepared the ring selector and the configure channel vi to get it.

Does anyone has a suggestion to get the math channel of the oscilloscope displayed on the front panel?

 

Thanks a lot!

GPIB Error Handler

$
0
0

I am using a GPIB to control remote devices, I am trying to create an error handler for when the GPIB disconnects. AKA, if the device is shut off mid data collect, then MY error handler should display not LabVIEWs.  I am using an not equal comparison with a case structure, but it seems to display whenever the devices is disconnect, even when it successfully collects all data.

 

I am trying to apply this to multiple devices, but the error does not activate until all devices are disconnected instead of detecting each separate device.    

Viewing all 66808 articles
Browse latest View live


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