Write VISA - escribir una variable continuamente
Hola a todos,
he diseñado una función de PID en labview y ésta me saca una variable de salida que la debo mandar al Write VISA para que escriba en el puerto serie continuamente, ya que la variable se va modificando todo el rato sin parar. Mi duda es como hacerlo porque lo he intentado de mil formas y me estoy desesperando. Nose si esto será posible de todas formas.
Gracias por vuestra respuesta de antemano!
Adjunte su archivo VI y snapshot
Similar Messages
-
Local Variable or Write VISA Icon?
Suppose that you have a control in front panel to set amplitude of generator. If you do a loop in which you desire to increse every loop the amplitude it's better use a local variable of control in front panel or Icon WRITE of VISA to do this? What is the better solution?
Message Edited by Michelle1892773 on 02-23-2010 04:47 PM
Solved!
Go to Solution.Writing to the local variable in your code will do absolutely nothing in setting the instrument.
-
COMO ESCRIBIR UNA FORMULA PERSONALIZADA EN NUMBERS, ESPAÑOL
Estoy intentando poner una formula tipo:
(constante 1 * columna) + constante 2
Como se escribiría con numbers?I wish to add :
Spanish versions are available from :
http://support.apple.com/es_ES/manuals/#macosandsoftware
and are named :
Numbers ’09 Manual del usuario
http://manuals.info.apple.com/es_ES/Numbers09_Manual_del_usuario.pdf
iWork Manual del usuario de fórmulas y funciones
http://manuals.info.apple.com/es_ES/Manual_del_usuario_de_formulas_y_funciones.p df
Yvan KOENIG (VALLAURIS, France) samedi 5 novembre 2011 14:25:14
iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
My iDisk is : <http://public.me.com/koenigyvan>
Please : Search for questions similar to your own before submitting them to the community -
Escribir una funcion en labview que llame a una de simulink
hi,
I would like to know how can I do to write a string on the front panel of Labview and write simultaneously in the Matlab command window.
Thank youLo que podrías hacer es realizar un vi que inicialice el teclado y que cuando escriba en MatLab lo tome labVIEW en un string, la otra alternativa puede ser por utilizar el MathScript de labVIEW que trabaja con un MatLAb pero mucho mas pequeño
-
What's the difference between visa write serial and visa write visa
Is there any difference, the blocks look the same?
Eric
Solved!
Go to Solution.VISA write is located in the VISA pallet and in the serial pallet. This is for convenience but they are the same node.
=====================
LabVIEW 2012 -
How can I write VISA in labview to communicate with instrument using RS485
my instrument has a Modbus communication procotol, how can I use VISA write or read to communicate with the instrument? Thanks!
RS485 is simply a physical-layer protocol defining pinouts, signal levels and the like. To make the connection you need either an RS232-RS485 converter (check with BlackBox) or an RS485 serial IO card (check with NI). Either way, there should be no changes required to you Modbus drivers or other software.
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps -
Actionscript 2, Best way to write/read an external variable?
Hi all
I currently have a flash video player and I want to add some code that will update a variable in an external .as or .txt file. I then want to be able to pull this variable into a different .swf when required.
My variable I want to create will be CurrentVideo and it needs to be a number e.g. _global.CurrentVideo = 2;
If anyone could help I would be very grateful
Thanks
Trevuse the loadvars class to read your textfile:
var sendLV:LoadVars=new LoadVars();
var receiveLV:LoadVars=new LoadVars();
receiveLV.onData=function(src){
trace(src);
sendLV.sendAndLoad("yourtextfile.txt",receiveLV,"POST"); -
How to write in statement with variable
I'm calling a PL/SQL procedure, passing in 5 variables, and returning a reference cursor to an ASP page that is calling the procedure.
The procedure looks like
procedure some_procedure(var1 IN varchar2, var2 IN varchar2, var3 IN varchar2, var4 IN varchar2, var5 IN number, p_cursor OUT sys_refcursor).
I have two problems:
First, var5 is a number that is going to be used in the order by statement to determine which column to sort by. However, it doesn't actually sort anything when putting it at the end of the select statement in the cursor. The end of the statement looks like 'Order by var5;'.
The second problem is, var3 is a comma separated list of numbers that are passed in, but they are passed in as varchar2. I'm comparing them against a column that is a varchar2. I want to do an 'IN' statement to only pull records where the record is in one of the numbers that was passed in. The statement looks like:
and segment2 IN (var3)
But it doesn't pull any records back when I pass in a normal string.
Can someone help?!? This is so frustrating!!The cause of your frustration is that you are trying to do two things that can not be done the way you are trying to do them.
Your ORDER BY clause must be created using dynamic sql in which you concatenate together the various pieces like this:
CREATE OR REPLACE PROCEDURE child (
p_NumRecs IN PLS_INTEGER,
p_return_cur OUT SYS_REFCURSOR)
IS
BEGIN
OPEN p_return_cur FOR
'SELECT * FROM all_tables WHERE rownum <= ' || p_NumRecs ;
END child;
/Examples at: http://www.psoug.org/reference/ref_cursors.html
The second problem is that related to your comma delimited parameters in a variable. Oracle never, ever, works that way. What you must do is show in my demo "Complex IN Demo" here: http://www.psoug.org/reference/conditions.html -
Which is better? To wire a URL or a reference into Datasocket read/write?
Does wiring in the reference save processor effort/time? Do I have to close the DS reference before I can do other things to either the same DS connection or other connections? The examples I have looked at tend to use URL's, why is this?
(I am running Labview 7.0 on Windows 2000)I'd like to bring this thread back up because I'm having the same issue as Michael here.....
I'm stumped on a the functionality of the Read/Write mode for the Datasockets Open VI.
I've attached a picture below showing the 2 different methods of
opening Datasocket references....In one case, I use the Read/Write mode
for DS open, in the other case, I use 2 DS opens: One for READ and
another for WRITE. For some reason, only the latter program works
properly (when I open READ and WRITE separately). Why is this?
I
thought that if the READ/WRITE MODE was used, the output reference can
be used with the Datasocket READ and Datasocket WRITE Vi's as shown in
Top Vi of picture. Instead, It seems I'm unable to "change" the state
of the Datasocket tag using the the Top Vi.
FYI: I'm using
DS server manager to create the item. I've also gave proper privileges
to each computer so that they can communicate with the DS server. It
obviously works since using the bottom VI, I get the desired results.
What am i doing wrong? Are my expectations for the Rea/dWrite functionality correct?
Message Edited by RegisPhilbin on 07-15-2005 11:11 AM -
Data Acquisition - using local variables to write data to a file
Hello,
I am running a Data Acquisition vi (currently in LabVIEW 7.1 but soon to be updated to 8.2) that collects ~100 parameters of data from several sources contained in a while loop. The current configuration (which I did not write) uses very few subVIs and writes to ~100 local variables to store each parameter. It then reads all the local variables and builds an array of all the strings, converts then to a spreadsheet string, then uses the write characters to file function to append to a datafile. I am trying to clean things up and have came up with subVIs to collect the data from the following sources:
8 serial port sources collecting btwn 8 and 20 parameters each
~15 thermocouple readings
~10 analog inputs
~20 parameters read off an ARINC 429 bus.
I have come up with a subVI to read each of the sources and have placed the subVIs in the while loop. Each subVI outputs the data that it collects in array or cluster form. I was wondering how best to write each parameter to a CSV file at between 1 and 10 Hz. Should I write each subVI output to a LV and then read them off as was done before (the difference being that I have reduced the # of LVs to ~10 vs >100?
I should add that precise timing is not that important, so if all the subVIs are not collecting simultaneously (which I understand that they won't be), it does not really matter.
Thanks.Hi jilla,
jilla wrote:
What I think that you are saying is to turn the outputs of the 4 subVIs into inputs of a 5th subVI that writes to the data file. Correct?
Yes. It may sound like a fine-point, but I beileve it's better to create a VI specifically for formatting data - in your example, 4 arrays IN, a single string OUT. Then write the string to file as a seperate operation. GUI-displayed data can go through a similar transformation, the four arrays wired to a subVI which builds output-structures specifically for display. It's a beginner's mistake to put lots of individual controls and indicators on the screen when groups of them are naturally related (in an object-oriented sense.) Use clusters to group related controls - this will keep the diagram much cleaner.
One more question: at what point (either # of data points or frequency of data collection) does it become necessary to use queues? Thanks.
Well, there's not really a clearly definable "point". I'd say if your update-rate climbs above 100Hz, or you witness poor program or system performance, then it's time. The scenario you've described is a fairly simple acquire/display&log loop - and simple is good. Then-again people can't see/react-to updates faster than about 10Hz - so it doesn't make sense to sacrifice performance - if performance becomes an issue.
Re: queues: Queues are sometimes used to buffer data that's "produced" in one place and "consumed" in another.
Here, if/when logging data, you're logging with every DAQ. I wouldn't recommend using a queue to transport data from a "DAQ loop" to a "Logging-loop" - those functions can be in the same loop. Should/could a queue be used to get data from a "DAQ loop" to update the GUI at a lower frequency? Sure, but a Notifier might be a better choice. Further, in the (simple?) program you've described, you might use a case structure (True/False) to only update FP indicators every "X" iterations - a simple solution that doesn't require Queues or Notifiers.
Cheers!
"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare) -
Dsc 8.2.1 cannot write to shared variables error 1950679035
I am getting error 1950679035 ni_tagger_write when I try to write to my shared variables. I recently upgraded from labview 8.2 to 8.2.1. I also upgraded to DSC 8.2.1. During the install, I had to upgrade my computer to SP2 (windows xp), which installed mdac 2.8 sp1 for use with dsc 8.2.1.
I have the windows firewall turned off, I checked with our IT dept and no upgrades were completed overnight (as the program worked yesterday using 8.2). I checked and MAX will get a connection with the fieldpoint unit. Everything is deployed from my machine, currently running under the dev environment.
I have looked at this thread, but I was not able to get anywhere, http://digital.ni.com/public.nsf/websearch/0D7B86F4B4D19A5E86256F9A006EECB1?OpenDocument and here.
Even though I have windows firewall turned off, I added all of the execptions to the windows firewall list.
It appears that the shared variable library is deploying correctly, as the the windows says that it has (when you run a vi). I am progmatically deploying the vi.
I looked at the variable manager and I attached a screenshot below. I am not sure if that means that it did not deploy correctly or not.?? (I was only watching a couple of the variables, I have about 20 total)
thanks
Kenny
Attachments:
variable manager.jpg 55 KBIt appears that my problem has been solved. Apparently our network had an internal error for a quick second and my nic did not like it. So after I restarted again (fourth of the morning) it started working now.
Kenny -
How to Write a CUstomer Exit for a variable in BEx
Hi,
How to write a customer exit variable in bex Query designer
Do i need developers key for this (If so what type of key do i need so that i can ask basis tean to generate)
Info Object: ZEXP_DTE (Expiry Date)
Variable on ZEXP_DTE :
ZEDTE
Type: Customer Exit
Can any one please tell me how to write a code in CMOD from this (Step-by Step)
Expiry Date > Current Cal Day
As arun said
'l_s_range-low = SY-DATUM.
l_s_range-opt = 'I'.
l_s_range-sign = 'GT'.
APPEND l_s_range TO e_t_range.'
I want to insert the above code for the above customer exit but as i am new to BW as ABAP please explain me what are the steps involved in CMOD
ThanksHi,
To write customer exit for a variable, you require Access key.
Contact your BASIS to get that.
Access Key,BASIS?
To write Customer exit,
User Exits
User Exit for Variable
/thread/809285 [original link is broken]
Hope these helps u...
Regards,
KK. -
Hola tengo un probrema con mi cuenta iCloud me falto escribir una letra en el correo y ahora no se como agregarla esta así franlinjorge6 pero es asi franklinjorge6 ayuda.
If your iCloud ID is correct but you put the wrong ID in your phone, sign out of iCloud on your phone by going to Settings>iCloud and clicking 'Delete account'. Then sign in with the correct ID.
If your iCloud ID is incorrect you must create a new iCloud account with the correct ID.
Si su iCloud ID es correcta pero puso el ID mal en su teléfono, la sesión de iCloud en su teléfono, vaya a Ajustes> iCloud y haciendo clic en "Eliminar cuenta". Luego inicia sesión con el ID correcto.
Si su iCloud ID es incorrecto debe crear una nueva cuenta de iCloud con el codigo correcto.
(Translation by Google) -
LEER ESCRIBIR PUERTOS SERIALES DEL FP2120
Hola a todos :
Queria preguntar una duda, sobre los puertos seriales del FP2120, estos puertos actuan del mismo modo que el de una CPU al que se puede leer y escribir sobre el, si es asi que numeros tienen estos puertos y si se programan igual que el puerto serie de una CPU cualquiera.
Si alguien sabe por ahi se agradece el detalle
Gracias!!Que tal Daniel,
Recuerdo hace mucho haber hecho algo similar en un cFP. Lo que no me acuerdo para serte sincero es si lo hice usando el cFP como un puerto serial remoto (desde una PC) o si hice un servidor interno para el cFP. Por lo que menciona ese documento entonces debi haberlo hecho haciendo un servidor interno. Y tiene sentido ya que VISA Server creo que no se puede instalar en cFP, el instalador de aplicaciones remotas no lo muestra como opcion, o te marca un error al tratar de bajarlo.
No es muy dificil hacer un servidor, haz un VI que este corriendo en el cFP y recopilando un buffer FIFO del puerto serial, y en ese orden ese buffer mandalo por TCP/IP a tu PC, lo ventajoso de esto es que ya al recibir tu buffer lo tienes en ASCII y asi mismo lo transmites a TCP/IP. O bien, haz uso de las variables compartidas de LV, con esas puedes estar monitoreando desde una PC una variable de humedad que tienes adquiriendo por serial en tu cFP. Esta opcion tambien es via TCP/IP.
Nestor
National Instruments -
Hello,
I am trying to use LabVIEW 2010 to control 4 Watlow temperature controllers on one COM port. 3 are Model 96 and 1 is an EZ zone controller. Each controller has a unique modbus address, and I am trying to read from and write to individual registers (such as closed loop setpoint) using shared variables. I am getting return data when reading (although the data appears to be invalid), but am unable to change the value in the register by writing. How can I be sure that the Modbus server is sending commands to the correct controller?
Chuck
Solved!
Go to Solution.Peter,
Thanks for the reply. I have actually solved that problem. I realized that the Modbus server address has to be the same as the controller's Modbus address.
I have, however, run into another problem. Perhaps you could help me with that. I have a system with 4 Watlow controllers, 3 are series 96 controllers, one is PID only and 2 are ramping. The 4th controller is an EZ zone. I am using RS485 for communications and the controllers are all wired in parallel for communications and power.
I have set up 2 Modbus servers for 2 of the controllers.
This is the first I have ever worked with Modbus based communications. I have successfully programmed using the Modbus read/write VIs, and am wanting to move to shared variables. My questions right now revolve around addressing, Modbus I/O servers and COM ports. Specifically, at this point, I know the addresses need to match up between the server and the slave device (Watlow controller in my case), how many servers can I create and use on one COM port? If the number is limited, is there a way I can specify an address that I want the server to talk to? Will the broadcast mode work to request data values from the controllers?
I'd appreciate any information you can help me with, or if you could point me to some sort of concise 'How-To' for Modbus communication.
Thanks.
Chuck
Maybe you are looking for
-
How can I sync my iphone with a new itunes?
My iphone is synced to a desktop itunes and I want it synced with my new laptop. How can I synce everything on my iphone to the new itunes without losing everything
-
Can I use an Apple thumb drive to install 10.7 on my Dec 2011 Mini?
I have acquired a used 2011 Mini and want to "take possession" of it. The only painless way I can think to do this is to wipe it and install a new OS and user account. If I could make the existing user account mine I would be happy to do that. Indica
-
Error in ABAP Import Phase - 3 jobs failed
Hi, My installation of ECC IDES has failed in ABAP Import phase. 3 jobs has failed. I figured out from the logs that there are 3 loads that has failed. Failed loads are SAPPOOL, SAP0000 and SAPSLEXC. The prominant error in them are as below. Please a
-
Apple Moblie Device service is not started - Cannot be started.
Running Windows 7 64bit and iTunes 10.1.0.54 I've been able to sync my iPod in the past. Now, when I plug it in, I get the message "This iPod cannot be used because the Apple Moblie Device service is not started." Ok, so I try to start the Apple mobi
-
Can I monitor the users who are logged in Domain Controller?
Can I monitor which users are logged in the Domain Controller? Is there any features or hidden in Windows Server 2008 R2? it may be funny.but i just want to know. Thanks in Advance