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

Generate unique triangle wave with controllable rising and falling time ratio

$
0
0

Hi, there,

 

I have built a customized function generator to generate a unique triangle wave for my project. Because the basic function generator vi can only support standard triangle wave. The ratio between the rising time and falling time cannot be modified. Here I generate an array for the wavetable and feed it to the arbitrary wave block. The ratio can be changed by setting the wave ratio. All the .vi files are listed here. arbitrary waveform test.vi is the main function.


Picking up where someone else left off...

$
0
0

Good Moring all,

Like everyone who has ever taken on a new position and has had to pick up where their predicessor had left off, there are typically tons of questions (particularly when the predicessor had left the company.) My particular question is regarding an error converter sub vi that I can not open and is vague in its reference to its parent vi. I am have used LabView in the past but I am quite rusty. I can not tell if this is a standard sub-vi fromthe 2017 version Labview set up or if it is one my predicessor had made and is now broken? I am attaching the sub-VI and its parent for refference. Any direction on this issue would be greatly appreciated.

Kind regards,

Karl

Programmatically deploying/undeploying shared variables individually

$
0
0

Is this possible yet, or must the entire library be deployed/undeployed via the traditional library invoke methods? I have (to some regret) kept everything in a single library and would now have to create separate libraries and (seemingly) re-reference each variable contained in the new library. If I must go this route still, is there an easier way to move and re-reference these without breaking everything? Every item I will want to move is basically a sub address mapped to a single master I/O Server Modbus binding. 

VISA Read buffer size? (Rigol Oscilloscope)

$
0
0

I am attempting to read the full internal memory of a Rigol MSO4024 Oscilloscope over a USB cable. I seem to be only able to read the first 4 million data points. I should be able to extract the full 70 million data points for the channel, or whatever memory depth the 'scope is set to.

  • I am not timing out.
  • Data wise, I get 4,000,012 bytes. The first 12 bytes is just header info. The remaining 4 million bytes correspond to 4 million data points.
  • I don't believe this is a 'scope setting issue.
  • Attempting to set the I/O buffer size with the corresponding VI just causes an error.
  • The Read VISA byte count is set to 500 million
  • Using LabVIEW 2017, 32 bit

Any insights into how to retrieve more that the 4 million bytes?

Connecting different VI's

$
0
0

 Hello everyone,

I'm having problems with LABVIEW. I would like to control eight LED indicators from eight buttons, simple, but I wish the two were in different VI's (one for buttons and one to indicators). How can I do this?

 

Thanks,

IQ signal frequency shifter cannot downconvert to DC

$
0
0

Hello guys, 

Now I use labview fpga module to generate and acquire IQ signal. The structure is create DC IQ first then use frequency shifter (f) to upconvert frequency to generate AC IQ. To acquire the amplitude and phase, I use frequency shifter (-f) to downconvert the AC signal to get the DC IQ, then I can use the cordic to calculate the amplitude and phase. 

This is my code screenshot:

IQ_fpga.PNG

So now I am sure that the outputs are good quadrature AC signals, but the downconverted I and Q (I_test and Q_test in the screenshot) are still AC. Why would this happens? 

Block diagram messes up by itself

$
0
0

I am working on a vi with multiple states and when I go back to a well organized state that I made a couple hours ago, I see the block diagram is messed up. most of the constants are shifted toward one direction. See attached image, the blue circle is for what it was before and the red one is after the earthquake. I am using LV2018 and I had the same issue in LV2017 too. 

Any help is appreciated.Capture.JPG

Having an executable expire

$
0
0

I was curious what the best way would be to have an executable expire after a certain amount of time, but I don't want the system to be fooled by having someone turn back the clock on their computer. There will also not be internet where this exe is running, so it can't pull current time that way. 

 

I was thinking just save the current time into some sort of locked file and load it at run time. If the next time read is prior to the date/time that was previously saved then throw some error to the user. 


Unexpected Behavior with Matrix Multiplication

$
0
0

I'm experiencing some strange results with the matrix multiplication VI.

 

Specifically, I'm trying to test the validity of a rotation matrix by checking that the inverse is equal to the transpose, ie. that R x R' = I. However, when I multiply a 3x3 matrix by its inverse, the result is a matrix with 1 on the diagonal and non-zero elsewhere. 

 

This is my first time doing linear algebra in LabVIEW, so I'm prepared to have made a foolish mistake, but I've attached a screenshot that seems pretty clear cut. Any ideas as to what's going on here?

Store string input in a txt file and extract later

$
0
0

Hello Labview Community,

I'm writing af code, which prompts a user to type in a username and password. Later, when the corrent button is pressed, the user is directed to a new tab, at which one has to type in the previous typed username and password.

 

My problem is basically, that my program saves the input of username and password as a string in 1 line in a txt file, whose path I have to chose every time i run the program. I would like to do following improvements, but I have a hard time doing them:

1) How can I just save a certain file path for my input of username and password, so I dont have to choose a path every time i run the program?

2) How do I make my VI read the typed username and password, and compare that to a new input of username and password, in order to execute the rest of the program? My own idea is, that i want to use a simple compare function. But since i have a had time doing 1), then this is difficult. 

I would like to channel the read username and password to the constants at the red arrows:

VI.PNG

3) I have thought about making my VI arrange my input of username and password in columns in the txt file (or just seperated into different lines) which i can read more easily. But i don't know how to read a certain area of a txt file.

I hope you guys can help!

Resize Radio Buttons?

$
0
0

Is it possible to resize Radio Buttons? I have been poking around with one and believe that it is impossible. 

 

I would like to use a row of Radio Buttons to select what screen to display on a touch screen monitor.

 

What is the easiest way to make a row (Array?)  of Boolean Controls act like a Radio Button control? 

Temperature PID in Labview using a labjack

$
0
0

Hello! I am trying to make a temperature PID controller and am having trouble getting my cartridge heater to respond. I am using the example provided by NI but have put in the components I am trying to control. I have a thermocouple indicating the temperature (wired to process variable temp) and a cartridge heater as my process variable. I have the cartridge heater wired to the output but cannot get the temperature to change. Can someone tell me if I have my VI wired correctly? Also, I need the state to be determined by the PID but am not sure how to set up my VI in this manner. I have included my VI. Any assistance would be appreciated. Thank you!

NI 845x error.

$
0
0

(1)  This vi open from one Dir. have this error, see picture.

first and 2nd file. 

 but

(2) if open in different Dir, it is OK

see 3rd file. 

(3)  How do I correct this error?

see picture? 

 Thanks

 

the robot arm model i built can't hold position, why?!

$
0
0

Hi everyone,

 

I'm new here. The problem i encountered is simulation/software only, no hardware attached at all. I used labview 2013 robotics module.

 

The problem is like this: i built a ".wrl" robot arm model with solidworks, imported/built the model as the instructed here(http://www.ni.com/white-paper/14133/en/#toc4), and i added 6 joints as hinge, made sure every component is connected, and then built a new robotics simulation project, with a scene made out of this robot model plus only a bare plate.

 

However, when i set the angles of each joint with "move servo.vi", the robot moves, but also trembles +fluctuates in the final position, which is not what i expected. How can i make it static and still in the final position? Thanks so much!

Issues in ADC acquisition in triggering mode

$
0
0

Hi

I attached the VI here as the reference. In VI, I planned to generate the pulse with some logic, and I want to use this as trigger input for ADC. When DAQ assistant block (along with waveform chart block) is removed, the pulse appears fine at Port 1, pin 2 and 3. When the DAQ assistant is placed (with waveform chart block too), the pulse does not appear at all, at pin 2 and 3 of port 1. I am not sure, why there is the issue in pulse generating when DAQ assistant block is placed. Could you please help me to identify the issue.  

 

Thanks

Ramesh B 


Issues in ADC acquisition

Error with write to binary file 1430

$
0
0

Hi, I'm new with the labview and I'm making a labview to measure voltage with rechargeable battery when it charges or discharges.

I am using Keithley 2450 SMU. It works totally well controlling the SMU but I'm stuck with saving the data. It keeps occuring error from write to binary file sub vi. I don't know what to do. Is there anyone who can figure this out please. 

Need a Labview Core 2 Course manual ( > 2015 )

$
0
0

Hi all , 

Did anyone have a Labview core 2-course manual 2015 edition above ( Release date ) ? If yes means pls attach here . 

labview ask for unused drivers while creating installer

$
0
0

hi,
i was creating installer for my code where NI drivers are not used at all. its simply based on modbus libraries. but while reating installer for the same , it ask me for NIDAQmx drivers.

 

I am not understanding the reason behind it. can anyone help?

Screenshot is attached.

Thanks in advance

Error 88710 with DAQ NI USB-6343 on Labview 2017

$
0
0

Hi everybody,

 

after some 10 years of honorable service (literally several hundred sessions with different computers, windows versions earlier than win10, and PCi DAQ boads) a VI that I use for continuous unsupervised data acquisition (typically for 48 hours) has stopped working.

 

In particular, after less than 1 hour, the VI stops and issues the error message

Error -88710

Possible reason(s): The specified operation cannot be performed because a task is in the process of being aborted or a device is in the process of being removed from the system. Wait until the abort operation is complete and attempt to perform the operation again.

 

This has now occurred several times on a brand new PC with Intel i5 processor, disconnected from internet, with plenty of RAM and disk space, WIN10, Labview17, a USB3 port and a NI USB-6343 DAQ board. I should add that there are (rare) times the VI runs smoothly also on this computer with this same setup, so this is not some trivial incompatibility issue.I also tried with a different USB3 port: same issue.

 

Did something similar happen to anybody, and if so, how did you manage to fix the issue (if you did ...)?

 

I would rule out issues with the code because, as I wrote, this has always worked fine. 

 

Could it be an issue with WIN10 handling the USB connection with the DAQ board? Or withe the DAQ board itself?

 

Honestly, I don't know where to start from for troubleshooting, so any hint/suggestion will be precious.

Thanks in advance to those who will help.

 

Viewing all 68958 articles
Browse latest View live


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