12-14-2007 10:44 AM
12-14-2007 11:01 AM
12-14-2007 12:30 PM
12-17-2007 08:00 AM
Hi,
I've tried varying the sample clock rate which has made no difference, however I've used the same sample clock rate when doing a static generation and have no problems with it there. Also the c examples given use the same clock rate as I've used and it runs fine. Would you be able to tell me what arguments I have to pass and how I get them for the error message function and get error function? As it still won't give me a description. I got another error code -1074118626 when i changed some of the fields. If you could also tell me what arguments and format to pass the writenamedwaveform function. I've looked in the help menu, but it doesn't give much description on the parameters of errormessage. An error occurs at the writenamedwaveform function call not at the configure sample clock, so I don't understand why it would be a problem with the clock rate.
Thanks
12-17-2007 11:28 AM
Oh another question, if i wanted to use the get function, niHSDIO_GetAttributeViReal64, one of the arguments is attribute ID, what is it or where would I get this from? and would i be able to get what the onboardclock is from this function? Cause I suspect that if it is the clock source that is the issue, maybe MATLAB is not picking up "OnBoardClock" from the header file when i pass it as an argument to configure the sample clock. and regarding the point I made about the clock configuration working with the static and not dynamic, I don't think static generation would use the clock, maybe that's why it isn't causing problems there?
12-17-2007 04:55 PM
12-20-2007 05:12 AM
01-02-2008 05:28 AM
Quick question, the niHSDIO_ConfigureDigitalEdgeStartTrigger function's source argument is what by default?
Thanks
01-02-2008 11:03 AM
The driver defaults to no trigger by default. You have to supply this value in the function call. Valid values can be found in the NI Digital Waveform Generator/Analyzer Help file. One option is to use PFI0: NIHSDIO_VAL_PFI0_STR.
01-03-2008 04:25 AM
name6= int8(
'"/a/PFI0"');name7= int8(
'"ScriptTrigger0"');triggerID = libpointer(
'int8Ptr',name7);source = libpointer(
'int8Ptr',name6);pname3 = libpointer(
'uint32Ptr',0);calllib(
'niHSDIO','niHSDIO_ConfigureDigitalEdgeScriptTrigger',uint32(pname3),triggerID,source,12)Thats what I've done, but it still throws an error, ive even tried :
name6= int8('"PFI0"');
and I've tried them without the double quotes.
Any other suggestions on how I could get the trigger to work?
ans =
-1.0741e+009
Thats the error that comes from the trigger function, however I can't get error message cause for some reason matlab doesn't like the geterror function so it crashes when i use it.
Thanks Jason