How can I monitor the voltage output sent to each servo axis programmatically?
Hi I am wondering if it is possible to monitor the voltage that's being sent to a servo motor during an axis position movement (in particular quantities such as max voltage). I am using a PID controller to drive this servo motor.
Thanks
Vlad
Hi Vlad,
Unfortunately, I don't think there is a way to programmatically read the voltage output to the drive, as the voltage is all determined internally by the controller circuitry on the board. Depending on the controller though, you may be able to physically route the output terminal to a spare analog input channel and read in the voltage that way. This example Analog Input with 73xx Motion Card shows you how to program LabVIEW to do this.
Similar Messages
-
How can I view the text messages sent and received on one of the other phones on my plan?
You would have to view them on the other phone.
-
How can I monitoring the usage of an index in oracle 8i
Dear Gurus,
I known the Oracle 9i have this new feature "Identifying Unused Indexes" via ALTER INDEX MONITORING USAGE, but how can I monitoring the index usage in the Oracle 8i?
RegarsYou can't in 8i. However you can look at the SQL Text in the SGA looking for anything that matches the table name that the index is for and then look at the explain plan for the selects and updates. Pain in the xxx to do but it should give you the information.
-
How can I read the voltage from a serial port
I am fairly new to LabView and I am having trouble figuring out how to read the DC voltage coming out of an RF Power Supply through a serial port so that I can monitor the voltage every few seconds. In order to do this do I need to purchase a DAQ card or anything like that?
You would not need a DAQ card to read data over the serial port. You would, however, need a serial port. That may sound sarcastic, but it's not, since many manufacturers are ditching serial ports on computers. If you don't have a serial port then you would need to get something like a USB<->serial adapter or a serial port card that you plug into an expansion slot in your computer.
Assuming you've got that then you need to find the command set for the RF Power Supply, and write drivers for it so you can send the command to read the voltage, and then read the resposen. I would suggest looking in the Instrument Driver Network to see if a driver for your supply has already been written. -
How can i change the voltage of my power supply using my pci gpib 488.2 driver?
I need to be able to control the voltage outputed by the power supply. I have a pci gpib 488.2 and I downloaded the correct driver. I also don't no exactly how to use the communicator included in the measurement and automation explorer. When ever I type in the commands I get an error. If anyone can help me I would appreciate it.
thank youFirst see if you can establish communications with the power suppy using Meas and Automation explorer (MAX for short). If you can find your GPIB card in the directory tree choose it and then use the scan for instruments tool. If it can see your power supply it will give you it's address. Choose it and try the Communicate with my instrument tool. It will send a IDN? command to that address and it might return a string if the instrument understands the command. If not you will need to dig through the power supply manual to find the correct commands.
Using LabVIEW 2010SP1 and TestStand 4.5 -
How can we send the smartform output to mail.
Dear Friends,
My query is how can we send the smart form output to mail.
In my company,payslip are given to the employee in printed format.instead of that we need to send payslip in mail.how can i do..plz help me.
[email protected]The code below demonstrates how to retrieve a spool request and email it as a PDF document. Please note to process a spool request the program can be executed in background or foreground. Because of the additional functionality to allow this to work in both background and foreground it has made it a little more confusing soyou might want to start by looking at the background only program. Also see transaction SCOT for SAPConnect administration.
*& Report ZSPOOLTOPDF2 *
*& Converts spool request into PDF document and emails it to *
*& recipicant. *
*& Execution *
*& This program can be run in background or online and a spool request *
*& will still be created *
REPORT zspooltopdf2.
PARAMETER: p_email1 LIKE somlreci1-receiver
DEFAULT '[email protected]',
p_sender LIKE somlreci1-receiver
DEFAULT '[email protected]',
p_delspl AS CHECKBOX,
p_online no-display.
*DATA DECLARATION
DATA: gd_recsize TYPE i.
Spool IDs
TYPES: BEGIN OF t_tbtcp.
INCLUDE STRUCTURE tbtcp.
TYPES: END OF t_tbtcp.
DATA: it_tbtcp TYPE STANDARD TABLE OF t_tbtcp INITIAL SIZE 0,
wa_tbtcp TYPE t_tbtcp.
Job Runtime Parameters
DATA: gd_eventid LIKE tbtcm-eventid,
gd_eventparm LIKE tbtcm-eventparm,
gd_external_program_active LIKE tbtcm-xpgactive,
gd_jobcount LIKE tbtcm-jobcount,
gd_jobname LIKE tbtcm-jobname,
gd_stepcount LIKE tbtcm-stepcount,
gd_error TYPE sy-subrc,
gd_reciever TYPE sy-subrc.
DATA: w_recsize TYPE i,
w_spool_nr like sy-spono.
%_print LIKE pri_params.
DATA: gd_subject LIKE sodocchgi1-obj_descr,
it_mess_bod LIKE solisti1 OCCURS 0 WITH HEADER LINE,
it_mess_att LIKE solisti1 OCCURS 0 WITH HEADER LINE,
gd_sender_type LIKE soextreci1-adr_typ,
gd_attachment_desc TYPE so_obj_nam,
gd_attachment_name TYPE so_obj_des.
Spool to PDF conversions
DATA: gd_spool_nr LIKE tsp01-rqident,
gd_destination LIKE rlgrap-filename,
gd_bytecount LIKE tst01-dsize,
gd_buffer TYPE string.
Binary store for PDF
DATA: BEGIN OF it_pdf_output OCCURS 0.
INCLUDE STRUCTURE tline.
DATA: END OF it_pdf_output.
CONSTANTS: c_dev LIKE sy-sysid VALUE 'DEV',
c_no(1) TYPE c VALUE ' ',
c_device(4) TYPE c VALUE 'LOCL'.
*START-OF-SELECTION.
START-OF-SELECTION.
Write statement to represent report output. Spool request is created
if write statement is executed in background. This could also be an
ALV grid which would be converted to PDF without any extra effort
WRITE 'Hello World'.
new-page.
commit work.
new-page print off.
If p_online = 'X'.
Processing performed when program calls itself when run online
gd_spool_nr = sy-spono.
EXPORT gd_spool_nr TO MEMORY ID 'SPOOLTOPDF'.
EXIT.
endif.
IF sy-batch EQ 'X'.
PERFORM get_job_details.
PERFORM obtain_spool_id.
ELSE.
gd_spool_nr = sy-spono.
If executed online, it submits a program to perform the write statements
instructing it to create a spool request, this could be another program
which just performs the write statements and then exports sy-spono
to memory. But in this example it calls itself passing X to parameter
p_online, which takes it down an alternative procesing path.
submit ZSPOOLTOPDF2
with p_online = 'X'
to sap-spool
spool parameters %_print
archive parameters %_print
without spool dynpro
and return.
ENDIF.
Get spool id from program called above
IMPORT gd_spool_nr FROM MEMORY ID 'SPOOLTOPDF'.
PERFORM convert_spool_to_pdf.
PERFORM process_email.
if p_delspl EQ 'X'.
PERFORM delete_spool.
endif.
IF sy-sysid = c_dev.
wait up to 5 seconds.
SUBMIT rsconn01 WITH mode = 'INT'
WITH output = 'X'
AND RETURN.
ENDIF.
FORM obtain_spool_id *
FORM obtain_spool_id.
CHECK NOT ( gd_jobname IS INITIAL ).
CHECK NOT ( gd_jobcount IS INITIAL ).
SELECT * FROM tbtcp
INTO TABLE it_tbtcp
WHERE jobname = gd_jobname
AND jobcount = gd_jobcount
AND stepcount = gd_stepcount
AND listident <> '0000000000'
ORDER BY jobname
jobcount
stepcount.
READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
IF sy-subrc = 0.
message s004(zdd) with gd_spool_nr.
gd_spool_nr = wa_tbtcp-listident.
MESSAGE s004(zdd) WITH gd_spool_nr.
ELSE.
MESSAGE s005(zdd).
ENDIF.
ENDFORM.
FORM get_job_details *
FORM get_job_details.
Get current job details
CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
IMPORTING
eventid = gd_eventid
eventparm = gd_eventparm
external_program_active = gd_external_program_active
jobcount = gd_jobcount
jobname = gd_jobname
stepcount = gd_stepcount
EXCEPTIONS
no_runtime_info = 1
OTHERS = 2.
ENDFORM.
FORM convert_spool_to_pdf *
FORM convert_spool_to_pdf.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = gd_spool_nr
no_dialog = c_no
dst_device = c_device
IMPORTING
pdf_bytecount = gd_bytecount
TABLES
pdf = it_pdf_output
EXCEPTIONS
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
OTHERS = 12.
CHECK sy-subrc = 0.
Transfer the 132-long strings to 255-long strings
LOOP AT it_pdf_output.
TRANSLATE it_pdf_output USING ' ~'.
CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
ENDLOOP.
TRANSLATE gd_buffer USING '~ '.
DO.
it_mess_att = gd_buffer.
APPEND it_mess_att.
SHIFT gd_buffer LEFT BY 255 PLACES.
IF gd_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
ENDFORM.
FORM process_email *
FORM process_email.
DESCRIBE TABLE it_mess_att LINES gd_recsize.
CHECK gd_recsize > 0.
PERFORM send_email USING p_email1.
perform send_email using p_email2.
ENDFORM.
FORM send_email *
--> p_email *
FORM send_email USING p_email.
CHECK NOT ( p_email IS INITIAL ).
REFRESH it_mess_bod.
Default subject matter
gd_subject = 'Subject'.
gd_attachment_desc = 'Attachname'.
CONCATENATE 'attach_name' ' ' INTO gd_attachment_name.
it_mess_bod = 'Message Body text, line 1'.
APPEND it_mess_bod.
it_mess_bod = 'Message Body text, line 2...'.
APPEND it_mess_bod.
If no sender specified - default blank
IF p_sender EQ space.
gd_sender_type = space.
ELSE.
gd_sender_type = 'INT'.
ENDIF.
Send file by email as .xls speadsheet
PERFORM send_file_as_email_attachment
tables it_mess_bod
it_mess_att
using p_email
'Example .xls documnet attachment'
'PDF'
gd_attachment_name
gd_attachment_desc
p_sender
gd_sender_type
changing gd_error
gd_reciever.
ENDFORM.
FORM delete_spool *
FORM delete_spool.
DATA: ld_spool_nr TYPE tsp01_sp0r-rqid_char.
ld_spool_nr = gd_spool_nr.
CHECK p_delspl <> c_no.
CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
EXPORTING
spoolid = ld_spool_nr.
ENDFORM.
*& Form SEND_FILE_AS_EMAIL_ATTACHMENT
Send email
FORM send_file_as_email_attachment tables it_message
it_attach
using p_email
p_mtitle
p_format
p_filename
p_attdescription
p_sender_address
p_sender_addres_type
changing p_error
p_reciever.
DATA: ld_error TYPE sy-subrc,
ld_reciever TYPE sy-subrc,
ld_mtitle LIKE sodocchgi1-obj_descr,
ld_email LIKE somlreci1-receiver,
ld_format TYPE so_obj_tp ,
ld_attdescription TYPE so_obj_nam ,
ld_attfilename TYPE so_obj_des ,
ld_sender_address LIKE soextreci1-receiver,
ld_sender_address_type LIKE soextreci1-adr_typ,
ld_receiver LIKE sy-subrc.
data: t_packing_list like sopcklsti1 occurs 0 with header line,
t_contents like solisti1 occurs 0 with header line,
t_receivers like somlreci1 occurs 0 with header line,
t_attachment like solisti1 occurs 0 with header line,
t_object_header like solisti1 occurs 0 with header line,
w_cnt type i,
w_sent_all(1) type c,
w_doc_data like sodocchgi1.
ld_email = p_email.
ld_mtitle = p_mtitle.
ld_format = p_format.
ld_attdescription = p_attdescription.
ld_attfilename = p_filename.
ld_sender_address = p_sender_address.
ld_sender_address_type = p_sender_addres_type.
Fill the document data.
w_doc_data-doc_size = 1.
Populate the subject/generic message attributes
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle .
w_doc_data-sensitivty = 'F'.
Fill the document data and get size of attachment
CLEAR w_doc_data.
READ TABLE it_attach INDEX w_cnt.
w_doc_data-doc_size =
( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle.
w_doc_data-sensitivty = 'F'.
CLEAR t_attachment.
REFRESH t_attachment.
t_attachment[] = it_attach[].
Describe the body of the message
CLEAR t_packing_list.
REFRESH t_packing_list.
t_packing_list-transf_bin = space.
t_packing_list-head_start = 1.
t_packing_list-head_num = 0.
t_packing_list-body_start = 1.
DESCRIBE TABLE it_message LINES t_packing_list-body_num.
t_packing_list-doc_type = 'RAW'.
APPEND t_packing_list.
Create attachment notification
t_packing_list-transf_bin = 'X'.
t_packing_list-head_start = 1.
t_packing_list-head_num = 1.
t_packing_list-body_start = 1.
DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
t_packing_list-doc_type = ld_format.
t_packing_list-obj_descr = ld_attdescription.
t_packing_list-obj_name = ld_attfilename.
t_packing_list-doc_size = t_packing_list-body_num * 255.
APPEND t_packing_list.
Add the recipients email address
CLEAR t_receivers.
REFRESH t_receivers.
t_receivers-receiver = ld_email.
t_receivers-rec_type = 'U'.
t_receivers-com_type = 'INT'.
t_receivers-notif_del = 'X'.
t_receivers-notif_ndel = 'X'.
APPEND t_receivers.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = w_doc_data
put_in_outbox = 'X'
sender_address = ld_sender_address
sender_address_type = ld_sender_address_type
commit_work = 'X'
IMPORTING
sent_to_all = w_sent_all
TABLES
packing_list = t_packing_list
contents_bin = t_attachment
contents_txt = it_message
receivers = t_receivers
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
Populate zerror return code
ld_error = sy-subrc.
Populate zreceiver return code
LOOP AT t_receivers.
ld_receiver = t_receivers-retrn_code.
ENDLOOP.
ENDFORM.
Regards,
Shakti Barath -
How can we monitor the audio after the cleanup process before we actually record the trans
I have the Sound Blaster Audigy 2 ZS board and I am using it to transfer vinyl records to make CDs. Before my upgrading of Creative Media Source 2 to Creative Media Source 5, I was able to monitor the audio after the cleanup prior to the transfering process. Now I can only monitor the sound at the line input point and not after the cleanup process. Is there any way that we can do that?Vinylrecord
Assuming you mean Actions when you say "Batches", use this menu...
1. Click on the name of the actions set you wish to save.
2. Click the fly-out menu icon at the upper-right corner.
3. Save Actions, put them someplace on your hard drive other than in the Photoshop installation area.
-Noel -
HT204266 How can I find the top 300 games in each category on iPad App Store?
From iPhone Apps Store I could go to each category and find the top 300 games, how could I find the top iPad games in each category in iPad Apps Store? Thanks!
i downloaded it already but it should have the iTunes U App in my homepage as a shortcut. now, it doesn't have this icon in my apps pages. when i need to use it, i have to open the App store and search it out every time. For example, after downloaded the Facebook App, it would have a FB App in my homepage. my Question is I DON'T HAVE THE ITUNES U App IN MY HOMEPAGE NOW. T___T do you have any method to get it in my homepage.
anyway thank you for your link. -
How can I get the Conditoned output from PXI 1520 in PXI 1011 combined Chassie?
Respected Sir,
I am using PXI-SCXI combined Chassie PXI 1011 for my application. I have placed three SCXI 1520 modules, a motion card PXI 7352 and PXI 6052E DAQ card in the combined chassie. You know the PXI 1520 and PXI 6052E are connected internally using the Backplane of the SCXI and is not user accessable. Now I need the conditioned output of the PXI 1520 to be used as an Analog input for the Motion Control card PXI 7352. How can I do that? Whether PXI 1180 could solve my problem? If so, how do I connect the PXI 1180 to PXI 1011?
Kindly clarify me as soon as possible.
Thanking you,
Ramkumar. DDear Sir,
I have already placed my DAQ card at the correct place and configured it. I need some more clarification from you. I have attached my Query in .txt format.
Kindly reply as soon as possible.
Thanks,
Ramkumar. D
Attachments:
Clarification.txt 2 KB -
How can i make the input/output field to a multiple lines in ModulePool...
hi all...
can any one please let me know, is there any possibility thru Module Pool program where i can make the input/output field to a multiple lines...
say, when we drag & drop the input/output field on the screen - it'll come with single line display. so, how to make the same field to multiple lines field.
rather i can say my question like, how to increase the height of the input/output field.
Desired Functionality:
The user wants to display a long text.
now the input/output field should not display the record as a single line, now the field has to display the text in multiple lines (something like wrap option in ms excel).
hope u got my question...
please help me in this regards...hi Rengith, i'm not using Text Field, i'm using Inpu/Output Field to display the long text.
If u mean text field as input/output field then can u let me know the process for this, how to do the same thru module pool program...
Edited by: murashali on Mar 18, 2008 1:36 PM -
I saved info from my iphone5 to my laptop on itunes..
I can not find the information. Where can I find info? No record on itunes.How did you sent info, via e-mail?
-
How can I set the HDMI output to 1366x768?
1024x768 is an option from the ATV to the HDMI Port.
But my TV is 16:9 and has the resolution of 1366x768 when I plug a computer into the HDMI port.
If 1366x768 is not currently possible from the ATV, could apple be so kind as to add it,
thanks,
Jonathanslenpree wrote:
as previously stated 1366x768 is the resolution of the TV and has not been pulled out of a hat.
1366 x 768 is the number of pixels in the screen, it remains to be seen whether it's a resolution the TV will accept, but it likely will since it appears to accept 768 lines of resolution.
However, the Apple TV outputs several widescreen standards for HD and ED, it also supports some graphics display resolutions, presumably for older non-wide screen projectors. The problem with graphic display resolutions is that there are many of them including non-standard resolutions.
The Apple TV supports Full HD, HD and ED, it also supports VGA, SVGA and XGA, your TV has a pixel array that would fall into a classification known as WXGA which is non-standard to begin with but also includes 4 other resolutions which are also non-standard, WXGA is primarily a 16:10 aspect ration before a 19:9 one, so whilst you may not like it, the pixel array used by your TV has been pulled from a hat in terms of standard resolutions.
AC mentioned something above which I'd like to expand on:
Panels will always give sharper pictures when displaying output at native resolution, which is what you are trying to achieve.
This is essentially correct but only part of the wider picture so far as your TV is concerned, (it isn't actually what you are trying to acheive). Content doesn't (widely) exist at 768p. Generally speaking you will only have content at 480p, 576p, 720p or 1080p, so something needs to convert this to 768 lines of resolution for your TV.
There are two devices in the chain that can perform scaling, the TV and the Apple TV. In different scenarios this can lead to one or the other device doing the scaling or in some cases both. When setting up a system, one should note the capabilities of each device and try several options (if they are available) to get best results according to which device is best at scaling.
However given your observations, it is obvious that the Apple TV is much better at scaling than your TV, which given the pixel array on your TV is a little absurd, since very few devices (DVD players etc) will offer 768 lines of resolution and your TV is always likely to be doing some scaling.
Whilst you may not like the terminology of being pulled from a hat, your TV's pixel array is a non-standard size. There are as mentioned previously many non-standard sizes, to make them all available on the Apple TV just because some TV's perform inadequately when scaling isn't realistic. -
How can I monitor the active access point + data c...
My privider (o2 Germany) requires me to use different access points (APN, proxy) on my phone (N80) depending on the type of browsing I want do do (WAP vs. "normal" access), and each of them has a "high cost trap" if I use the wrong one for the particular service.
Very annoying - up to the point that I consider not using the phone for online access at all because I'm so scared to run into uncontrollably high fees.
Anyways. I wonder if there is add-on software for my phone that helps me monitor my data connection, i.e.:
* show me the currently used access point at the top of the display (yes, I know I can go into some deep menus to look it up, but that's not very helpful or even easy to use)
* automatically disconnect when the conn is idle for a while (One of the data modes is time-based, meaning I do not want to have it open all the time by accident)
Currently, all I can see at the top of the display is that I have a data connection at all, but that does not give me enough information to know I'm in the right mode for what I'm doing.
ThomasYou can force a disconnect by pressing the red/hangup key for a couple of seconds when the phone is in the standby state.
And in menu > Tools > Settings > Connection > Packet data change the setting "Packet data conn." to "When needed" and leave the "Access point" setting there to "None".
When you or apps on your phone are not doing any data transfer, then regardless of whether it is a WAP or "full" Internet packet data connection, you should not cumulate any charges.
You can also move the Connection Manager app from the Tools submenu to the main menu, or even to the Active standby apps list (or the softkeys) for quicker access. No need to deep dive into menus for it then.
And for individual apps, you can usually set the default access point to whatever is best to use for that particular app. For the browsers ("Web" and "Services") you can also make them ask you to pick the access point every time you connect. -
I must have misspelt one of my security question answers. When I try to reset them, the email get sent to my old email account (school email) which I can no longer access. So I was just wondering if it is possible to delete that email addess off the system so the emails only get sent to my current email (which is also my apple ID).
Apple ID Manage Account
Go to My Apple ID and click Manage your account
1) Apple ID: All about Apple ID security questions
2) See Here... ask to speak with the Account Security Team...
Apple ID: Contacting Apple for help with Apple ID account security -
How can I monitor the used memory
Does java have any API function to monitor how much memory of the java-application used?
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Runtime.html
note the ---Memory() methods
Maybe you are looking for
-
How do I find out my portal's system number?
Hi, I am trying to write a script, which will stop the SAP server with the stopsap.exe. However, the executable expects an Nr parameter, which I think is referring to the system number (sysnr). I tried 00 for Nr, but it is not working. Can anyone
-
How to access HttpServletRequest in Creator
I need to use the getRemoteUser() and getUserPrincipal() methods of request object to see if user is logged in. How to access the request object in Creator?
-
hi friends i want to print some content in korean language. i should select font and type of font at the time of printing. I don't have any idea .Please help me thanks in advance
-
App Volumes 2.7 Writable Volumes - Behavior in Windows 8.1
Hello, I've been evaluating App Volumes 2.7 on a Windows 8.1 VDI environment, seeing that the release notes now indicate that the agent installed in Windows 8.1 is now supported. The AppStack works great with Windows 8.1 desktops, but I'm having issu
-
How do I transfer my itunes audiobook to my iphone?
I downloaded audio books to my Itunes account on my desktop computer, but it's not syncing or and don't know how to upload it to my Iphone. How do I transfer my itunes audiobook to my iphone?