Jump to content

gronfelt

Members
  • Posts

    2
  • Joined

  • Last visited

    Never

gronfelt's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I'm trying to move an application from Windows to Linux, I'm running RH5 Workstation with LV 8.5 and the newest NI-DAQmx Base installed. I've created tasks using the NI DAQmx Base Task Configuration utility. However, when I create a Task constant in my block diagram, I cannot select any tasks with it, the arrow down-button is just greyed out. The same goes for the other I/O-constants (Physical Channel constant and Device constant). I've tried typing the task name, but the program just exits with an error. It seems as though LabView doesn't know where to get information about devices and defined tasks, do I need to do anything to tell LV where to look? A mysterious thing though, is that I've tried running a sample program, which makes use of one of the predefined tasks and that seemed to work (at least it did not exit with an error). Even more mysterious: When I tried to run the same sample now, it tells me that it can't be opened since I'm running LV 8.2.1, even though I'm running LV 8.5. Any ideas of what to do? Would it be meaningful to uninstall DAQmx Base and install DAQmx instead (i chose DAQmx Base since the last DAQmx-version was from 2005 or so). Thank you in advance.
  2. I need to write a program that is supposed to control 8 different lamps, working as a programmable timer. I wan't to be able to, for each lamp, to set an on time (in minutes) and an off time (also in minutes) and then I wan't the program to switch between on and off with the specified intervals. I have a DAQ with DAQmx and 8 digital I/O:s and I've figured out how to send the correct signal. It's the timing function that I really can't figure out. I've tried a few models with FOR-loops or Sequences with Wait-functions, but the problem is that I seem to loose control of the program while it waits for the Wait-function to finish. I can't end the programs main While-loop etc. So far I've only worked with one channel and I can only imagine the trouble of getting 8 different Wait-functions to collaborate, so it seems to me there must be a better way. So what I need is perhaps a few pointers telling me where to start, I seem to be stuck with the wrong thinking. Perhaps a flowchart or som pseudocode would help, or even better, a Labview-example. Summary of the program function: * 8 channels, to be controlled either manually or by timer * Each channel to be controlled individually, with different timer settings * Different settings for on and off times. Finally I would like to apologize if I have posted in the wrong category.
×
×
  • Create New...

Important Information

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