LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

1-D Array of 3 elements to waveform(DBL) help needed

Alright I fixed the obvious issues I have attached the new VI I believe everything is correct I am still getting "6" for the error code.
0 Kudos
Message 41 of 49
(1,129 Views)
You're not feeding any values for the paths. Smiley Surprised Did you change the VI I wrote to use constants? If you didn't then the Write To Binary File would display a dialog asking you where to save the file. But if you didn't wire a valid path then the memory read would not work properly since the filename isn't being passed in.
0 Kudos
Message 42 of 49
(1,126 Views)
well in the screen capture VI I typed the file name in there I assumed it would act like a constant will i need to add a constant value in there?
0 Kudos
Message 43 of 49
(1,122 Views)
I have added constant paths as well same error.


I have also attached the VI perhaps I am going about it the incorrect way?


**UPDATE**


upon further inspection of the memory read vi there is a empty string constant that is not connected to anything.


Message Edited by MrSafe on 07-01-2008 05:02 PM

Message Edited by MrSafe on 07-01-2008 05:08 PM
0 Kudos
Message 44 of 49
(1,120 Views)
I'm going to work on the assumption that you're actually setting the path controls to a value, and not leaving them blank. Do you not understand about how to use controls? If you don't make the value in a control to be the default value (right-click on the control and select Data Operations -> Make Current Value Default) then the value will be set to whatever is passed in from the caller. If you leave the input to the VI disconnected, then the subVI will get an empty value for that input.


upon further inspection of the memory read vi in the memory read VI that is not connected to anything.
I have no idea what this means.

You need to isolate the problem, and determine what's going on. The "Screen Capture" is designed so that you can run it on its own, so you should first determine if this works on its own. So:
  1. Open it up, set the front panel controls to some values:
    a) Set the "filename to read (on analyzer)" to some path, such as "C:\screencap.wmf".
    b) Set the "filename to save (local) to some path on your local drive to where you want to save the file.
    c) Set the "VISA Resource Name" control to select the VISA connection to your analyzer

  2. Run The "Screen Capture" VI by itself.
Does it work?

If it worked proceed as follows:
  1. Go back to your main VI.
  2. Set the values of the path controls that you created in the "Get Frequency" VI to be the same as the values you used when you ran the "Screen Capture" VI by itself.
  3. Run your main VI.
  4. What happens?
If the "Screen Capture" VI did not work, place a probe on the wire that's going from the "Memory Read" VI to the Write to Binary File function. Run the VI. Did you get data?
0 Kudos
Message 45 of 49
(1,109 Views)
Sorry I updated my message it didn't post like I wanted to. I will update you on the situation as soon as I can but I need to take this one step at a time. I  did some digging and I found out that the file that is captured within the analyzer by that I mean I looked inside the analyzer for saved files within the memory and I found the image your VI captures and stores within the analyzer memory. The problem seems to be that when it requests that specific file to be sent over to the local drive(my pc) it doesn't get sent over correctly or it simply can't write it for whatever reason. I will continue to debug and test in the mean time.


Greatly Appreciate your help.
0 Kudos
Message 46 of 49
(1,097 Views)
I found a solution if you want to call it that. It seems that the file path that you had set wasn't saving for whatever reason. (which is connected to write to binary file).


I simply changed that connected wire from "File (use dialog) " to "choose or enter file path". Now it prompts me for a location of where I want to save. My next step is to find out why "File (use dialog)" isn't working.

So it saves with this fix I am able to view the file on my computer. Thank you very much just a one more step and I can move on to the next phase 😃
0 Kudos
Message 47 of 49
(1,083 Views)

@MrSafe wrote:

I simply changed that connected wire from "File (use dialog) " to "choose or enter file path". Now it prompts me for a location of where I want to save. My next step is to find out why "File (use dialog)" isn't working.

I have no idea what this means. What do you mean to "changed the connected wire"? Do you mean you used a different function? Do you mean you disconnected the wire? From the LabVIEW Help on Write to Binary File:
Writes binary data to a new file or appends the data to an existing file. If a path is wired to the file (use dialog) input, the function opens or creates the file before writing to it and replaces any previous file contents.
If the path is not wired, or is wired, but the value is an empty path, you will get a dialog asking you where to save the fle.
0 Kudos
Message 48 of 49
(1,081 Views)
im sorry for the poorly written reply due to my limited knowledge of labview I often cant express(in words) what I intend to say. I will update the post w/ images for you soon so you may visualy see what I changed.
0 Kudos
Message 49 of 49
(1,074 Views)