Launch code targeted to compact vision system

Following the NI tutorial on "Easy Ways to Launch Code Targeted to the Real-Time Controller," I am attempting to use the 'System Exec.vi' with an assembled command line in a 'LabVIEW for Windows' program on the host such that I can skip the steps associated with opening LabVIEW on the real-time target and manually downloading the code I want to run on the real-time target.
As such, in the LabVIEW for Windows host program, I use the command line to feed into the 'system exec.vi' with the exact following syntax (including quotations):
"C:\Program Files\National Instruments\LabVIEW 7.1\LabVIEW.exe" -target 192.168.10.15 "C:\Program Files\National Instruments\ROTH LABVIEW\DAPC-NICC_71\RT_grab_images.vi"
I perform this st
ep just prior to calling by reference the 'RT_grab_images.vi' to acquire a set of images using the compact vision system and transfer these back to the host. However, I get an error 7, file not found (I am assuming it is the 'RT_grab_images.vi' file that is not found). If I have already manually downloaded the 'RT_grab_images.vi' (which negates the advantage of using 'system exec.vi' with the command line shown), everything works fine.
Can someone comment on this?
Thanks,
Don

Ok, this worked and from one of the other NI engineer (Michael Hoag), we discovered a way to programmatically execute this procedure using system exec.vi and a script file. For example, see the attached.
Below is more information from Michael if you have VI that you need to launch that has subVIs, and if you need to launch from other directories than c:\.
"Don,
Alright, with a little more persistance and work I think we now have a
working solution. I realized that the problem was that after copying the
VI over to the CVS, the VI was not in memory and was never "downloaded."
This means that all of the necessary subVIs (like all the standard LabVIEW
VIs from vi.lib) were never loaded onto the CVS and therefore the VI would
not execute when we used VI server, unless the VI had already been loaded
into the CVS' memory by targeting it.
To solve this problem, all we need to do is build a library (.llb) file for
our program that includes all subVIs, even those from vi.lib. This can be
done in LabVIEW, by going to the File menu and selecting Save With Options.
Make sure the "Include vi.lib files" option is checked and then create the
distribution. I have attached a new screenshot of my block diagram where
you can see that now I reference the main VI through the llb file (see the
path in the block diagram). In this case I placed it in the startup
folder, but that should not be a requirement. I also modified my script
file to take into account these changes.
I have rebooted the CVS several times to make sure nothing is in memory and
ran this new code. This appears to correct that last problem and should
get you moving forward with your application. Let me know how this goes
for you, and hopefully we have found a solution here.
Regards
Michael Haag
Applications Engineer
National Instruments"
"Don,
The error you are receiving when trying to call directory "C:\Program
Files\National Instruments\ROTH LABVIEW\DAPC-NICC_71" is definitely a
result of the DOS command prompt not linking the spaces and long
file/directory names. If you want to use that directory then you'll
probably have to figure out what the 8 character representation of those
files and directories are. For example if you want to get into C:\Program
Files\ then it will most likely be C:\Progra~1\. If you go to a DOS
command prompt (In windows go to Start >> Run and type in COMMAND), and
then type "dir /x" to display the directories, then the /x will have it
show the 8-character name for the directories and files.
Attachments:
rt_script.txt ‏1 KB
system_exec_to_launch_ftp_script.vi ‏12 KB

Similar Messages

  • Can i use C Code at Compact Vision or Compact Rio?

    hi,
    i have a very important question!!
    can i use the C code that the Vision Assistant generates, in the compact vision system, even in DLL form??? if yes, how can i download it to the compact vison?
    can i use C code at the compact rio?
    greets,
    gerald

    You can use C-Code on Realtime targets (Such as C-Rio or a Compact Vision system) as long as you compile a DLL out of it, and call this DLL from LabView. Take care that no Windows-Specific things are in the dll (MFC, ActiveX, Windows SDK etc.).
    As you always need LabView, to use the dll, it would be better to create a LabView VI from the Vision Assistant, and download this VI to your Compact Vision System.

  • Vision system to look at a bubble level?

    Would it be possible to use some type of NI vision system to view a bubble in a bubble type level and to somehow "measure" how far off the bubble is left or right?
    This would be some type of system that would (somehow) set a table to a calibrated "known" level position. I'm not sure if this would be some type of gyroscope or another calbirated level, but we would have to start with a good solid calibrated level surface. We would then put a level to be tested and use a vision system to "view" the bubble to see how far off it is and report it as a % accuracy or uncertainty.
    I'm not looking for Labview code, only if this can be done with some NI vision system. Is there a camera that can see the bubble and calculate some % of the bubble outside of the lines?
    Seems like an odd application I know, but I'm just looking for input.

    Alternative approach I'd use if space permits and tilt angle is within reason:
    Use a digital protractor and then use vision tools for character recognition to read the display. If angle range is high, then use a fiducial and coordinate system to compensate for the angle so the characters can still be read.
    http://www.globalindustrial.com/p/tools/test-measurement/Measuring-Protractors/pro-360-digital-protr...
    EDIT: There are also inclinometers that have analog and digital ouputs/communications that would alleviate the need for vision entirely.
    -AK2DM
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    "It’s the questions that drive us.”
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

  • Deployment '124500010' to target 'tar12462' encountered a system level dep

    Hi Experts,
    I'm trying to do initial deployment in Agent BCC. I'm getting below error while deploying
    ' Deployment '124500010' to target 'tar12462' encountered a system level deployment error during data transfer. '
    and Details
    Message Detail:
    CONTAINER:atg.repository.RepositoryException; SOURCE:java.sql.SQLException: ORA-00942: table or view does not exist at atg.adapter.gsa.Utils.deleteAllItems(Utils.java:1384) at atg.adapter.gsa.Utils.deleteAllItems(Utils.java:1524) at atg.adapter.gsa.Utils.deleteAllItems(Utils.java:1674) at atg.deployment.repository.RepositoryWorkerThread.prepareFullDeployment(RepositoryWorkerThread.java:636) at atg.deployment.repository.RepositoryWorkerThread.preDeploymentPhase(RepositoryWorkerThread.java:525) at atg.deployment.DeploymentWorkerThread.run(DeploymentWorkerThread.java:310)
    It's saying that Table doesn't exist, but I went through log, I didn't found any table name(Which table it's trying to search).
    Can you help me to fix this issue.
    Thanks & Regards,
    Murali.Ch

    Hi,
    It seems that your DB is not upto date with the deployed code. It has some missing table as evident from the error. If you can try some DB comparison tool and compare the DB with other environments on which BCC deployments are running fine.
    1. Do a full deployment
    2. If it fails with same error it means DB isnt in sync.
    3. Copy that from other environment or do by a DB checker tool/ comparison tool.
    4. Resume deployments.
    Thanks

  • How can I control 4 sets of compact RIO system with my host PC?

    Hi all,
    As the title.
    I want to control 4 sets of compact RIO system at the same time.
    I have written TCPIP connection for two PC before.
    But I never program to connect more than one PC.
    If I need to connect more than one PC, should I set the PC's connection port different?
    Could you provide me an example?
    Thank you a lot.
    Solved!
    Go to Solution.

    Hi StephenCh...,
    you can calculate the transfer rate it depends on your network card. You'll find very good examples on that in the example finder, search for tcp/ip. You can use the server code on each of your cRIOs. Use the client to connect to your servers (cRIO), you only need to change the IP. If you need to connect to all at the same time, then you have to change the client program a bit, so that you are able to build four connections.
    Where do you have problems? Did you already see the examples?
    Mike

  • Launch a RFC in a SAP system from Redwood CPS

    Hi,
    How can I launch a rfc in a SAP system from Redwood ?
    Ex : in SE37, the function DATE_GET_WEEK, with a date (DD.MM.YYYY) as input parameter returns the corresponding week (YYYYWW)
    Regards.

    Hi,
    SAP CPS uses an RFC to communicate with a target SAP system via the XBP interface so that Jobs can be executed.  The CPS executable only knows of the calls that are appropriate to that interface or function modules created when CPS transports are loaded.  If there was an RFC type interface that exposed your function to an external executable then of course CPS could execute the executable.
    Regards,
    Simon

  • Compact vision flash disk problems

    Hi,
    I�ve got writing problems with the Compact Vision Module. It is not possible to write to the module�s flash disk.
    Using a ftp browser it is impossible to create a new directory, Using LV it is not possible to write a file (generic file IO error) and Vision builder is not able to write scripts to the remote target�
    It all has work before.
    Does anyone have experience with this? Or good advice?
    Kind regards,
    Jonas

    Try reinstalling all the software on the CVS - this should clear everything up. If that doesn't work, I would phone NI at www.ni.com/ask for more detailed help.
    -Julie

  • Can there be more than one transport targets for a business system in sld

    Hi All,
    I have a question about transport targets in sld for sap xi 3.0 sp19.
    We have a requirement where a business system needs to have two transport targets.In SLD i see that only one transport target can be assigned. Is there any way to assign more than one transport target to a business system?
    I know that there can be more than one source for a business system where more than one  different business systems have the same business system as the target.
    I am not sure if a business system can have more than one transport target .If yes , what is the way to add more than one ?
    Please help .
    Thanks,
    Padmaja

    Hello,
    I know that there can be more than one source for a business system where more than one different business systems have the same business system as the target.
    As far as I know, you would have to change the target everytime you will transport it to a different target e.g 3 target systems = 3 times you change the transport target in SLD.
    Regards,
    Mark

  • Code page of the receiver system could not be found".

    Hi,
    We are getting an error in IDOC-XI-IDOC scenario that the "code page of the receiver system could not be found".
    What could be the reason for this error?
    Because of this error all IDocs are getting stuck in XI.
    Kindly help.
    Thanks,
    John

    Hi john,
    Have a look at this thread:
    "Could not determine code page" inbound side error
    This could be usefull.
    Carlos

  • Error in code page mapping for Source system whil loading the data from ECC

    HI Gurus,
    I am working in a implementation project, Recently our BI sand box is up, when i am doing my load from 0comp_code_attr it is throwing an error "Error in code page mapping for source system"(This is my first load from ECC).
    In details tab it is showing as the data is sent from the source system but the data is not reaching to the PSA.
    Please let me know if there are any settings needs to be made.
    Many thanks in Advance
    Jagadeesh

    HI V,
    Thanks for your quick response. I did it but it didn't resolve the issue. since the system id which i am having is 3 digits(LEC) but there it is taking only 2 digits, so i clicked on the button called Propose system ids, it has praposed LE, but the issue is stil there.
    Do we need to do any settings in LBWE??
    Thanks and Regards
    Jagadeesh

  • Error in code page mapping for Source System

    Hi All,
    We are Loading data into BI system from MDM System.
    It was loading fine but Yesterday we got an error " Error in code page mapping for Source System"
    Message Class: RSDS_ACCESS 13.
    We alreday tried to Search any IDOCs with error/unprocessed , but there isn't any.
    Any pointers for this error will be Helpful.
    Regards,
    Mayank

    Our SP currently SAPKW70019 , the SAP note mentioned above required to apply SP for 13, which we already beyond that...unfortunately we still face the same problem .. almost every day ..
    any advice.. ?
    Edited by: Edi Erwan  Abu Talib on Jun 22, 2009 8:22 AM

  • Where is original point of Z axis in a stereo vision system?

    Hello, everyone
    I use LabVIEW Stereo Vision module. After I calibrate my stereo vision system, I want to verify the accuracy of my system. I can get every point`s depth in my picture, but where is my original point of Z axis? 
    In the newest NI Vision Concepts Help, it is written that  NI Vision renders 3D information with respect to the left rectified image such that the new optical center will be at (0, 0, Z) position. Is the original point of Z axis is on the CCD of left camera or the optical center of my left camera`s lens?
    So anyone can help me ?
    CLAD
    CAU
    Solved!
    Go to Solution.
    Attachments:
    未命名.jpg ‏63 KB

    Hello,
    I would say that the coordinate system origin is at the optical centre, that is the camera's projection centre.
    So, yes, the optical centre of the left camera's lense. This seems most logical to me...
    Best regards,
    K
    https://decibel.ni.com/content/blogs/kl3m3n
    "Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."

  • My ipad mini ID code is forgetten, and its system is also broken and how to change the ID and restore the system?

    my ipad mini ID code is forgetten, and its system is also broken and how to change the ID and restore the system?

    Hi ..
    Follow the instructions here >  iOS: Forgotten passcode or device disabled after entering wrong passcode

  • Way to find transaction code - if not listed in system-- status

    Hi friends
    way to find transaction code - if not listed in system--> status
    ex:
    spro- sd - sales -sales documents- sales document item -define item categories
    I didn't find T-code for this path from <b>system -->status</b>
    Please let me know the ways to find out exact T- codes.
    Thanks
    Prasad

    Hi Prasad, once you are in
    spro- sd - sales -sales documents- sales document item -define item categories,
    go to Additional Information-> Additional Information -> Display Key -> IMG Activity
    this will show you a code, in this case SIMG_CFMENUOLSDVOV7
    take last four caracters, this is transaction code: VOV7.
    Please reward if you find this useful.
    Regards,
    Efren

  • Deployment '18600003' to target 'Production' encountered a system level dep

    Hi Experts,
    Please help me in resolving the error while i am doing full deployment from BCC to staging / production server instances , i am getting below error.
    It would be great if u help me resolving this error.
    <Dec 5, 2012 1:48:26 AM PST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
    **** Warning Wed Dec 05 01:52:33 PST 2012 1354701153339 /atg/epub/PublishingRepository Using default JDBC type for: project:tar1557 could not find this column in the table's meta data
    **** debug Wed Dec 05 01:52:43 PST 2012 1354701163290 /atg/epub/DeploymentServer Run first apply phase: true
    **** debug Wed Dec 05 01:52:43 PST 2012 1354701163292 /atg/epub/DeploymentServer Target not configured for switch. Skipping switchable datasource verification.
    **** debug Wed Dec 05 01:52:43 PST 2012 1354701163407 /atg/epub/DeploymentServer DistributedDeploymentAdapter:DAF Deployment with ID: 18600003 previously deployed.
    **** debug Wed Dec 05 01:52:43 PST 2012 1354701163410 /atg/epub/DeploymentServer DistributedDeploymentAdapter:Deploy Data
    **** debug Wed Dec 05 01:52:43 PST 2012 1354701163410 /atg/epub/DeploymentServer DistributedDeploymentAdapter:Resuming DAF deployment with ID: 18600003
    **** Error Wed Dec 05 01:52:43 PST 2012 1354701163792 /atg/epub/DeploymentServer --- CONTAINER:atg.deployment.common.DeploymentException: Deployment '18600003' to target 'Production' encountered a system level deployment error during data transfer.; SOURCE:atg.deployment.DistributedDeploymentException: Cannot resume deployment 18600003 because it was cancelled before the deployment data and markers were saved.
    **** Error Wed Dec 05 01:52:43 PST 2012 1354701163792 /atg/epub/DeploymentServer at atg.deployment.common.ResourceUtil.exception(ResourceUtil.java:414)
    **** Error Wed Dec 05 01:52:43 PST 2012 1354701163792 /atg/epub/DeploymentServer at atg.deployment.adapter.DistributedDeploymentAdapter.deployData(DistributedDeploymentAdapter.java:1399)
    **** Error Wed Dec 05 01:52:43 PST 2012 1354701163792 /atg/epub/DeploymentServer at atg.deployment.adapter.DistributedDeploymentAdapter.transferData(DistributedDeploymentAdapter.java:278)
    **** Error Wed Dec 05 01:52:43 PST 2012 1354701163792 /atg/epub/DeploymentServer at atg.deployment.server.Deployment.run(Deployment.java:1951)
    **** Error Wed Dec 05 01:52:43 PST 2012 1354701163792 /atg/epub/DeploymentServer at java.lang.Thread.run(Thread.java:662)
    **** Error Wed Dec 05 01:52:43 PST 2012 1354701163792 /atg/epub/DeploymentServer Caused by :atg.deployment.DistributedDeploymentException: Cannot resume deployment 18600003 because it was cancelled before the deployment data and markers were saved.
    **** Error Wed Dec 05 01:52:43 PST 2012 1354701163792 /atg/epub/DeploymentServer at atg.deployment.DeploymentManager.deploy(DeploymentManager.java:1069)
    **** Error Wed Dec 05 01:52:43 PST 2012 1354701163792 /atg/epub/DeploymentServer at atg.deployment.adapter.DistributedDeploymentAdapter.resumeDafDeployment(DistributedDeploymentAdapter.java:1944)
    **** Error Wed Dec 05 01:52:43 PST 2012 1354701163792 /atg/epub/DeploymentServer at atg.deployment.adapter.DistributedDeploymentAdapter.deployData(DistributedDeploymentAdapter.java:1307)
    **** Error Wed Dec 05 01:52:43 PST 2012 1354701163792 /atg/epub/DeploymentServer at atg.deployment.adapter.DistributedDeploymentAdapter.transferData(DistributedDeploymentAdapter.java:278)
    **** Error Wed Dec 05 01:52:43 PST 2012 1354701163792 /atg/epub/DeploymentServer at atg.deployment.server.Deployment.run(Deployment.java:1951)
    **** Error Wed Dec 05 01:52:43 PST 2012 1354701163792 /atg/epub/DeploymentServer at java.lang.Thread.run(Thread.java:662)
    **** Error Wed Dec 05 01:52:43 PST 2012 1354701163792 /atg/epub/DeploymentServer
    **** Warning Wed Dec 05 02:03:14 PST 2012 1354701794489 /atg/dynamo/service/ClientLockManager The useLockServer property of: /atg/dynamo/service/ClientLockManager is false and so global locking is disabled
    **** Warning Wed Dec 05 02:04:43 PST 2012 1354701883454 /atg/epub/PublishingRepository Using default JDBC type for: project:tar1552 could not find this column in the table's meta data
    **** Warning Wed Dec 05 02:05:41 PST 2012 1354701941339 /atg/epub/PublishingRepository Using default JDBC type for: project:tar1557 could not find this column in the table's meta data
    Thanks ,
    Sharif.

    Hi,
    I faced the same issue while opening the merchandiser tab in the BCC(after providing the credentials error dialog appearing the UI side and log showing the error whatever you mentioned). But issue resolved after initiating a full deployment and the restarting the publishing server.:)))))

Maybe you are looking for

  • Unequal size of X, Y, Z axis for 3D graph

    Hi, I have different size of array in X, Y and Z axis. What graph should I use best? I tried using 3D surface graph but it consume all my memory. My data is X = 1 X 41 array Y = 1 X 32768 array Z = 41 X 32768 array/matrix Thanks a lot...

  • Strange behavior in ALV Grid

    Hi all, I have an alv grid which it is updated in a report. But when I call the method grid->refresh_table_display the the refresh does not occur properly. Let me give you an example: This is the fieldcat: FORM create_fieldcatalog.   DATA: wa_fc   TY

  • Apply Retention Policy to All New Mailboxes

    I have created a retention policy tag to "Delete and Allow Recovery" after 14 days of all items in the "Deleted Items" folder. I then created a Retention Policy to apply the tag. I see using the EMS I can run a command "Get-Mailbox | Set-Mailbox –Ret

  • Adobe acrobat 8 pro download for mac

    I just got a new Mac and my old Mac had Adobe Acrobat 8 Pro installed on it and I use it for work and I don't a newer version for what I do and I would rather not pay for an upgrade.  Is there a free download somewhere of Adobe Acrobat 8 Pro or can I

  • AE 7.0 renders incomplete movie

    I am using AfterEffects 7.0 on a Macbook Pro, with Snow Leopard on MAC OS X 10.6.3.   AfterEffects will fail in the middle of a render and show an error message in the middle, saying that it "cannot create 720 x 480 image buffer - 7 :: 39."  It will