Jump to content

goran

Members
  • Posts

    17
  • Joined

  • Last visited

Posts posted by goran

  1. Hi goran,

    there seems to be no task or timing or channel or or or ... property that gives feedback about the amount of time a task was running or the number of pulses which were generated. And getting a system timestamp right after starting and stopping the task and then calculating that probably xy pulses where generated might be ok only with very low frequencies.

    An accurate solution is to use a separate counter and task to count the digital events of the pulse train task. Use 'Count digital events.vi' - Example for starting.

    Regards,

    Frank

    I tried to modify 'Count digital events.vi' but I get errors. What counters should I use? I got a DAQCard-6036E.

    edit: Dont know why the preview of the screenshots are black but they work if you click on them.

    post-12262-127166162836_thumb.jpg

    post-12262-127166164786_thumb.jpg

  2. Im using a counter to generate a digital finite pulste train. And I got a stop button so the user can stop the generation of pulses. This is done with a while loop that runs while the task is not done and the user have not pushed the stop button. But how can I calculate how many pulses the counter generated?

  3. Without getting into gradients, this is a quick and dirty example of extracting data over a threshold level directly into a 2D array, where each row represents each waveform above the threshold. Because LV uses square arrays, when you process each row, you will have to truncate the data where the zeros start.

    Thank you. Any chans anyone can save that VI in LW version 8.2?

  4. Hi, I got a signal that looks like the attached file and want to get the indexes of the measurements in that signal. In the attached filed I got 6 measurements and want to cut out them out and process them. Is there a VI that finds them? Ie finds were the signals raises from the base and then returns. Any ides?

    post-12262-125690130341_thumb.jpg

  5. Hi, I have a Windows Media Player activex object on my frontpanel and I want to change the size of that video view programticly while the VI is running. I have checked out the propertie node and I can set the position but not the bounds. The help say's: (of the wmp/GObject)

    "You cannot use this propertie to change the size of an object. To change the size of a object programmatically, use a more specific properties such as Text Width or Plot Area:Size."

    What property should I use and were can I find it?

  6. There is a property node under "Application>>Display" called "Primary Workspace". It will give you the Top,Left,Right and bottom of the screen.

    Hi and thank you. But I cant find that property node 'Primary Workspace'. I have looked under Function Pallete >> Application Control but no Display to be found in that menu/pallete. Im a looking at the wrong place? Im using LW 8.2

  7. The test above is on a NI PCI-6036E daq card.

    I choosed NRA becuase it gives the closest result. How can I check what method the trad-daq example uses?

    I dont think its a drift in the hardware, it doesnt matter if I let the examples runs 3s or 10min, the result is the same.

    We have connected pressure sensors to the daq hardware.

    In column 3 for example, the result in traditional example is about 16511 and in the mx example 17320, i think that is a big difference. The 2 first columns is the preassure and the rest is voltage.

    On the traditional vi 'AI Read.vi' I can get both unscaled (what im using in the examples) and scaled data, how can I scale the unscaled data from the MX vi 'DAQmx Read (Analog 2D I16 Nchan NSamp).vi'?

  8. Im using labview 7.1 and I have used traditional daq but Im going to switch to daq MX for sampling data. I have created 2 vi's, one for MX and one for the traditional daq, but they dont give me the same values/data. Any ideas how I can fix this? Se attached files for the block diagrams and front panels for the vi's.

  9. I tried to recreate Dan's vi with lw 7.1 but I cant get it to work, I get a error at the 'Call Library Function Node', the error is

    LabVIEW: AN exception occured within the external code called by a Call Library Node.

    Can someone please look at Dan's vi and mine and spot the error, I use this fucntion prototype

    unsigned long GetDriveTypeA(CStr arg1);

    in the Call Library Node, is that right? I guess not :)

  10. How can I find the path/drive letter to a usb memory stick from labview? I would like to autosave data to the memorystick but sometimes it got a diffrent drive letter so I cant use a static path i.e asume that "S:" is the usb memorystick. I dont need to detect when its inserted, I just want to know the path/drive letter when the data should be saved to the stick.

    I tried the "list directory" vi and looked at the mounted volymes, and identified the usb stick with a hiddenfile in the root dir, but that doesnt seems bulletprof. You cant use any memorystick, it have to be prepared with that hidden file.

    Any other suggestions?

  11. I got a small .vi with a Listbox. The Listbox is filled with filenames (not the complete path), is it possible to add drag n drop from the Listbox to a ActiveX component? The filenames is of media files I would like to load them by dragging them out of the Listbox to the ActiveX component. I found a setting to make drag n drop work "inside" the listbox to rearrange the elements, but I want to drag n drop outside the listbox. How can I do this? Do I need to customize the Listbox or create a new controll? Im new to labview so the question might be stupid, but I didnt find any good answer when searching the forums.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.