06-10-2010 03:06 PM
I have error message:
niHSDIO Write Named Waveform (1D U32).vi<ERR>Driver Status: (Hex 0xBFFA4AC8) Measurements: You cannot write data outside the boundaries of your waveform.
Make sure you are not trying to write more data than your waveform can accomodate and that your write location and write offset are set correctly.
Status Code: -200311
It occurs only at two of the four write waveform functions. Please see below. Thank you!!
06-10-2010 03:52 PM - edited 06-10-2010 03:55 PM
At one time you said there would be different timing for the individual channels. Your vi shows the same timing for all channels. Don't separate the channels. I told you this in the first place. Please re-read my post that you marked as a solution. COMBINE THE DATA INTO ONE ARRAY. Use one thread for all channels. If you can't understand how to form the array, you will not be able to create a successful program.
By separating the channels, you are overextending the write buffer inside the HSDIO, and this is why you are getting the error message. I've never done it this way, and perhaps I should not have told you to even try this. I only did so because you said you needed different data rates. So forget that idea completely. Learn how to combine the data for all channels as my previous posts illustrate. Use one thread only.
If you can't grasp this idea, then I can't help you anymore.
What are the data types in your arrays? It should be U8 only. Change the Write function to a data type of U8. You have it set for U32. This may be why you are getting an error message.
06-10-2010 04:00 PM
The HSDIO cards are not designed to function with the style of LabVIEW code that you're writing, Gordooo3.
Have you taken a look at the digital waveform editor? http://sine.ni.com/nips/cds/view/p/lang/en/nid/13050 It can graphically allow you to construct your waveforms and it even includes hooks to run them directly on the HSDIO cards.
According to this KB: http://digital.ni.com/public.nsf/allkb/01B1CCC3348C119A862576E4008305F3 you can download an evaluation copy of DWE to try it out.
Thanks,
Keith Shapiro
National Instruments R&D