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

Why DAQmx Nsamples mode does not work?

$
0
0

I just a set of NI DAQ devices (PXIe1085 and PXIe4303). I tried to fetch N sample data points at defined sampling frequency. But there is an hardware error message always occurred. The error message does not specify which part of hardware does not work. Only one sample (on demand) mode works for me

 

Is there is any setting or accessory missing? Or is the hardware is broken? I'll appreciate any inputs that can fix this problem.1.png


Graphics-related slowdown "permanence" until LV is closed completely - why??

$
0
0

Hi All,

 

I am having a weird problem with a VI I use to view data.  I've attached the VI for reference and a few screenshots of it being used with data, but unfortunately I cannot upload the data itself.  This means you will not be able to try to replicate the problem, but I have verified it on two separate (and very different) windows machines so I don't think it is related to my PC or particular LV installation. (LV2017.0f2 in both cases).

 

The VI reads data from N files and plots a bunch of different metrics computed from the data.  The front page has 5 tabs as described below:

1) XY Main View: lots of datapoints graphed per file

2) Linearity:          lots of datapoints graphed per file

3) Time Domain:  lots of datapoints graphed per file

4) Rbr Comp:       only 1 datapoint  graphed per file

5) Statistics:         only 1 datapoint  graphed per file

 

When reading in a small number of files (~10), the front panel is quite responsive when switching between tabs.  I have an event structure used to trigger a re-draw of the graphs on the tab being switched to (which has been necessary for the data to display correctly, no big deal).

 

When reading a large number of files (~100), the front panel is quite laggy when switching among tabs 1-3 (the ones with lots of datapoints per file on their graphs).   Fair enough; I am asking a lot of the drawing engine.  This doesn't bother me much.  Switching among tabs 4-5 is still speedy.

 

However, the problem that is bugging me greatly is that: if you stop the VI after reading a large number of files, and run it again to view a small number of files, the lagginess that was originally only present for the large number of files remains!  Again it is only among tabs 1-3, but still!  All of the graph objects are cleared both at the end of running (if stopped by my stop button) and at VI initialization before files are selected.


The only way that I have found to get the front panel to become as responsive as it should be with the small number of files is to close the instance of LabView on the machine completely.  I have tried just closing the VI, closing the project completely (leaving only the LV initialization/splash screen), and neither are enough.  LV must be completely completely closed.

 

I have no idea how to approach fixing this problem.  Any advice is appreciated.

Myrio driver not installing properly.

$
0
0

Hello, 

I have  a MyRio whichI run the labview project on it. It was working properly before the windows getting update.

Now, when i connect the myrio to the surface(which the program is on it), it doesn't recognize the myrio. in NIMax it cannot connect to the myrio as well. 

I connected that to another computer and it works perfectly. 

There is no rolleback for the driver, i uninstall and reinstall it again,update the driver, brows the driver to the correct location but there was no luck. 

It founds the driver as "Generic USB-EEM Network Adapter#2". 

What can i do?

 

Thanks for your help.

VISA TCP/IP error when using LabVIEW but NOT when using NI MAX

$
0
0

This is a strange one.  I have an instrument (B&K Precision 2563 MSO) that I am trying to send messages to/from via its Ethernet connection.  In MAX, I can add the instrument and use the test panel to send an *IDN? query.  Everything works as expected.  I can also do the same thing when I use the Instrument I/O Assistant, but that ONLY works so long as the panel is open, meaning that when I hit the "Run" button on the assistant, it works properly and I can parse the information when it is returned.

When I do the smallest possible VI, or when I close the I/O Assistant and attach wires to it, I always get a -1073807343 error (0xBFFF0011) on the write.  I have tried this out on LabVIEW 2009, 2015, and 2017 with the same results.  The primary machine (LabVIEW 2015) is a Windows 10 machine and is new, out of the box, with nothing on it but LabVIEW, the drivers for the instrument from the company, and Wireshark (which was added after the problem surfaced in order to do the following debugging).

I threw on a copy of Wireshark so that I could see the messages to and from the instrument.  When I used NI MAX, the VXI-11 messages looked good.  When I used the smallest possible open-write-read-close VI's in LabVIEW, the messages looked... ummm... smaller?  I'm no expert on VXI-11 protocol, so no idea on this one.

SO... I coded up some TCP/IP VI's and copied the important parts of the good VXI-11 messages that NI MAX generated when running the IDN query.  And they ran with no issue and I got the data back that I expected.  I'm enclosing a screen shot of the VI with both parts -- VISA read/write and TCP/IP read/write.

Though I know that I could re-code all of the drivers to use TCP/IP VI's, that would be a monstrous time-sink.  I would like to get the VISA code working.  Please advise.

NI-6501 device not properly installed using DAQ 17.5 and LabVIEW 2017

$
0
0

I have a windows 7 64-bit system and a LabVIEW application installer created using LabVIEW 2017.  My application controls a NI USB 6501 so my installer includes the DAQ runtime 17.5 and the DAQ configuration support 17.5.  When I run my installer on my system everything seems to install just fine.  Then I plug in the NI USB 6501 hardware and it shows up on Device manager but with a yellow warning triangle.  On NI MAX I can see my device listed but the space where you put the name of the device is not available nor are any of the test panels.  Why is this happening?  Why is the device not properly being recognized under windows?  Is there a compatibility issue here?

Writing data to Arduino with NI VISA.

$
0
0

Hello all,

 

I'm working with a system with currently consists of a python gui that controls a piece of hardware through serial usb communication with an arduino and need to convert the GUI to LabVIEW.  In essence, the python script is generating 128 points of a sine wave and writing them to the arduino, which parses the data and sends it to a DAC IC via SPI. When the arduino is ready to receive data, it sends FF over the serial port. So far, I have a code that initializes the VISA device, generates a waveform 128 points at a time, and writes them to the device. However, I'm getting an error when I try to write the data using NI VISA in LabVIEW.

 

 

If I write "\r\n" (hexadecimal D, A) to the COM port, I get no errors, but when I try to write 128 16-bit zeros (256 8-bit zeros), followed by "\r\n", I get the error:

VISA: (Hex 0xBFFF0000) Unknown System Error (miscellaneous error).

 

I realize this is all very vague, but there's a lot going on so I'm trying to keep it simple and seek guidance of where to begin in trouble shooting.

 

Here are snapshots of the code pertaining to the VISA communication. I don't have much experience with serial communication with labview, so I just want to make sure I'm not doing something obviously wrong.

 

 

 

Getting timing errors while implementing the interleaving using the Labview IP filter generator

error 1073807246 cRRIO 9074 migrated to cRIO 9030

$
0
0

Hello again,

 

In a current LV 2015 project in hybrid mode I replaced a cRIO 9074 with a 9030. Its all running fine, RT main vi launches all the subvis for instrument communication. But then the subvis don't go past initialisation. It seems the visa ports are blocked by another application. When closing the RT Main vi, I get an error code 1073807246. Plus in MAX, if I want to open the port in question with open in visa test panel, it says, port is in use already.

Error opening resource:

visa://10.4.4.133/ASRL6::INSTR
VISA:  (Hex 0xBFFF00A7) The remote machine does not exist or is not accepting any connections. If the NI-VISA server is installed and running on the remote machine, it might have an incompatible version or might be listening on a different machine

I tried this already:

http://digital.ni.com/public.nsf/allkb/E99D5E753DA17628862580BB007D2081

visa server is all the same, its a clean install of LV2015 SP1


Continue upon error

$
0
0

Hi All,

 

New to labview and have had a dig through the forums but couldn't find a relevant solution. I have two VIs (LV-2017), one in the lab continuously collecting data and writing a CSV file onto a network drive (every 2 mins). The other in the office, displaying the data by graphing the data from the network drive (reading every 10 mins). Each file is named in the format 'name_dd_mm_yyyy', so there is a new file created as the date changes and this is appended to throughout the day. This works fairly well except over the stroke of midnight where, based on the write and read intervals, occationally the read.vi looks for a file that the write.vi has not created yet. This, of course, causes an error and stops the read.vi from continuing.

 

What I'm thinking I need to do is either, somehow delay the read.vi to look for a file dated 10 mins in the past so there will always be a file when read.vi looks for it OR somehow enter some way of ignoring the 'no file found' error. I do not have the slightest clue how to do either. I'm using the 'Format Date/Time String' block to write the file name and append it to a path constant. Are there any tried and tested solutions that are used to handle this kind of thing?

 

Thanks in advance.

Event - value change of indicator => bug?!!!

$
0
0

Hi,

I want to detect the change in value in my indicator, I managed to do it with this solution that you see in the photo below.

example.pngBut my HMI bug when i do that. wath's the problem? and do you have an other solutions for detect change of value of indicator.

Thank you for your help.

Read two analog signal

$
0
0

Hello,

I am using Labview 2017 with a LattePanda, and my problem is that I can't read two analog signal.

I have to get the temperature and the luminosity, both sensor works fine alone but when I want to make them work together I have weird results. There is my example :

Read2analog.PNG

I have already test several way, and on this way I read the temperature one time and then I read the voltage of the light sensorfrontpanel_2analog.PNG

But the temp sensor vary very much and I don't understand why !

I hope you could help me ! and sorry for my bad english !

System tab does not want to change colour

$
0
0

In the program attached, i use a tab control attached to a system tab. The system tab seems to stay white, even when I simply click and add a new one via the controls pallet. Whatever I do, whatever I try, i cannot change the colour. Not with a proberty node with a constant or a control terminal. 
Anyone have any idea's on why this does not seem to be working?

Data acquisition from 7am to 9pm

$
0
0

Hi guys,

 

I'm recent to the LabView world so I've encountered some problems during my fairly new work with it.

 

I developed a monitoring and data acquisition program for the writing of voltage, current and power values obtained from 4 separated PVs. As you can see from the image attached, I have 2 time conditions with which the user can choose when to begin (7am) and to finish (9pm) the writing to the measurement file. 

 

The thing is: the writing does not begin at 7am as pretended nor does it stop as 9pm, as it continues to record data in a different file after that.

 

Hope you can help me

 

Thanks,

Francisco Nunes

Ip Camera

$
0
0

Hi friends,

I have an İp camera (Panasonic SUD-638). And i want to take video stream. I searched a lot time and NI says "You can only use Basler's and Axis's Ip cameras. But i have only this camera. How can i take this video stream? Do you have any idea?(Sorry for bad English).

vi Call by reference subpanel update value connector pane problem

$
0
0

I have to initialize a cluster (rs232 serial configuration) and modify it in a a subvi into a subpanel. The problem is that the values in output from the subvi return at previous value. I attach the vi and the problem is in state case prova3 changing a rs232parameter. I really appreciate any help you can provide. Michele 


Modbus RTU labview communication issue

$
0
0

Hi all,

     Here i am interfacing TAIE FU 400 temperature control with labview though modbus rtu protocol using RS485, at first i downloaded modpoll application and interfaced using USB to RS485 transreceiver module with temp controller and i able to set the values in a controller but same when i try use with labview which is bit confusing from the beginning itself, can anybody help me go through this?. 

Thank you in advance for your reply

Regards

Dinesh

NI Vision Assistant: tracking motion in real-time

$
0
0

Hello!

 

We're a group of engineer students who are trying to use NI Vision Assistant 2014 SP1 to track motion in real time, and use the results from the tracking as input in a LabView programme.

Is it even possible? When we search the web for tutorials it seems like we need some kind of a complementary module, Vision Development Module e.g. 

We would be grateful for a swift reply, since we have very little knowledge of this kind of programming, and very little time to try and solve this problem.

Read the PDF File and want to convert as text

$
0
0

Hi,

 

In Labview, I want to read the PDF file and want to convert as text file. how to do with functions available in Labview?

FPGA data mismatch

$
0
0

Hi

I am trying to send a data packet of 9 bytes to a stepper motor driver over FPGA on a cRIO 9066. The first VI I used was built entirely on the FPGA and I successfully sent the data. When I moved the data array to the host/computer and kept just the I/O on the FPGA, it insists there is a data mismatch. Why is this? I would really like to be able to send the data from the host as it changes based on what I am trying to get the motor to do or read from the onboard encoder. 

Error -200284

$
0
0

Good evening,
the attached VI acquires data from 3 C-series modules (9205.9225.9203) installed on a cDAQ 9188. My problem is that sometimes it succeeds perfectly in the synchronous acquisition, other times it appears the error 200284 concerning the non successful acquisition of some samples. I tried to read the different solutions proposed in the forum by increasing the sampling rate or reducing the number of samples or even setting the timeout of the DAQmx Read differently, but I can not solve the problem. I only remember that the part of the code relating to the synchronization of the 3 cards has been successfully proposed by you of the National Instruments.
I kindly wait for your help. Thank you.

Viewing all 69503 articles
Browse latest View live


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