I am trying to run the sample C program that came with my NI USB-6008 DAQ card. I am trying to run the "ContGen-ExtClk.c" example. I get the following error when I build the program:
DAQmx Error: Requested value is not a supported value for this property. The property value may be invalide because it conflicts with another property.
Property: DAQmx_SampTimingType
Requested Valeu: DAQmx_Val_SampClk
You Can Select: DAQmx_Val_OnDemand
Task Name: _unnamedTask<0>
Status Code: -200077
End of program, press Enter key to quit
If anyone is familiar with the USB-6008, I would appreciate the help. Thanks!
Turns out it is a hardware issue with how many samples can be sent over the analog out channel... dunce move.
Related
I am building a SD card/SCSI adapter using NCR 53CF94 IC and STM32.
All goes pretty well, even manged to make my device work to some degree, i.e. accepting all basic commands and even booting from it to DOS. BUT i have a problem, when asking initiator (PC) to write something to my device , all goes well i get the block address and the data. Then i write the data to SD card and finally responding with status=0 and message=0 to complete the write command, but the initiaor never increasing the secoor number to continue to write proccess and always tries to write the first one, then after few attempts it gives error on the PC (Error writing to drive...). I can't figure it out why the initiaor is not satisfied with the GOOD status and message. Do i need to send some specific data back to the initiator ? Linke CRC ? Or there is some specific command i need to issue for 53C94 ?
Banging my head for few days now.
Need your assistance please.
Thanks !
Artiom.
I figured it out. I was writing 512 byte blocks to a 256 byte array. I'm not sure how this is related to the issue, but after fixing the size everything started to work.
I need help, i am working with Arduino UNO and a GPRS shield, which is powered with an adapter that outputs 12v 500mA. The sim card is placed properly, i checked this with the AT+CPIN? command, but when i try to check the signal level with AT+CSQ?, it just return error. Please can someone help me.
AT+CSQ? isn't a valid command, however AT+CSQ is - remove the ?.
The command appears to be wrong. Probably these are what you were looking for:
AT+CSQ=?: This command is to request the supported RSSIs (Received Signal Strength Indication) and BERs (Bit Error Rate). You might want to get this information before requesting the current cell signal level.
AT+CSQ: And this command is to request the current cell signal level.
Here is the result from my SIM808 module:
AT+CSQ=?
+CSQ: (0-31,99),(0-7,99)
OK
AT+CSQ
+CSQ: 25,0
OK
So that means:
0-31,99: Supported RSSIs
0-7,99: Supported BERs
25,0: Currently, the RSSI value is 25 and the BER value is 0
Please refer here for further details.
I have changed in if (!sentMessage) sendMessage(wsm->getWsmData());
to if
(!sentMessage) sendMessage(wsm->getWsmeData());
(i.e "getWsmeData" which i added the WsmeDat in the waveshortmessage) on
"void TraCIDemo11p::onData(WaveShortMessage* wsm)". When I run the program on node [3] i get this error. I wanted to simulate for sending changed message. the error is:
Error in module (TraCIDemo11p) net.node[3].appl (id=26) at event #329, t=26.303493715545: TraCI server reported error executing command 0x23bfe8 (",²X").. Where should i check in order to correct this error.
Thank you.
The large, seemingly random value looks like a problem with overwritten memory. My recommendation would be to use a memory debugger like valgrind.
I would like to do 2 things.
Recognize when someone is calling - In terminal will appear RING and to answer I have to send command ATA. But How can I recognize it when I am doing something else. Should I use new thread and read port until send RING? Is there any beter solution?
What is a symbol of end of response? I'm reading char using for(), but I do not know number of signs. Example below doesn't work properly
while(readCharUART()!=10) {};
while(readCharUART()!=13)
{
getchar() = ..
}
You are on the right track.
For RING then yes, the correct way to do it is to have one thread just read modem responses until you get the Unsolicited result code RING. If you from time to time want to run AT commands (say ATA), then you should let this thread do that as well, e.g. you have one thread that takes care of both issuing AT commands and monitor for UR codes.
Regarding formatting of responses from the modem, this is well described in chapter 5.7.1 Responses in the ITU V.250 standard. Short summary (reading the spec is highly recommended!):
<header>RING<trailer>
where header and trailer is both "\r\n" (unless the modem is configured strangely).
I desire to construct a Hexapod which utilizes Arduino and is remotely controlled via Bluetooth, at present I am writing the code for its walking(in Arduino part),however I do not know how to proceed.The problem is as follow:
When a new command is received from the remote device I want the legs to stop what they are doing and carry out the received command.If this action is realized with Interrupts then after the command has been completed the previous process again starts,which is undesired for me. What can be done?
Thanks in advance for your answers.
The arduino doesn't really have separate processes - or even an OS.
You should think in terms of "states". Have a global (sorry) int representing the current state (use an enum) then when you do a new command set the state to the new command and return, then have a main loop which checks the state and performs whatever function is needed.